One script for two maps?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Piper
Corporal
Posts: 26
Joined: Mon May 26, 2003 12:46 am

One script for two maps?

Post 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:
...Ham & Jam....Ham & Jam...Ham & Jam...
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

No question spotted :?
Image
User avatar
Butch
Lieutenant Colonel
Posts: 398
Joined: Fri Jan 24, 2003 11:30 am

Post 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?
PFC.Butch
B Company, 2nd Ranger Battalion
US Army
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

game

Post by tltrude »

Instead of "level." use "game.".

game.friendly1 = level.friendly1
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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
Image
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

how bout weapons that continue to the next level?
Live to map, not map to live.
-mohaa_rox, .map
moderator
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
Post Reply