
FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Jun 28, 2009 01:55 AM
Msg. 1 of 18
Can someone give me a script like e.g. i walk past a corner into a hallway and it triggers and spawns AI? i need it for my SP Map. Thanks. 
|
|
|

FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Jun 28, 2009 02:18 AM
Msg. 2 of 18
I need a script.
|
|
|

Sharp1337X
Joined: Jun 22, 2009
My pistol, Pwn you, it will
|
Posted: Jun 28, 2009 06:44 AM
Msg. 3 of 18
Ok, here's how:
First make an AI encounter, and name it e.g corner_ai Also make a trigger volume, call it trigger_corner or something
then type this script:
(script continuous "name script" (begin (sleep_until (volume_test_objects trigger_corner (players)) 0) (ai_place corner_ai
That's it ;)
Also in the first line, leave out the "" and make name script the name you want your script to be, e.g corner_ai_start_trigger
Edited by Sharp1337X on Jun 28, 2009 at 06:45 AM
|
|
|

Lone Warrior
Joined: Dec 14, 2008
-Himalayan Wizard and Mystical Guru of the Mts.-
|
Posted: Jun 28, 2009 07:14 AM
Msg. 4 of 18
Quote: --- Original message by: Sharp1337X
(script continuous "name script" (begin <--- Not needed (sleep_until (volume_test_objects trigger_corner (players)) 0) (ai_place corner_ai ) ) )
Also in the first line, leave out the "" and make name script the name you want your script to be, e.g corner_ai_start_trigger
Edited by Sharp1337X on Jun 28, 2009 at 06:45 AM Thought I'd fix that for you. For one you dont need the begin thing. Secondly you didn't close the paranthesis. I'm not trying to act arrogant or anything. I thought I'd just fix this stuff up for this guy, so he understands scripts a bit more. Edited by Lone Warrior on Jun 28, 2009 at 07:14 AMEdited by Lone Warrior on Jun 28, 2009 at 07:14 AM
|
|
|

Sharp1337X
Joined: Jun 22, 2009
My pistol, Pwn you, it will
|
Posted: Jun 28, 2009 09:35 AM
Msg. 5 of 18
Quote: --- Original message by: Lone WarriorQuote: --- Original message by: Sharp1337X
(script continuous "name script" (begin <--- Not needed (sleep_until (volume_test_objects trigger_corner (players)) 0) (ai_place corner_ai ) ) )
Also in the first line, leave out the "" and make name script the name you want your script to be, e.g corner_ai_start_trigger
Edited by Sharp1337X on Jun 28, 2009 at 06:45 AM Thought I'd fix that for you. For one you dont need the begin thing. Secondly you didn't close the paranthesis. I'm not trying to act arrogant or anything. I thought I'd just fix this stuff up for this guy, so he understands scripts a bit more. Edited by Lone Warrior on Jun 28, 2009 at 07:14 AMEdited by Lone Warrior on Jun 28, 2009 at 07:14 AM Ah yes! thnx! :) The begin thing I know, but it's stupid I forgot the ) ) )
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jun 28, 2009 10:12 AM
Msg. 6 of 18
You made this a continuous script, which isn't exactly the best to use for this scenario. What you should do, is this: (script startup ai_spawn (sleep_until (volume_test_objects [TRIGGER VOLUME] (players)) 15) (ai_place [AI ENCOUNTER NAME]) )
You have to fill in the blanks. To put down a trigger volume, in Sapien, Hierarchy View > Game Data > Trigger Volumes. Right click in Game view to put one down, and then stretch it until you see it fit. Name that trigger volume, and replace [TRIGGER VOLUME] with the name of your trigger volume. As for [AI ENCOUNTER NAME], it's pretty straightforward. Every AI encounter has a name, even if it's the default one that I can't remember. For simplicities' sake, rename it to something that you can preferably remember and type out. Replace [AI ENCOUNTER] with that.
|
|
|

Sharp1337X
Joined: Jun 22, 2009
My pistol, Pwn you, it will
|
Posted: Jun 28, 2009 10:42 AM
Msg. 7 of 18
what gamma said ^^ :P
But gamma, wouldn't it just only check it on the startup, and not continuous?
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jun 28, 2009 10:45 AM
Msg. 8 of 18
The script executes on startup, and it waits for the player to enter the trigger volume. Note the (sleep_until command. That does what the name implies: sleep until you enter the trigger volume.
|
|
|

Sharp1337X
Joined: Jun 22, 2009
My pistol, Pwn you, it will
|
Posted: Jun 28, 2009 12:50 PM
Msg. 9 of 18
Oh ok, I taught it would only check it for the startup, then leav it as is, btw you want to join the Halo CE: Hell Jumpers team or not? Let me know ^_^ :P
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jun 28, 2009 01:02 PM
Msg. 10 of 18
Haven't been convinced yet :P
|
|
|

FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Jun 28, 2009 02:06 PM
Msg. 11 of 18
Can i like add to it another ai_place? I need to place Allies and Encounter1
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jun 28, 2009 02:10 PM
Msg. 12 of 18
Yea. If you wanted to add another, using those two encounters, it would look like this: (script startup ai_spawn (sleep_until (volume_test_objects [TRIGGER VOLUME] (players)) 15) (ai_place allies) (ai_place encounter1) )
|
|
|

FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Jun 28, 2009 02:16 PM
Msg. 13 of 18
K ty im new to scripting,im gonna compile scripts then test it in Halo. Edit:Didnt work. Do you remove the [] on the sides of the trigger volume? <> Edit(Again): Nvm. I want to know why most of my tags dont even work! Theres not even any red text in guerilla! Edited by FtDSpartn on Jun 28, 2009 at 02:58 PM
|
|
|

Sharp1337X
Joined: Jun 22, 2009
My pistol, Pwn you, it will
|
Posted: Jun 28, 2009 04:01 PM
Msg. 14 of 18
Quote: --- Original message by: FtDSpartn
K ty im new to scripting,im gonna compile scripts then test it in Halo. Edit:Didnt work. Do you remove the [] on the sides of the trigger volume? Edit(Again): Nvm. I want to know why most of my tags dont even work! Theres not even any red text in guerilla! Edited by FtDSpartn on Jun 28, 2009 at 02:58 PM Post your debug.txt here (located in C:\program files\microsoft games\halo custom edition)
|
|
|

FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Jun 28, 2009 04:10 PM
Msg. 15 of 18
Looks like im missing tags... 06.28.09 13:08:35 file_open('tags\effects\blood aoe elite.effect') error 0x00000002 'The system cannot find the file specified. ' 06.28.09 13:08:35 couldn't open effect tag 'blood aoe elite.effect'. 06.28.09 13:08:35 failed to load model_collision_geometry tag 'characters\elite\elite' 06.28.09 13:08:36 file_open('tags\globals\elite.material_effects') error 0x00000002 'The system cannot find the file specified. ' 06.28.09 13:08:36 couldn't open material_effects tag 'elite.material_effects'. 06.28.09 13:08:36 failed to load biped tag 'characters\elite\elite' 06.28.09 13:08:36 file_open('tags\effects\blood aoe elite.effect') error 0x00000002 'The system cannot find the file specified. ' 06.28.09 13:08:36 couldn't open effect tag 'blood aoe elite.effect'. 06.28.09 13:08:36 failed to load model_collision_geometry tag 'characters\elite\elite' 06.28.09 13:08:36 file_open('tags\globals\elite.material_effects') error 0x00000002 'The system cannot find the file specified. ' 06.28.09 13:08:36 couldn't open material_effects tag 'elite.material_effects'. 06.28.09 13:08:36 failed to load biped tag 'characters\elite\elite' 06.28.09 13:08:36 failed to load actor_variant tag 'characters\elite\elite major\elite major plasma rifle' 06.28.09 13:08:36 failed to load actor_variant tag 'characters\elite minor\elite minor plasma rifle' 06.28.09 13:08:47 file_open('tags\sound\sfx\impulse\impacts\soldier_run.sound') error 0x00000002 'The system cannot find the file specified. ' 06.28.09 13:08:47 couldn't open sound tag 'soldier_run.sound'. 06.28.09 13:08:47 file_open('tags\sound\sfx\impulse\impacts\soldier_walk.sound') error 0x00000002 'The system cannot find the file specified. ' 06.28.09 13:08:47 couldn't open sound tag 'soldier_walk.sound'. 06.28.09 13:08:47 failed to load model_animations tag 'characters\marine\marine' 06.28.09 13:09:21 failed to load biped tag 'characters\marine_armored\marine_armored' 06.28.09 13:09:21 file_open('tags\sound\sfx\impulse\impacts\soldier_run.sound') error 0x00000002 'The system cannot find the file specified. ' 06.28.09 13:09:21 couldn't open sound tag 'soldier_run.sound'. 06.28.09 13:09:21 file_open('tags\sound\sfx\impulse\impacts\soldier_walk.sound') error 0x00000002 'The system cannot find the file specified. ' 06.28.09 13:09:21 couldn't open sound tag 'soldier_walk.sound'. 06.28.09 13:09:21 failed to load model_animations tag 'characters\marine\marine' 06.28.09 13:09:21 failed to load biped tag 'characters\marine_armored\marine_armored' 06.28.09 13:09:21 failed to load actor_variant tag 'characters\marine_armored\marine_armored assault rifle major' 06.28.09 13:09:21 failed to load actor_variant tag 'characters\Marine_Armored\marine_armored assault rifle'
|
|
|

Sharp1337X
Joined: Jun 22, 2009
My pistol, Pwn you, it will
|
Posted: Jun 28, 2009 04:16 PM
Msg. 16 of 18
Had this one too ;)
Well you are missing the SP tags, You need to extract them from various levels of Halo,
So get over to Halomaps, and download a level where flood is in (if you use flood) (I prefer 343 guilty spark (c10) + The first level, (a10)
Extract ALL The tags to a new tags folder, all of them.. Then copy that tags folder over your own, when it asks to overwrite press: yes, You will not lose your own files, only files will be added!
Good luck and have fun making your map ^_^
|
|
|

FtDSpartn
Joined: May 1, 2009
Verified AI.
|
Posted: Jun 28, 2009 05:16 PM
Msg. 17 of 18
K testing...i sure hope this works! i had c10 regular sooo... yeah! Iv been wanting to place like grunts,all i could place was spartans and infection forms. Edit: IT WORKED OMG! OMG OMG TY TY TY THANKS SO MUCH! Edited by FtDSpartn on Jun 28, 2009 at 05:25 PM
|
|
|

Sharp1337X
Joined: Jun 22, 2009
My pistol, Pwn you, it will
|
Posted: Jun 28, 2009 06:30 PM
Msg. 18 of 18
No problem ^_^ that's why we are here, to discuss and help each other ^_^ and not for spamming >_>
|
|
|