just a qusetion>>?


(Adminmight) #1

lets say i make a map with 5 flags,and the last flag is to end the map,now

flag 
{
   spawn
   {
   wait 200
   }
      trigger allied_capture //use axis_capture instead for axis to cap
      {
      wm_announce "Allies have captured the last flag!"
      wm_announce "Allies have won the game!"
      wait 3000 //wait 3 secs
      wm_setwinner 1 //set winner allies=1, axis=0
      wm_endround //ends the round
      }
} 

would be used for the last flag,so now what would i put for the first four? is it

flag 
{
   spawn
   {
   wait 200
   }
      trigger allied_capture //use axis_capture instead for axis to cap
      {
      wm_announce "Allies have captured the last flag!"
      
      }
} 

im a right?


(-SSF-Sage) #2

It depends on what you want to happen with them. But that is not right. The end flag is correct. I would say you could use flag1,flag2 flag3,flag4 and the ending flag would be flag5, so change that to it! And this is the scriptname of the flag’s entity. Wm_announce is just something that the script say to people it won’t do anything else.

flag1 //scriptname of the flag1
{
spawn
{
wait 200
}
trigger allied_capture //use axis_capture instead for axis to cap
{
//here would come additional stuff…

  }

}

edit start for looking at this http://www.pythononline.co.uk/et/tutorial29.htm it’s a tutorial that is telling about the flags, but don’t use just copy/paste, read it. I’m not sure if this is what you want. Read it very very carefully. I know this can be painful to read for the first time but if you read it few times then I think you should got it. I know that getting into scripting is hard, as I’m not one of the scripting monkeys.

edit2 and imo you should have used the old topic, “end map”.


(Flippy) #3

We will need some more info on this.

[ul][li]Are these flags the same flags that are used to capture spawnpoints?
[/li][li]Are they perhaps team_WOLF_redflag/blueflag entities, to make a CTF-map?
[/li][li]Is it / should it be possible to capture the last flag without having to capture the first 4 flags? Or do you have to capture them in order?
[/li][/ul]


(Adminmight) #4

kk great thankyou