Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

No Money, no Entry

Lain

Member

Hey Guys,

I am Programming a Akadamy on RPGxp and i want to take money for entering Study-Area. But when I do ''Change Gold... -25000'' on Event Script, if the player don't has any money, he teleports the player to the area, too.

I want that the NPC says if he has money less than 25000 says something like ''You need exactly 25000 Gold'' and Cancels the teleport..

Could someone help me here?

Thanks
 
Conditional Branches. On event page one, select conditional branch. On the last page, select Gold 0 or less. Your event would look like this:

Conditional Branch: Money 0 or less
  @>: Change Money: - 25000
Else
  @>: Do something else
End
 
FireRaven got the good idea, but I think you kinda changed some things there >.>
Anyways,
Conditional Branch: Money 25,000 or higher
@>: Change money:-25,000
@>: Show Text Message: Thank you for visitng here. (or whatever else)
Else
@>: Show Text Message: You don't have enough money! (Or whatever else you'd like. also, you can ignore this option so when the player has no money nothing will happen)
End
Note : The change money isn't a must have, if its having enough money but doesn't take it just ignore the change money part.
Its about the same thing as Fireraven said, only more specific. I'm a specific guy.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top