Djinni Wiki
Advertisement

function ActionEquipMostDamagingMelee (object oVersus=OBJECT_INVALID, int bOffHand=FALSE)

The creature will equip the melee weapon in its possession that can do the most damage. If no valid melee weapon is found, it will equip the most damaging range weapon. This function should only ever be called in the EndOfCombatRound scripts, because otherwise it would have to stop the combat round to run simulation.

  • oVersus: You can try to get the most damaging weapon against oVersus
  • bOffHand:
  • Return type: void
  • Include file: nwscriptdefn
Advertisement