Variables (freeware edition)

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

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

Variables (freeware edition)

Postby pedrosilvasena » Wed Mar 24, 2010 10:55 pm

Hi,

I can't find a clear explanation for the use of variables in AM's freeware edition. What do I have to do in order to send the player to another frame (in a later stage of the game) when (s)he chooses X or Y option?

PSS/NIP
User avatar
pedrosilvasena
Member
 
Posts: 18
Joined: Sun Mar 14, 2010 7:36 pm
Location: Lisbon, Portugal

Postby Mystery » Wed Mar 24, 2010 11:09 pm

Since I don't know the details how you want to work with variables:

If there are only two choices (X or Y), and the player has to choose one of them, then you could work with 1 variable. You can give the integer variable a name of your choice.
If the player chooses option x, set the variable (optionx) to 1, if the player choose option Y, leave the variable optionx=0.

If there are different options to choose from, create for each option an integer variable, e.g. optionx, optiony etc. (as I said you can choose a better name).
Then when the player chooses an option, set its variable to 1.

Create two hotspots on top of each other. In the Hotspot Properties, set the one on the top to be visible only if the option chosen is 1 (e.g. optionx).
Set for both hotspots a different target frame (Go To Another Frame in the Hotspot Properties), one where the player should be taken if he/she has chosen x (that is optionx=1), and the other where the player has chosen y (that is optionx =0).

It's difficult to explain well if I don't know details or don't have an example to work with, but I hope this helps.
You can also take a look at my Tutorial for Beginners which also introduces variables:
http://www.adventuremaker.com/phpBB2/vi ... php?t=3400

If anything is not clear, don't hesitate to ask again (maybe providing an example) :)
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