Page 1 of 1

One script for two maps?

Posted: Fri Jun 27, 2003 11:44 pm
by Piper
I want make this. In the first map the player make a rendevouz with the allies (4 british paras) one is the captain=no_damage, and I want, in the second map, only the paras survivors of the first map.
Sorry for my very poor english :oops:

Posted: Sat Jun 28, 2003 6:42 am
by jv_map
No question spotted :?

Posted: Sat Jun 28, 2003 8:47 am
by Butch
he wants, like in m5/1, only the survivors of the last level toappear in the next level, but how does he script it?

game

Posted: Sat Jun 28, 2003 9:17 am
by tltrude
Instead of "level." use "game.".

game.friendly1 = level.friendly1

Posted: Sat Jun 28, 2003 10:39 am
by jv_map
Well that will not work but it's at least a shot in the right direction :).

According to script files.txt only integers, floats, strings and vectors will persist accross levels. It's probably best to use an integer, something like game.friendly1_survived = 1

Posted: Sat Jun 28, 2003 1:39 pm
by mohaa_rox
how bout weapons that continue to the next level?

Posted: Sat Jun 28, 2003 1:55 pm
by nuggets
by using game.** = level.**

so in mission 1 have
mission_complete:
game.mymate1 = level.mymate1
game.mymate1.headskin = level.mymate1.headskin
etc... etc... etc...

then in mission 2 have
mission_start:
level.mymate1 = game.mymate1
//you get the idea