Thanks BlackFox , However I would like to point to this thread :
http://forum.thegamecreators.com/?m=forum_view&t=188263&b=23
I just downloaded the HUB system from there , It uses a var called PrevLvl to transport the player to the exit point when he leaves a level to another , this script sets the variable before leaving :
;Artificial Intelligence Script
;Header
desc = exit point for FPSC 1.18 by Jaropolk14
;Triggers
:state=0:dimvar=PrevLvl
:state=0,plrwithinzone=1:nextlevel=3,setvar=PrevLvl 1,suspend
and this one moves the player to the point he should be in the next level :
;Artificial Intelligence Script
;Header
desc = teleporter to start point for FPSC 1.18 by Jaropolk14
;Triggers
:state=0:dimvar=PrevLvl
:state=0,plrwithinzone=1,varequal=PrevLvl 0:plrmoveto=SP0,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 1:plrmoveto=SP1,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 2:plrmoveto=SP2,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 3:plrmoveto=SP3,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 4:plrmoveto=SP4,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 5:plrmoveto=SP5,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 6:plrmoveto=SP6,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 7:plrmoveto=SP7,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 8:plrmoveto=SP8,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 9:plrmoveto=SP9,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 10:plrmoveto=SP10,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 11:plrmoveto=SP11,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 12:plrmoveto=SP12,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 13:plrmoveto=SP13,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 14:plrmoveto=SP14,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 15:plrmoveto=SP15,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 16:plrmoveto=SP16,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 17:plrmoveto=SP17,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 18:plrmoveto=SP18,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 19:plrmoveto=SP19,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 20:plrmoveto=SP20,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 21:plrmoveto=SP21,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 22:plrmoveto=SP22,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 23:plrmoveto=SP23,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 24:plrmoveto=SP24,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 25:plrmoveto=SP25,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 26:plrmoveto=SP26,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 27:plrmoveto=SP27,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 28:plrmoveto=SP28,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 29:plrmoveto=SP29,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 30:plrmoveto=SP30,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 31:plrmoveto=SP31,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 32:plrmoveto=SP32,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 33:plrmoveto=SP33,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 34:plrmoveto=SP34,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 35:plrmoveto=SP35,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 36:plrmoveto=SP36,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 37:plrmoveto=SP37,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 38:plrmoveto=SP38,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 39:plrmoveto=SP39,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 40:plrmoveto=SP40,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 41:plrmoveto=SP41,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 42:plrmoveto=SP42,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 43:plrmoveto=SP43,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 44:plrmoveto=SP44,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 45:plrmoveto=SP45,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 46:plrmoveto=SP46,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 47:plrmoveto=SP47,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 48:plrmoveto=SP48,state=1
:state=0,plrwithinzone=1,varequal=PrevLvl 49:plrmoveto=SP49,state=1
If I understood this system right , He only used dimvar=PrevLvl to retrieve the variable value . It seems to work in v1.18 and accordingly in any versions above .
"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest