St the
start of a combatant's turn in combat we call any of the
combatants's special ability scripts named GetNumberOfAttacks.
The script can supply an answer in MinMax
Format .
The resulting maximum after all such scripts are called is the value
assigned to the characters 'Number of Attacks'.
As an
example, suppose we want a spell that gives the caster five attacks.
- Give
the spell a special ability. Let us call it 'Adrenaline' and give
it a parameter = "5".
-
Edit the
special ability named 'Adrenaline'. Give it a script named
InvokeSpellOnTarget. That script will be something like
this:
-
$CHAR_GIVE_SA($Myself(),"adrenaline",$SA_PARAM(""));
- Edit
the special ability 'adrenaline' (note that it starts with
lower-case 'a' and therefore is different from the spell's special
ability named 'Adrenaline'). Give it a script named
GetNumberOfAttacks. The script should say something like:
Context
Character