How can I chain Auto Actions?
You can execute an auto action after another has executed using autoactions_onAction trigger. See the below for its variables.
Code:
$_PLUGINS->trigger( 'autoactions_onAction', array( &$content, &$autoaction, &$user, &$variables, &$substitutions ) );
You'll need to be careful with this as you can get stuck in an infinite loop. Be sure to condition against [var2_id] to ensure you're changing after the auto action id of the previous action.
The alternative is to create your auto actions and don't specify a trigger. Next create an auto action with your trigger specified as normally then set the Type to Action. You can then select auto actions to execute from there. They will execute in the order specified.
Also, if I chain themm will I still have access to the trigger array in the second chained auto action?
Yes, in both of the above usecases the variables and substitutions are passed to the next auto action.