x0_inc_generic

New functions breaking down some of the 'big' functions in nw_i0_generic for readability.

NOTE: This file includes x0_i0_debug and x0_i0_equip.

Constants

NameValueBrief Description
NO_SMARTFALSEIf this is TRUE there is no CR consideration for using powers.

Functions

NameBrief Description
bkAcquireTargetDetermine our target for the next combat round. Normally, this will be the same target as the last round. The only time this changes is if the target is gone/killed or they are in dying mode.
bkEvaluationSanityCheckReturns TRUE if something that shouldn't have happened, happens. Will abort this combat round.
bkSetupBehaviorSet up our hated class.
bkTalentFilterThis function is the last minute filter to prevent any inappropriate effects from being applied to inapproprite creatures.
ChooseNewTargetChoose a new nearby target. Target must be an enemy, perceived, and not in dying mode. If possible, we first target members of a class we "hate" -- this is generally random, to keep everyone from attacking the same target.
CompareLastSpellCastDetermines if a spell is the same as the one previously cast by the creature.
GetCombatDifficultyReturn the combat difficulty. This is only used for henchmen and its only function currently is to keep henchmen from casting spells in an easy fight.
GetCRMaxReturns the the max CR for this particular scenario.
GetIsFightingDetermines whether a creature is "fighting".
GetLastGenericSpellCastRetrieves the last spell that was cast by the calling creature.
SetLastGenericSpellCastSets a local variable that stores the spell ID of the last spell cast.


  author: Mistress