Let's say that my hero needs some information and the only one who can provide it asks for some gold in exchange of the info: is it possible to set this through events and conditions only or do I need a script?
If the former, please give me the most precise instructions possible: I always have strong difficulties with everything related to switches, variables, and other "magical" features...
Thanks in advance for any help 🙂
All you need is a simple event,
Let's assume the NPC is asking for 200 gold pieces.
Show Choice Pay/Not Pay
When Pay
Conditional branch : Gold is 200 or more
When yes: Dialogue - here you are take the money, blah
Change Gold: minus 200
When no: Hero: Sorry, we don't have that much.
NPC: then go do a side quest, kill a few monsters. No money, no information.
When Not Pay
Dialogue or whatever.
Ninja'd
If you're having problems with switches and variables, then I suggest you go back to the tutorials and work through them until you know how to use them - switches and variables are the most important part of the engine and you NEED to know how to use them if you ever want to make a game with anything moderately complex.
Follow the link in my signature and look for the "Variables Guide" there, that game should give you the basics.
Maybe I should give another try to it, yes...
To give more detail the conditional I was referring to is:
Select Conditional Branch - tab one of the Event Command Menu
Select Tab 4
The first item is 'Gold' Select it and the boxes to the right allow you to specify how much gold there should be.
Do that and the engine will automatically determine if the player has enough. Everything then runs as I described. You do not need switches or variables.
Yes, that's what I did after having posted my very first reply and it worked, but I forgot to edit my post to say my problem was solved: sorry for the confusion, guys, it has been a complicated day for me...
I believe this topic can now be closed: thanks again to everyone for the help, much appreciated 🙂