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 »what wrong with this script?

Author Topic: what wrong with this script? (5 messages, Page 1 of 1)
Moderators: Dennis

sierra117
Joined: Jan 10, 2008

If sex is good exercise, why are there fat sluts?


Posted: Nov 15, 2008 04:46 PM    Msg. 1 of 5       
nvm
Edited by sierra117 on Nov 15, 2008 at 05:12 PM


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: Nov 15, 2008 05:22 PM    Msg. 2 of 5       
Okay, lots of things:

You have to put each dormant script above each of the startup script. The compiler reads from top to bottom, so if the startup script is on top of the dormant script and it has the "wake script_name" command, then it thinks it's referencing a script that doesn't exist and stops compiling to give an error.

So basically, just switch the order from:

(script startup blah

(script dormant blah

to:

(script dormant blah

(script startup blah

Also, two other things: for the sound scripts, change them to startup scripts, because otherwise the sound will get started continuously when pelican_crash object is in the pelican_crash trigger volume. So, also change the "if" test to a "sleep_until" test for those sound scripts.

Also, you have two "sounding2" scripts, rename the second one to something else.

And, for the "sound_impulse_start" command, you need to reference a "sound" tag, not a "sound_looping" tag. So, if you need to reference a sound_looping, then use the "sound_looping_start" command instead:

(sound_looping_start )

plays a looping sound from the specified source object (or "none"), with the specified scale.

When referring to a tag in a script, you don't need the extension, as in you don't need to put ".sound_looping" at the end of it, because it knows what tag type to look for.

Last thing. In your "box_killer" script, you want to kill player "0" if he gets in the trigger volume, so change the "(list_get (players) 1)" at the "volume_test_object" test to "(list_get (players) 0)".

Get rid of the "box_killer2" script, since you're not going to ever have more than one player in single player. You don't need it.

Edit: Fantastic. I spent so long typing that you edited everything out before I posted. xD

Either way, this should help you out.
Edited by Me KS on Nov 15, 2008 at 05:24 PM


sierra117
Joined: Jan 10, 2008

If sex is good exercise, why are there fat sluts?


Posted: Nov 15, 2008 05:47 PM    Msg. 3 of 5       
yeah ill try what u said and will keep u posted on what happening

man ur telling me pretty much to change the script completly

EDIT: i only wrote nvm coz i changed the script completly and now i have to change it again =0

EDIT2: i have more than one death_box tho so why do i get rid of the 2nd box_kiler script
Edited by sierra117 on Nov 15, 2008 at 05:49 PM


Me KS
Joined: Feb 2, 2008

Desire is Reality. Xfire: jetmaster23


Posted: Nov 15, 2008 08:00 PM    Msg. 4 of 5       
Oh yeah, forgot that there was a different trigger volume. Keep the "box_killer2" script, but make sure the number for each (players) call is the same: "0".


sierra117
Joined: Jan 10, 2008

If sex is good exercise, why are there fat sluts?


Posted: Nov 15, 2008 08:30 PM    Msg. 5 of 5       
http://forum.halomaps.org/index.cfm%3Fpage=topic&topicID=22047

help me plz?


and this is my script without the other thread involved. (so forget about the bold)

my new script is this:

(script dormant enc1_flood_spawn
(ai_place enc1_flood)
)
(script startup spawn_stuff1
(sleep_until (volume_test_objects ai1 (players)) 1)
(wake ai_spawn)
)
(script dormant enc2_flood_spawn
(ai_place enc2_flood)
)
(script startup spawn_stuff2
(sleep_until (volume_test_objects ai2 (players)) 1)
(wake ai_spawn)
)
(script dormant enc3_flood_spawn
(ai_place enc3_flood)
)
(script startup spawn_stuff3
(sleep_until (volume_test_objects ai3 (players)) 1)
(wake ai_spawn)
)
(script dormant enc1_marine_spawn
(ai_place enc1_marine)
)
(script startup spawn_stuff4
(sleep_until (volume_test_objects ai4 (players)) 1)
(wake ai_spawn)
)
(script dormant enc1_covie_spawn
(ai_place enc1_covie)
)
(script startup spawn_stuff18
(sleep_until (volume_test_objects ai5 (players)) 1)
(wake ai_spawn)
)
(script dormant enc4_flood_spawn
(ai_place enc4_flood)
)
(script startup spawn_stuff5
(sleep_until (volume_test_objects ai6 (players)) 1)
(wake ai_spawn)
)
(script dormant enc4_flood_spawn
(ai_place enc4_flood)
)
(script startup spawn_stuff6
(sleep_until (volume_test_objects ai7 (players)) 1)
(wake ai_spawn)
)
(script dormant enc2_marine_spawn
(ai_place enc2_marine)
)

(script startup spawn_stuff7
(sleep_until (volume_test_objects ai8 (players)) 1)
(wake ai_spawn)
)
(script dormant enc3_covie_spawn
(ai_place enc3_covie)
)
(script startup spawn_stuff8
(sleep_until (volume_test_objects ai9 (players)) 1)
(wake ai_spawn)
)
(script dormant enc5_flood_spawn
(ai_place enc5_flood)
)
(script startup spawn_stuff9
(sleep_until (volume_test_objects ai10 (players)) 1)
(wake ai_spawn)
)
(script dormant enc3_marine_spawn
(ai_place enc3_marine)
)
(script startup spawn_stuff10
(sleep_until (volume_test_objects ai11 (players)) 1)
(wake ai_spawn)
)
(script dormant enc6_flood_spawn
(ai_place enc6_flood)
)
(script startup spawn_stuff11
(sleep_until (volume_test_objects ai12 (players)) 1)
(wake ai_spawn)
)
(script dormant enc4_covie_spawn
(ai_place enc4_covie)
)
(script startup spawn_stuff12
(sleep_until (volume_test_objects ai13 (players)) 1)
(wake ai_spawn)
)
(script dormant enc5_covie_spawn
(ai_place enc5_covie)
)
(script startup spawn_stuff13
(sleep_until (volume_test_objects ai14 (players)) 1)
(wake ai_spawn)
)
(script dormant enc6_covie_spawn
(ai_place enc6_covie)
)
(script startup spawn_stuff14
(sleep_until (volume_test_objects ai15 (players)) 1)
(wake ai_spawn)
)
(script dormant enc7_covie_spawn
(ai_place enc7_covie)
)
(script startup spawn_stuff15
(sleep_until (volume_test_objects ai16 (players)) 1)
(wake ai_spawn)
)
(script dormant enc7_flood_spawn
(ai_place enc7_flood)
)
(script startup spawn_stuff16
(sleep_until (volume_test_objects ai17 (players)) 1)
(wake ai_spawn)
)
(script dormant enc4_marine_spawn
(ai_place enc4_marine)
)
(script startup spawn_stuff17
(sleep_until (volume_test_objects ai18 (players)) 1)
(wake ai_spawn)
)
(script startup pelican
(sleep_until (= (volume_test_object pelican_crash pelican_crash) true)
(sound_looping_start sound\sfx\ambience\d40\burning_pelican none 1)
)
)
(script startup music
(sleep_until (= (volume_test_object unyielding ost unyielding) true)
(sound_looping_start sound\music\ost unyielding\ost unyielding none 1)
)
)
(script continuous beachmusic
(sleep_until (= (volume_test_object h2_peril h2_peril) true)
(sound_looping_start sound\music\music\halo2peril\halo2peril none 1)
)
)
(script continuous box_killer
(begin
(if (= (volume_test_object death_box (list_get (players) 1)) true)
(begin
(unit_kill (unit (list_get (players) 1)))
)
)
)
)
(script continuous box_killer2
(begin
(if (= (volume_test_object death_box2 (list_get (players) 1)) true)
(begin
(unit_kill (unit (list_get (players) 1)))
)
)
)
)
(script continuous box_killer3
(begin
(if (= (volume_test_object death_box3 (list_get (players) 1)) true)
(begin
(unit_kill (unit (list_get (players) 1)))
)
)
)
)
(script continuous box_killer4
(begin
(if (= (volume_test_object death_box4 (list_get (players) 1)) true)
(begin
(unit_kill (unit (list_get (players) 1)))
)
)
)
)

and my debug says this:
11.16.08 11:33:09 a hobo pc 01.01.00.0609 ----------------------------------------------
11.16.08 11:33:09 reference function: _write_to_error_file
11.16.08 11:33:09 reference address: 401b13
11.16.08 11:33:09 Couldn't read map file './a_hobobeta.map'
11.16.08 11:33:10 CreateDevice succeeded with refresh rate = 0
11.16.08 11:33:13 Increasing sound decompression buffer size to 1048576 bytes
11.16.08 11:34:46 recompiling scripts after scenarios were merged.
11.16.08 11:34:46 this left parenthesis is unmatched.: (script startup spawn_stuff1

11.16.08 11:34:48 local player 0, weapon (0x0), deleted unexpectedly
11.16.08 11:35:03 [script line 6] this is not a valid script name.: ai_spawn)

11.16.08 11:35:03 recompiling scripts after scenarios were merged.
11.16.08 11:35:03 [script line 4] this left parenthesis is unmatched.: (script startup spawn_stuff1

11.16.08 11:54:20 [script line 6] this is not a valid script name.: ai_spawn)

11.16.08 11:54:20 recompiling scripts after scenarios were merged.
11.16.08 11:54:20 [script line 4] this left parenthesis is unmatched.: (script startup spawn_stuff1

-just so you know i tried compiling twice (i double-clicked accidently)

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 11:52 AM 141 ms.
A Halo Maps Website