EquipAppropriateWeapons(object)

Cause a creature to ready an appropriate weapon.

void EquipAppropriateWeapons(
    object oTarget
);

Parameters

oTarget

Creature to examine.


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.



Requirements

#include "x0_i0_equip"

Version

1.28

See Also

functions: ActionEquipItem | ActionEquipMostDamagingMelee | ActionEquipMostDamagingRanged
categories: Action on Object Functions | Henchmen/Familiars/Summoned Functions


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