How does the money system work?

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

How does the money system work?

Postby Zeppelin37BDF » Fri Aug 24, 2007 2:27 am

In the help site for Adventure Maker, there is a section about a money variable.

5. How to create a money variable, to increase it and to display it?

Just create an "integer" variable called for example Money, and then use the following code to increase it:
Money = Money + 1

To display it on the screen, create a new textbox (by right-clicking on the frame background), and then use the following code:
Text(1) = Money



Anyway, I got the money amount to be displayed on the frame, but when I assigned the dollar bill icon I made to give me money, the money amount stays at zero. Anyone know how to fix this? Where exactly do I place the script "Money = Money + 1" ? Any help would be highly appreciated.

Thanks,
Brian
Zeppelin37BDF
Member
 
Posts: 38
Joined: Sun Jun 25, 2006 2:28 am

Postby Mystery » Fri Aug 24, 2007 12:51 pm

I've made a small demo for money and score some time ago (3 different money values to add to your Money variable and a bottle of wine to reduce your Money variable). In one case you are asked if you really want to pick up the money. You could use this also for asking if a player really wants to spend their money on a specific item.

You can find the thread here:
http://www.adventuremaker.com/phpBB2/vi ... =7194#7194

I've re-uploaded the demo, see the last post and my edit with the new link. Let me know if you have any problems downloading it. Just unzip it, and copy it as project into your AM (hope it works also with the new version of AM, it was done with the previous version).

If anything doesn't work with the demo, please let me know and I'll look into it :) Or if you have any further questions :)

EDIT
And I've found this thread that might be interesting for you, too:
http://www.adventuremaker.com/phpBB2/vi ... php?t=2945

EDIT2
Did you get it to work?
User avatar
Mystery
Forum Admin and Games Page admin
 
Posts: 2990
Joined: Sat Feb 04, 2006 8:12 am
Location: Switzerland


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests