ok new plan to check games,
Ched80 gave me a clue and here is the result, however i can't seem to get the variable count to verify correctly.
The launcher two test games and fpm files included in attachment or you can get it here.
http://www.filefactory.com/file/1iwvkmvugtn3/n/000Game_zip
Ok, not sure what I am doing here but here we go.
Made a test lvl ONE
trigger script
;Artificial Intelligence Script
;Created by Ched80 2012.04.28
desc = Trigger Win Zone
;Triggers
:plrwithinzone=1:setsvarvalue=LevelsCompleted 1,savesvars,win
;End of Script
in the setuplevel.fpi, just what you gave me.
;SETUP.INI
:state=0:makesvar=LevelsCompleted 0 LComplete
:state=0:readsetupline=LevelsCompleted LComplete
TEST LVL TWO
I must have the script wrong, because I put Two Triggers, on the left was the Trigger Winzone
;Artificial Intelligence Script
;Created by Ched80 2012.04.28
desc = Trigger Win Zone
;Triggers
:plrwithinzone=1:setsvarvalue=LevelsCompleted 1,savesvars,win
;End of Script
On the right is my test to see if the LevelsCompleted is there
I put this in to see if the variable is there.
;Artificial Intelligence Script
;Created by Ched80 2012.04.28
desc = Trigger TestGame2 Zone
;Triggers
:plrwithinzone=1:svarequal=LevelsCompleted 0:state=0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\backdrops\0warehouse\startHint1.dds,hudname=hint1,hudhide=1,hudmake=display,hudlayer=hint1 1,state=3
:state=3,plrwithinzone=1:hudshow=hint1,state=4
:state=4,plrwithinzone=0:hudunshow=hint1,state=1
;End of Script
Now if the LevelsCompleted is 0 nothing should show, yet no matter if the LComplete= is in or not, the Built game
setup.ini for game2 the image displays.
SO what am I doing wrong. I figured I could put a Trigger in each games start level that checks to see if the
LComplete=1 has changed to LComplete=2 for level 3 and so on. With a endgame message saying you must complete game 1 to continue
to game 2 and end that game.
and a Trigger Win Zone at the end of the last level to increment the LComplete= so the next level would start.
I just del the LComplete= line in the setup.ini to try and figure it out.
Also is the value supposed to increase with each game in LComplete= ?
as it stays the same each game.
Life is a short trip to another world