Post by Harkker on Aug 9, 2013 4:27:14 GMT
Some specific variables have already been coded by BioWare and can be used to modify the behavior of your creatures. To use them, just paste the variable name into the Variable box on your creature’s Advanced tab, then add an integer if needed. Here is a list of these already coded variables:
X2_SPELL_RANDOM
Setting this variable to 1 on a spellcaster creature will make its spell use a bit more random, but their spell selection may not always be appropriate to the situation.
X2_L_SPAWN_USE_STEALTH
Set to 1 to make the creature activate stealth mode after spawn.
X2_L_SPAWN_USE_SEARCH
Set to 1 to make the creature activate detect mode after spawn.
X2_L_SPAWN_USE_AMBIENT
Set to 1 to make the creature play mobile ambient animations after spawn. The creature will then move in the area where it is located, salute other creatures, scratch its head, etc.
X2_L_SPAWN_USE_AMBIENT_IMMOBILE
Set to 1 to make the creature play immobile ambient animations after spawn.
X1_L_IMMUNE_TO_DISPEL
Set to 1 to make the creature immune to dispel magic (used for statues).
X2_L_IS_INCORPOREAL
Set this variable to 1 on a creature to make it walk through other creatures
X2_L_NUMBER_OF_ATTACKS
Set this variable to 1 - 6 to override the number of attacks a creature has based on its base attack bonus.
X2_L_BEH_MAGIC
The value of this variable (int) is added to the chance that a creature will use magic in combat. Set to 100 for always, 0 for never.
X2_L_BEH_OFFENSE
The higher value of this variable, the higher the chance that the creature will use offensive abilities in combat. Set to 0 to make them flee.
X2_L_BEH_COMPASSION
The higher value of this variable, the higher the chance that the creature will aid friendly creatures in combat. Note that helping usually degrades the overall difficulty of an encounter, but makes it more interesting.
X2_S_PM_SPECIAL_ITEM
This allows you to script items that enhance a palemaster's summoned creatures. You need to put the name of a script into this variable that will be run on any creature called by the pale master's summon undead ability. You can use this script to add effects to the creature. You can use the OnEquip/OnUnEquip event hooks set this variable.
X2_SPELL_RANDOM
Setting this variable to 1 on a spellcaster creature will make its spell use a bit more random, but their spell selection may not always be appropriate to the situation.
X2_L_SPAWN_USE_STEALTH
Set to 1 to make the creature activate stealth mode after spawn.
X2_L_SPAWN_USE_SEARCH
Set to 1 to make the creature activate detect mode after spawn.
X2_L_SPAWN_USE_AMBIENT
Set to 1 to make the creature play mobile ambient animations after spawn. The creature will then move in the area where it is located, salute other creatures, scratch its head, etc.
X2_L_SPAWN_USE_AMBIENT_IMMOBILE
Set to 1 to make the creature play immobile ambient animations after spawn.
X1_L_IMMUNE_TO_DISPEL
Set to 1 to make the creature immune to dispel magic (used for statues).
X2_L_IS_INCORPOREAL
Set this variable to 1 on a creature to make it walk through other creatures
X2_L_NUMBER_OF_ATTACKS
Set this variable to 1 - 6 to override the number of attacks a creature has based on its base attack bonus.
X2_L_BEH_MAGIC
The value of this variable (int) is added to the chance that a creature will use magic in combat. Set to 100 for always, 0 for never.
X2_L_BEH_OFFENSE
The higher value of this variable, the higher the chance that the creature will use offensive abilities in combat. Set to 0 to make them flee.
X2_L_BEH_COMPASSION
The higher value of this variable, the higher the chance that the creature will aid friendly creatures in combat. Note that helping usually degrades the overall difficulty of an encounter, but makes it more interesting.
X2_S_PM_SPECIAL_ITEM
This allows you to script items that enhance a palemaster's summoned creatures. You need to put the name of a script into this variable that will be run on any creature called by the pale master's summon undead ability. You can use this script to add effects to the creature. You can use the OnEquip/OnUnEquip event hooks set this variable.