is there a way to give an NPC a player-chosen amount of money? (VX ace)

heyo. new to RPG maker and I was wondering if there's a way to give an NPC a player-inputted amount of gold. I know how to give a set amount (100 gold, 50 gold, etc.) but I'd like to make it the player's choice. They'd be rewarded for giving X amount, naturally, but I have no idea how to actually make it possible to give a chosen amount. Thank you in advance <3
'Game Mechanics Design' is for looking at elements of game play at a more conceptual level. "How do I...?" questions go into the Support forum for the engine you are using.

Moved to: RPGMaker VX Ace
'Game Mechanics Design' is for looking at elements of game play at a more conceptual level. "How do I...?" questions go into the Support forum for the engine you are using.

Moved to: RPGMaker VX Ace
ahh, thank you ;W;
The Input Number command allows the player to set a number.
That number is then stored within a Variable.
The Change Gold command allows the use of said variable.
can you teach me how to do that? here's what I did:
2.png
but when I did that, the number input won't let my type in a number. it just stays at zero.
1.png
what am I missing here?
The player doesn't type the number but uses the arrow key to make the number increase or decrease. Your event command is correct.
OH! jeez i didn't even try that. thank you very much!

it works. thank you~

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-give-an-npc-a-player-chosen-amount-of-money-vx-ace.79652/