
Hickle Stine
Joined: Oct 8, 2007
|
Posted: Oct 11, 2007 05:50 AM
Msg. 1 of 3
ok, so say I have these two respawning squads, 'gold' and 'stealth' in the same encounter. (one is gold elites one is stealth.) and there are three command lists: 'defend', 'advance1' and 'advancestealth'. when the game starts, gold is assigned defend, and stealth is assigned advancestealth. Every so often i want stealth to switch to the defend command list, and gold to switch to the advance1 command list (and vise versa after another little while). So far Ive got:
(script continuous switchattackers (sleep 100) (ai_command_list stealth defend) (ai_command_list gold advance1) (sleep 100) (ai_command_list stealth advancestealth) (ai_command_list gold defend) )
There is an error when I try to compile the script in Sapien:
"this is not a valid AI encounter or squad.: stealth defend)"
I do get another error or two, but i figure its just that above line which is the problem. help?
PS; To try and pin the problem down, Ive typed this line:
"ai_command_list stealth defend"
into sapien's command input thing, with the same error. I think the problem is syntax. Edited by Hickle Stine on Oct 11, 2007 at 05:52 AM
|
|
|

kirby_422
Joined: Jan 22, 2006
Apparently public enemy number 1?
|
Posted: Oct 11, 2007 11:09 AM
Msg. 2 of 3
Quote: --- Original message by: Hickle Stine ok, so say I have these two respawning squads, 'gold' and 'stealth' in the same encounter. (one is gold elites one is stealth.) and there are three command lists: 'defend', 'advance1' and 'advancestealth'. when the game starts, gold is assigned defend, and stealth is assigned advancestealth. Every so often i want stealth to switch to the defend command list, and gold to switch to the advance1 command list (and vise versa after another little while). So far Ive got:
(script continuous switchattackers (sleep 100) (ai_command_list stealth defend) (ai_command_list gold advance1) (sleep 100) (ai_command_list stealth advancestealth) (ai_command_list gold defend) )
There is an error when I try to compile the script in Sapien:
"this is not a valid AI encounter or squad.: stealth defend)"
I do get another error or two, but i figure its just that above line which is the problem. help?
PS; To try and pin the problem down, Ive typed this line:
"ai_command_list stealth defend"
into sapien's command input thing, with the same error. I think the problem is syntax. try the enconter name instead of the squad name.. lol, any time I need to target something refered to as <AI> in hs_doc.txt, I always put enconters in there, and besides.. im preaty sure thats how SP levels are aswell..
|
|
|

Hickle Stine
Joined: Oct 8, 2007
|
Posted: Oct 11, 2007 10:03 PM
Msg. 3 of 3
hey it worked! the thing that bugs me though is that it says in the "halo_scripting_bible" (hosted on this site) that it applies to 'group of actors' which i thought could be a squad...anyways, thanks for the help!
|
|
|
| |
|
|
 |
|