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 »Sample Firefight Scripting Errors!

Author Topic: Sample Firefight Scripting Errors! (6 messages, Page 1 of 1)
Moderators: Dennis

shadowce9
Joined: Mar 13, 2010

Learning Halo CE Scripting.


Posted: Mar 13, 2010 01:53 PM    Msg. 1 of 6       
So, I'm having quite a bit of trouble with some scripting errors. I only started scripting yesterday, but I've been part of the HCE Community for a while (even though I registered today).

Anyway, back to the point. Here is my script:

(script startup wave1
(ai_follow_target_players back_up)
(sleep 300)
(ai_place wave1)
(ai_magically_see_players wave1)
(sleep_until (= (ai_living_count wave1) 0) 15)
(wake wave2)
)


(script continuous back_up
(sleep_until (= (ai_living_count back_up) 0) 15)
(wake back_up_respawn)
)


(script dormant back_up_respawn
(sleep 900)
(ai_place back_up)
(ai_follow_target_players back_up)
)

(script dormant wave2
(sleep 300)
(ai_place wave2)
(ai_magically_see_players wave2)
(sleep_until (= (ai_living_count wave2) 0) 15)
(wake wave3)
)


(script dormant wave3
(sleep 300)
(ai_place wave3)
(ai_magically_see_players wave3)
(sleep_until (= (ai_living_count wave3) 0) 15)
(wake wave4)
)


(script dormant wave4
(sleep 300)
(ai_place wave4)
(ai_magically_see_players wave3)
(sleep_until (= (ai_living_count wave3) 0) 15)
(wake wave5)
)


(script dormant wave5
(sleep 300)
(object_create_anew c_gun)
(ai_place wave5)
(ai_magically_see_players wave5)
)


(script continuous weapon_change1
(sleep 30)
(object_destroy plasma_rifle)
(object_create shotgun)
(sleep 30)
(object_destroy shotgun)
(object_create needler)
(sleep 30)
(object_destroy needler)
(object_create plasma_pistol)
(sleep 30)
(object_destroy plasma_pistol)
(object_create pistol)
(sleep 30)
(object_destroy pistol)
(object_create rl)
(sleep 30)
(object_destroy rl)
(object_create plasma_rifle)
)


(script continuous weapon_change2
(sleep 30)
(object_destroy sniper_rifle)
(object_create s_smg)
(sleep 30)
(object_destroy s_smg)
(object_create plasma_cannon)
(sleep 30)
(object_destroy plasma_cannon)
(object_create spartanlaser)
(sleep 30)
(object_destroy spartanlaser)
(object_create b_plasma_rifle)
(sleep 30)
(object_destroy b_plasma_rifle)
(object_create assault_rifle)
(sleep 30)
(object_destroy assault_rifle)
(object_create sniper_rifle)
)

My problem is this:

[test_map line 7] this is not a valid script name.: wave2)
recompiling scripts after scenarios merged.
[test_map line 1] this left parenthesis is unmatched.: (script startup wave1

I have checked every single parenthesis in notepad++ so see if they match up, and they do. I don't understand why I keep receiving this error, but it seems that every time I add a (wake ) command, something like this happens. For example, after removing the wave scripts, even the back_up script gave me errors at the (wake back_up_respawn). Can anyone fix my script and explain why this is happening?

Also, I have two more problems. My hud messages do not compile at all, even after saving as unicode. Also, my weapon tags placed in my sp map test have 0 ammo when they are picked up. Can this be fixed?

Thank You in advance.


chrisk123999
Joined: Aug 10, 2008

=CE= Chris [Captain] [=]


Posted: Mar 13, 2010 01:58 PM    Msg. 2 of 6       
Put the dormant scripts before the startup. It doesn't know those scripts exist yet.
Edited by chrisk123999 on Mar 13, 2010 at 02:00 PM
Edited by chrisk123999 on Mar 13, 2010 at 02:00 PM


shadowce9
Joined: Mar 13, 2010

Learning Halo CE Scripting.


Posted: Mar 13, 2010 02:08 PM    Msg. 3 of 6       
Thank you! It worked like a charm! However, is there anyway to make sp weapon tags to start out with ammo in them? Also, I still cannot get my hud messages file to work properly. It doesn't even compile.


shadowce9
Joined: Mar 13, 2010

Learning Halo CE Scripting.


Posted: Mar 14, 2010 02:13 PM    Msg. 4 of 6       
Although I fixed my hud messages file before you responded, thank you for the weapon ammo advice. I didn't know you had to set them in Sapien.


SlappyThePirate
Joined: Aug 24, 2009

You are irritating, I'll release nothing


Posted: Mar 14, 2010 02:58 PM    Msg. 5 of 6       
You could do it in guerilla, but you have to place it first in sapien.
EDIT: I mean, you can see the weapons in the .scenario tag with guerilla.
Edited by SlappyThePirate on Mar 14, 2010 at 02:58 PM


shadowce9
Joined: Mar 13, 2010

Learning Halo CE Scripting.


Posted: Mar 14, 2010 07:18 PM    Msg. 6 of 6       
Alright, thanks, I'll keep that in mind.

 

 
Previous Older Thread    Next newer Thread







Time: Thu January 19, 2023 1:37 PM 188 ms.
A Halo Maps Website