A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »This should be easy for you guys

Author Topic: This should be easy for you guys (6 messages, Page 1 of 1)
Moderators: Dennis

Glitcherguy
Joined: Jan 28, 2008

I should really put a clever quote here...


Posted: Feb 8, 2011 02:55 PM    Msg. 1 of 6       
What is wrong with this script?

(script continuous first_wave
(if
(> (ai_living_count marines_main_defend) 7)
(sound_looping_start "levels\a30\music\a30_07" none 1)
(sleep 120)
(ai_place covenant_main_attack/left)
(sleep 200)
(ai_place covenant_main_attack/right)
(sleep 200)
(ai_place covenant_main_attack/tunnel)
(sleep 200)
(ai_place covenant_main_attack/tunnel_commander)
)
(sound_looping_stop "levels\a30\music\a30_07")
)

I've made sure that all the squads are real, and that the music is there.


d4rfnader
Joined: Jul 16, 2010

Open mouth, insert sandwhich.


Posted: Feb 8, 2011 03:06 PM    Msg. 2 of 6       
What's the error you're getting?


Glitcherguy
Joined: Jan 28, 2008

I should really put a clever quote here...


Posted: Feb 8, 2011 03:23 PM    Msg. 3 of 6       
I expected a (if [condition] [then] [else].. like I don't have that?


d4rfnader
Joined: Jul 16, 2010

Open mouth, insert sandwhich.


Posted: Feb 8, 2011 04:32 PM    Msg. 4 of 6       
(script continuous first_wave
(if
(> (ai_living_count marines_main_defend) 7)
(begin
(sound_looping_start "levels\a30\music\a30_07" none 1)
(sleep 120)
(ai_place covenant_main_attack/left)
(sleep 200)
(ai_place covenant_main_attack/right)
(sleep 200)
(ai_place covenant_main_attack/tunnel)
(sleep 200)
(ai_place covenant_main_attack/tunnel_commander)
))
(sound_looping_stop "levels\a30\music\a30_07")
)

Maybe try this.


Noobyourmom
Joined: Mar 23, 2010


Posted: Feb 10, 2011 10:08 PM    Msg. 5 of 6       
If statements can only have 1 reaction. You can't put 10 different commands inside one if statement with halo scripting.


d4rfnader
Joined: Jul 16, 2010

Open mouth, insert sandwhich.


Posted: Feb 10, 2011 11:55 PM    Msg. 6 of 6       
unless you use the (begin statement, at least from what i've tested.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 7:54 AM 125 ms.
A Halo Maps Website