Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / Reading from the Setup

Author
Message
Marc Steene
FPSC Master
20
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 23rd Jun 2012 14:41 Edited at: 23rd Jun 2012 14:48
I've checked the manual and GUI-X9 has functions to read values from the setup.ini file (readsetupline) but nothing I've been trying seems to work. I need to read a custom value from the setup file so the game can decide whether to show the intro video and start a new game or to load the existing game.

Here is the script so far:

:state=0:usegui=1,makesvar=menustate,readsetupline=menustate resumegame,state=1
:state=1,varequal=menustate 0:playfullvideo=1,video=videobank\introvid.wmv,destroy
:state=1,varequal=menustate 1:quitgame

:always:debugvar=menustate

Can anyone who has experience with these commands or the source take a look and see what the commands do and how to make them work correctly?


Official LightStorm Engine BETA Tester
/?m=forum_view&t=190541&b=21
maho76
15
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 25th Jun 2012 10:50
dimvars and needed script-commands work in the setup, maybe you can try them instead of gui-vars.

Meows
14
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 10th Jul 2012 12:07
check my last post in the RPG mod thread. I got something to actually work.

Life is a short trip to another world
Meows
14
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 10th Jul 2012 22:59

Question, What can you use to carry over a value from one game to another? even a single digit.

Not level to level but game to game. What do we have we can use for this?

Life is a short trip to another world

Login to post a reply

Server time is: 2026-07-04 15:03:50
Your offset time is: 2026-07-04 15:03:50