(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 PMEdit:
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