View Single Post
A few clarifying scripting questons
Old
  (#1)
the bindlestiff
Member
 
the bindlestiff's Avatar
 
Status: Offline
Posts: 280
Join Date: Nov 2005
Location: Washington state
Default A few clarifying scripting questons - 11-01-2006

I have a few questions about the scripting system to help clarify in my mind what I can and cannot do so I can utilize the flexibility of the script to best advantage. Things got a bit confused when trying to nail down the scripting bug the last few days.

1. "Active forever" actions have a normal Goal Tracker Group ID and turn on when the Goal Tracker reaches that number. However once turned on, the Goal Tracker has no further effect on them. But they can be toggled on/off from within the script.
No question: Mal has already said that this is correct. I included it in this list to be complete.

2. Actions which are to be turned on/off in the script independently of the Goal Tracker must have a Group ID of "-1."
Question: any other conditions apply to this?

3. Mal's tips indicate that "ANY action can be turned on/off with the script."
Question: if a Goal-Tracker action has been turned on or off by the Tracker and you then kill it with the script, will it stay off when the Tracker tries to activate it again?

4. "If_obj_home_true/false" conditionals can only be used from within a steal action.
Question: does the action referenced by the conditional have to be the script test action or can it be a different steal action?
For example:
action x (a steal action)
{
if_obj_home_true y (a different steal action)
.................
}

5. "If_action_true/false" conditionals can only be used from within a dynamite test action.
Questions: is this correct? Can it reference other objective actions other than dynamite actions?
For example:
action x (a dynamite action)
{
if_action_true y ( a different dynamite action, steal, or spawn flag action)
............
}

Last edited by the bindlestiff; 11-01-2006 at 03:45..
  
Reply With Quote