
Dumb AI
Joined: Sep 18, 2011
Dead.
|
Posted: Jul 28, 2012 05:11 PM
Msg. 1 of 12
Sapien says: " i expected a script or variable definition.: ÿþ( " whenever I compile a script.
|
|
|

heempy
Joined: Apr 13, 2011
|
Posted: Jul 28, 2012 05:15 PM
Msg. 2 of 12
show us the script
|
|
|

Dumb AI
Joined: Sep 18, 2011
Dead.
|
Posted: Jul 28, 2012 05:18 PM
Msg. 3 of 12
(script startup myfirefight (sv_say "welcome to my firefight") (sleep 150) (wake loop) )
(script dormant loop (wake ai) )
(script dormant ai (ai_place odst) (ai_place alien) (ai_magically_see_players alien) (sleep_until (<= (ai_living_count alien) 0)) (sv_say "wave complete") (sleep 150) (wake loop) )
|
|
|

grunt_eater
Joined: Jan 26, 2011
Everything except biped rigging.
|
Posted: Jul 28, 2012 05:59 PM
Msg. 4 of 12
the scripts being called have to be above the scripts calling them, if i'm not mistaken. Instead try (script dormant ai (ai_place odst) (ai_place alien) (ai_magically_see_players alien) (sleep_until (<= (ai_living_count alien) 0)) (sv_say "wave complete") (sleep 150) (wake loop) )
(script dormant loop (wake ai) )
(script startup myfirefight (sv_say "welcome to my firefight") (sleep 150) (wake loop) )
though i'm not sure if the loop call in the AI script will work. Lol.
|
|
|

Gamma927
Joined: Jun 12, 2008
Steam: gamma927
|
Posted: Jul 28, 2012 06:08 PM
Msg. 5 of 12
Make one of the dormant scripts a static void.
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Jul 28, 2012 06:37 PM
Msg. 6 of 12
(script static void ai (ai_place odst) (ai_place alien) (ai_magically_see_players alien) (sleep_until (<= (ai_living_count alien) 0)) (sv_say "wave complete") (sleep 150) (wake loop) )
(script dormant loop (ai) )
(script startup myfirefight (sv_say "welcome to my firefight") (sleep 150) (ai) )
|
|
|

Dumb AI
Joined: Sep 18, 2011
Dead.
|
Posted: Jul 28, 2012 06:53 PM
Msg. 7 of 12
Thanks for the help,guys.I knew something was missing in that script. Still doesn't work. Edited by Dumb AI on Jul 28, 2012 at 06:57 PM
|
|
|

Dumb AI
Joined: Sep 18, 2011
Dead.
|
Posted: Jul 28, 2012 07:14 PM
Msg. 8 of 12
Why not? Resurrection for $5 per a corpse.
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Jul 28, 2012 11:42 PM
Msg. 9 of 12
Quote: --- Original message by: MoooseGuy (script static void ai (ai_place odst) (ai_place alien) (ai_magically_see_players alien) (sleep_until (<= (ai_living_count alien) 0)) (sv_say "wave complete") (sleep 150) (wake loop) )
(script dormant loop (ai) )
(script startup myfirefight (sv_say "welcome to my firefight") (sleep 150) (ai) )
You're trying to wake loop before it's defined, halo will rage. Also, if this is meant to loop, why aren't you using a continuous script?..... the planning in this script doesnt really seem to exist lol. (script continuous ai (sleep 150) (ai_place odst) (ai_place alien) (ai_magically_see_players alien) (sleep_until (<= (ai_living_count alien) 0)) (sv_say "wave complete") ) (script startup myfirefight (sv_say "welcome to my firefight") ) By putting the sleep 150 at the top, it still waits the 150 for the first time, as well as all future times (since it returns to the top after it hits the bottom, so it just waits there instead) The startup preforms the one hello, and that's it. Also, you're script error where it gives you unicode characters.. that's because your saving as unicode, don't do that, halo doesn't like unicode.
|
|
|

Dumb AI
Joined: Sep 18, 2011
Dead.
|
Posted: Jul 28, 2012 11:55 PM
Msg. 10 of 12
First of all,kirby,"loop" is the name of the script,not a command.The script is a simplified version of some another script I found so I don't know about that stuff. How would you "define" it?
Secondly,2+ people edited it,so I don't have any idea how it works anymore.
Why did Bungie use unicode for hud messages? So misleading! :( I blame whoever told me to reverse the order of the commands.
EDIT:Now it says that the first parenthesis is unmatched.What should I do? Edited by Dumb AI on Jul 29, 2012 at 12:11 AM Edited by Dumb AI on Jul 29, 2012 at 12:19 AM
|
|
|

MoooseGuy
Joined: Aug 10, 2008
I Approve This Message.
|
Posted: Jul 29, 2012 12:00 AM
Msg. 11 of 12
Kirby, I think both mine and your methods won't work very well actually. Mine, because it's re-waking itself essentially, and yours because it will wait 160 frames each time it cycles through.
DELETED SCRIPT EXAMPLES
EDIT: Nevermind you were right Kirby, I didn't see that sleep in the ai script. xD Edited by MoooseGuy on Jul 29, 2012 at 12:09 AM
|
|
|

Dumb AI
Joined: Sep 18, 2011
Dead.
|
Posted: Jul 29, 2012 12:41 AM
Msg. 12 of 12
Bracket? O_O I don't think that works. EDIT:Did nothing at all.Still need some help. Edited by Dumb AI on Jul 29, 2012 at 12:05 PM
|
|
|