INTEGER VALUE CODE

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

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

INTEGER VALUE CODE

Postby GORDON » Sun Feb 14, 2010 4:45 pm

What is the code to load a saved frame and have an integer variant change to a value of 1 once loaded. Is this a timed event since changing it in the "load game" VBS would have no effect on the frame once it's loaded?
GORDON
Advanced Member
 
Posts: 154
Joined: Mon Apr 30, 2007 1:36 am
Location: Canada

Postby Lyberodoggy » Sun Feb 14, 2010 10:57 pm

you can't actually do that directly. What you can do is:
Create a variant variable named refferer
In all the hotspots that send the player to another frame input the code
refferer=GetCurrentFrameName

then go to every frame and put the code:
if refferer="" then
variable_you_want=1
else
refferer=""
end if


this is going to check if the player got to the frame from another frame or by loading a saved game.
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests