How do I make it to where if 002: Addylin is in front and A button pressed increase Gold by 15 please?

Thank you very much.
Questions:
  1. What do you mean by "A button"?
    • The "A"/"OK" button on a gamepad?
    • The "A" key on the keyboard?
    • "Any button"?
    • Something else?

  2. When/where do you want this to happen?
    • When facing a treasure chest?
    • In certain "dig for treasure" places on a map?
    • During battle?
    • Something else?
A couple of basic tips:
  • You can store the ID of the party leader in a variable:
    • Control Variables -> Game Data -> Party: Member #1
    Then you can check that variable using a Conditional Branch command.

  • You can use the Change Gold command to make the party gain or lose money.
And what is 002: Addylin?
And what is 002: Addylin?
Presumably the name of Actor ID 2 in the database but OP can correct me if I'm wrong

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-it-to-where-if-002-addylin-is-in-front-and-a-button-pressed-increase-gold-by-15-please.162687/