How to activate variables without load a saved game

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

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

How to activate variables without load a saved game

Postby ste » Thu Mar 10, 2011 3:34 pm

Hi,

I LOVE Adventure Maker and I have a question (I don't speak English very well but I'll try to be clear):

In my game I have a main menu in a specific frame. In this main menu there is an under-menu called "video archive" where the player can access at all the videos he already seen during the game.

I use of course variables but the problem is when the players quits the game because when he restart the game in the main menu he has no access to the already unlocked videos (because the variable is 0 and he needs to first load the saved game with the variable set to 1).

Is there any solution to let the player access to the unlocked videos without loading the saved game first? Is there a way to activate variables without load a saved game?

Thank you in advance for you help!
ste
New Member
 
Posts: 3
Joined: Thu Mar 10, 2011 3:22 pm

Postby reneuend » Thu Mar 10, 2011 11:21 pm

Yes there is, but you need to do it using VB scripting.

When the game first loads, it should check an INI file every time. This is where you would store your variable value.

If you change a variable during the game, you would update the INI file, so when the user starts the game again, it would get the new values.
---


Image
Image
User avatar
reneuend
Administrator
 
Posts: 2762
Joined: Sat Nov 22, 2008 8:37 pm
Location: Midwest Cornfield, USA

Postby ste » Mon Mar 14, 2011 10:57 am

Thank you :)

So it seems that I have to use the "WriteINI/ReadINI" function.

Can you please explain me with an example how does it works?

Thank you again!
ste
New Member
 
Posts: 3
Joined: Thu Mar 10, 2011 3:22 pm

Postby Lyberodoggy » Mon Mar 14, 2011 9:43 pm

You can see an advanced example here but it could be confusing
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

Postby ste » Tue Mar 15, 2011 11:37 am

Thank you! I will try 8)
ste
New Member
 
Posts: 3
Joined: Thu Mar 10, 2011 3:22 pm


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron