
bg1
Joined: Jan 18, 2009
xfire: rabg
|
Posted: Feb 7, 2009 01:55 AM
Msg. 1 of 16
how do you make a trigger so when you step or cross it something happens? like i want to make a trigger and infection forms come out behind the rocks. how do you do that?
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Feb 7, 2009 02:07 AM
Msg. 2 of 16
Place a trigger volume (I'm assuming you know how). Then add the AI, set them to not initially created. Create a script (sleep_until (volume_test_objects [trigger_volume name] (players))15) (ai_place [ai_name]) (ai_command_list [ai_name] [command list for flood to come out])
Remember to make it a dormant, or a startup script.
|
|
|

bg1
Joined: Jan 18, 2009
xfire: rabg
|
Posted: Feb 7, 2009 02:26 AM
Msg. 3 of 16
hey gamma. yeah ahh, i dont know how to place a trigger volume. does it take long?
ohh no. never mind i just figured it out. lol.
how do you create a script? Edited by bg1 on Feb 7, 2009 at 02:27 AM
|
|
|

BeachParty clan
Joined: Oct 12, 2008
Sooo... You wanna switch to Red team huh?
|
Posted: Feb 7, 2009 07:50 AM
Msg. 4 of 16
make a hsc file, and place it in your data folder with identical dir sctructure, then compile it through tool to implent it. triggers are enabled with trigger zones placed in sapien, name then to refer the script to it. there are more possabilites but i'm too lazy to look through all of them
|
|
|

Polamee
Joined: Feb 25, 2008
MP2SPMT's founder
|
Posted: Feb 7, 2009 08:02 AM
Msg. 5 of 16
What? Its obvious that he wouldn't understand any of that, because I did not, either.
Start a new notepad file. Type in whatever you want. The script should look like this:
(script startup spawntheevilflood (sleep_until (volume_test_objects [trigger_volume name] (players))15) (ai_place [ai_name]) )
It will sleep the script until the player walks into the specified trigger, and spawn the flood AI. So if you nameed your AI encounter 'flood' and your trigger 'tvol', the script would look like:
(script startup spawntheevilflood (sleep_until (volume_test_objects tvol (players))15) (ai_place flood) )
There are many more stuff (e.g music and objectives) you can script with triggers.
Once that's done, use notepad, and 'save as'. DO NOT SAVE IT AS A .TXT
Save it as an 'all files', and add a .hsc at the end of the file name. Save it to Halo Custom Edition\Data\levels\mapname\scripts
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Feb 7, 2009 11:33 AM
Msg. 6 of 16
Sorry if you didn't understand it. I was in a rush.
|
|
|

Polamee
Joined: Feb 25, 2008
MP2SPMT's founder
|
Posted: Feb 7, 2009 09:37 PM
Msg. 7 of 16
No. I was talking about BeachParty clan's post
|
|
|

bg1
Joined: Jan 18, 2009
xfire: rabg
|
Posted: Feb 7, 2009 11:43 PM
Msg. 8 of 16
ok i got it thanks. ohh and how do you get rid of the script if you compiled it already in the scenario?
one more thing. how do you make more than one ai awake using one trigger?
like if i go pass a trigger, then elites, and flood appear. how would i do that? Edited by bg1 on Feb 7, 2009 at 11:48 PM
|
|
|

Polamee
Joined: Feb 25, 2008
MP2SPMT's founder
|
Posted: Feb 8, 2009 12:05 AM
Msg. 9 of 16
Delete it, and compile the scripts again.
To spawn more than one AI encounter:
(script startup spawntheevilflood (sleep_until (volume_test_objects tvol (players))15) (ai_place flood) (ai_place covvies) )
|
|
|

bg1
Joined: Jan 18, 2009
xfire: rabg
|
Posted: Feb 8, 2009 12:41 AM
Msg. 10 of 16
ok do you know where to find a whole bunch of scripts. for me to memorize or/and use to create the scripts.
wait it wont work. the scenario is not compiling to a map. it says data-cache-file. i mean failed to load data-cache-file like 4 times. what is wrong? Edited by bg1 on Feb 8, 2009 at 12:56 AM
ohh. i fix my problem. i put the script in the wrong area. but when i compile it in sapien. it tells me: this left parenthsis is unmatched.: (script startup spawnelites
what did i do?
here is what i typed in.
(script startup spawntheevilflood (sleep_until (volume_test_object tvol (players))15) (ai_place elites) )
i named it tvol cause it was simple to remember. Edited by bg1 on Feb 8, 2009 at 01:44 AM
|
|
|

Polamee
Joined: Feb 25, 2008
MP2SPMT's founder
|
Posted: Feb 8, 2009 06:56 AM
Msg. 11 of 16
What? You script name would be spawnelites, but yet you say the script name is spawntheevilflood. Which one is it? Do you have 2 separate scripts?
|
|
|

Vick Jr
Joined: Jun 26, 2008
Well enough alone...
|
Posted: Feb 8, 2009 11:03 AM
Msg. 12 of 16
Make sure that for every "(" starting parenthesis there is an ")" ending parenthesis.
I wonder if one could make scripts in, say, visual basic, just so it would highlight all the starting and ending parenthesis. I'll bet Bungie has their own script maker that does that and makes things different colors and stuff like for programming.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Feb 8, 2009 11:23 AM
Msg. 13 of 16
You didn't add (players) to the trigger volume. Make it look like: (sleep_until (volume_test_objects tvol (players))15)
|
|
|

bg1
Joined: Jan 18, 2009
xfire: rabg
|
Posted: Feb 10, 2009 01:16 AM
Msg. 14 of 16
i thought i added the players. polamee i messed up on the writing. i meant to use the flood. not the elites. sorry for the confusion.
|
|
|

sierra117
Joined: Jan 10, 2008
If sex is good exercise, why are there fat sluts?
|
Posted: Feb 10, 2009 01:41 AM
Msg. 15 of 16
you stuffed up the (volume_test_object part its supposed to be (volume_test_objects (you forgot to add a s at the end of object. And i understanded what BP said...just took me a couple hours or so to get it =P... [bad joke] Edited by sierra117 on Feb 10, 2009 at 01:43 AM
|
|
|

bg1
Joined: Jan 18, 2009
xfire: rabg
|
Posted: Feb 10, 2009 02:48 AM
Msg. 16 of 16
oh thats what was the problem. duh. :p
|
|
|