EquipAppropriateWeapons

From NWN Lexicon



Contents

[edit] EquipAppropriateWeapons(object)

Cause a creature to ready an appropriate weapon.

void EquipAppropriateWeapons(
    object oTarget
);

[edit] Parameters

oTarget

Creature to examine.


[edit] Description

Causes the calling creature to equip weapons that are best suited for combat with oTarget. For example, if a lizardman with a club and a magical spear +1 is combatting a skeleton, it will equip the club (as a bludgeoning weapon will deal more damage to a skeleton). The same lizardman, when confronted with a human commoner, will draw the magical spear +1. Will check for most powerful ranged weapon first, then melee.



[edit] Requirements

#include " x0_i0_equip "

[edit] Version

1.28

[edit] See Also

functions: 

ActionEquipMostDamagingRanged



 author: Jody Fletcher, editors: Charles Feduke, Mistress, additional contributor: Koen Vanderstraeten
 

Personal tools
Categories