Checking currency amount with a variable to buy skills?

Been ages since I been on here, I made some good progress in the third chapter of my game, but have ran into something I need some help with XD

I know variables can be used to check item amounts (for quests and such), but is there a way to set it up to check currency amount?

There's a part in my game where you can learn skills from a couple of the NPCs, but in order for them to teach you, you pay them a certain amount of bones (thats the currency in the game), after you pay, it takes you to a different part of the map and continues on with the battle for training, I have that bit set up, but need some help figuring out how to do the currency check when paying for training.

Any help is greatly appreciated. 🙂
Control Variables > Game Data > Other > Gold
If I have read your post correctly you are using "bones" instead of "gold". I like that idea.

Use a "Control Variables" command from the first page of the editor commands. Within the form that comes up select "Game Data". Instead of the default "Map ID", click on the 3 dots at the end of the field to bring up another page of the form. Select "Other", and from the associated drop-list choose "Gold". This will set your variable to how many of your game's currency units the party holds.

Edit: Ninja'ed! Too slow typing I am afraid.
Hello welcome!

As I understand you want the player to learn a specific skill with each GM, it would be best to use conditional branches.
I'll show you a practical way to make the first master, then just do the similar sequence for the next ones.

Event Commands > Tab 2 > Actor > Skill (Enable "Create Else Case")
Code:
◆If:Harold has learned Spark
  ◆Text:None, Window, Bottom
  :    :I can't teach you anything else.
  ◆
:Else
  ◆
:End

Inside "Else" put another conditional branch, but check the amount of gold:
Event Commands > Tab 4 > Gold > Equal or Bigger (≥)

Inside that "Else" put a text warning that the player doesn't have enough bones:
Code:
◆If:Harold has learned Spark
  ◆Text:None, Window, Bottom
  :    :I can't teach you anything else.
  ◆
:Else
  ◆If:Gold ≥ 25
    ◆
  :Else
    ◆Text:None, Window, Bottom
    :    :If you want me to teach you, you need to pay 25 bones!
    ◆
  :End
  ◆
:End

Inside the "IF" of the gold place the scene and the event command "Change Skill..." and then "Change Gold...":
Code:
◆If:Harold has learned Spark
  ◆Text:None, Window, Bottom
  :    :I can't teach you anything else.
  ◆
:Else
  ◆If:Gold ≥ 25
    ◆Text:None, Window, Bottom
    :    :Alakazam! Now you know how to use the Spark technique.
    ◆Change Skill:Harold, + Spark
    ◆Change Gold:- 25
    ◆
  :Else
    ◆Text:None, Window, Bottom
    :    :If you want me to teach you, you need to pay 25 bones!
    ◆
  :End
  ◆
:End
Aaa thank you guys so much! Got it added in. 🙂 I'm working on a segment where after paying for the training you actually have to fight the NPC (you then learn the skill afterwards). Should be smooth sailing (hopefully) ahead! lol
Sorry, but it was not clear how you solved it, did you use any method or that I showed you did it?

Original thread: https://forums.rpgmakerweb.com/threads/checking-currency-amount-with-a-variable-to-buy-skills.141941/