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 »Need help with script!

Author Topic: Need help with script! (4 messages, Page 1 of 1)
Moderators: Dennis

Halocombatevolved
Joined: Nov 20, 2009

Son, I would've been your daddy, but, nevermind.


Posted: Sep 3, 2010 02:37 PM    Msg. 1 of 4       
(script startup begin

(object_create b1)

(object_create b2)

(object_create b3)

)

(script continuous banshee_ai

(if

(and

(= (unit_get_health b1) 0)

(= (unit_get_health b2) 0)

(= (unit_get_health b3) 0)

(begin

(object_create_anew b1)

(object_create_anew b2)

(object_create_anew b3)

(ai_attach b1 banshee)

(ai_attach b2 banshee)

(ai_attach b3 banshee)

(unit_enter_vehicle b1 E1 B-driver)

(unit_enter_vehicle b2 E2 B-driver)

(unit_enter_vehicle b3 E2 B-driver)

)

)

)

)


I made this script and when i tried to compile it I get this:

[banshee line 13] i expected (if  <condition> <then> [<else>]).: (if

recompiling scripts after scenarios were merged.

this left parenthesis is unmatched.: (if


Help! I'm trying to get elites to fly banshees and respawn when killed... or something simmer.
Edited by Halocombatevolved on Sep 3, 2010 at 02:39 PM

Edit:

I changed the script a little and it looks like this:

(script startup begin

(object_create b1)

(object_create b2)

(object_create b3)

(ai_attach b1 banshee)

(ai_attach b2 banshee)

(ai_attach b3 banshee)

(ai_kill banshee)

)

(script continuous banshee_ai

(if

(and

(= (unit_get_health b1) 0)

(= (unit_get_health b2) 0)

(= (unit_get_health b3) 0)

)

(begin

(object_create_anew b1)

(object_create_anew b2)

(object_create_anew b3)

(ai_attach b1 banshee)

(ai_attach b2 banshee)

(ai_attach b3 banshee)

(unit_enter_vehicle b1 E1 "B-driver")

(unit_enter_vehicle b2 E1 "B-driver")

(unit_enter_vehicle b3 E1 "B-driver")

)

)


But when I compile I get this error:

[banshee line 19] this left parenthesis is unmatched.: (script continuous banshee_ai

recompiling scripts after scenarios were merged.

this left parenthesis is unmatched.: (script continuous banshee_ai


HELP!
Edited by Halocombatevolved on Sep 3, 2010 at 03:09 PM


CAG Gonzo
Joined: Apr 2, 2009

Retreat? Hell! We just got here!


Posted: Sep 4, 2010 03:15 PM    Msg. 2 of 4       
It is as it says it is: you need to toss in a few more right parenthesis, as you have two left ones that are left open. This makes the script upset, and it rebels against you. Close them up and see if that works. Make sure for every single left, you have a corresponding right.


Halocombatevolved
Joined: Nov 20, 2009

Son, I would've been your daddy, but, nevermind.


Posted: Sep 4, 2010 03:56 PM    Msg. 3 of 4       
Sorry I forgot to update the post, I fixed it.


CAG Gonzo
Joined: Apr 2, 2009

Retreat? Hell! We just got here!


Posted: Sep 4, 2010 05:02 PM    Msg. 4 of 4       
Ah ok.

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 10:43 PM 188 ms.
A Halo Maps Website