DetermineCombatRound

From NWN Lexicon
Jump to navigationJump to search



DetermineCombatRound(object, int)

Note: This function page documents something only available in the nw_i0_generic include file. The function may not be accurately documented here but you can read the nwscript code for the function in the game files.

Determines NPC actions during any given round.

void DetermineCombatRound(
    object oIntruder = OBJECT_INVALID,
    int nAIDifficulty = 10
);

Parameters

oIntruder

(Default: OBJECT_INVALID)

nAIDifficulty

Not Used (Default: 10)


Description

This function is the master function for the generic include and is called from the main script. This function is used in lieu of any actual scripting. This function examines the NPC for spell-casting ability, and other possible actions.



Requirements

#include " NW_I0_GENERIC "

Version

1.28

See Also

functions: 

DetermineClassToUse

events: 

OnPhysicalAttacked Event



 author: Jody Fletcher, editor: Charles Feduke, additional contributor(s): Tim Stokman