FANDOM


Supported In:
C D/S/W W-CD
? ? ?

The scripting command Damage has the opcode (0x16).

Arguments

  • 2xByte - Amount
  • Byte - Type


Description

Does damage to the currently selected character(s) (as set by WhoWill, SetChar, or SelRndChar).

Notes

Displays the graphic and plays the sound effect for the respective damage type. The elemental damage (fire, elec, cold, and poison) can be negated by party resistance, and all but type 0x0 get a "saving throw" to avoid some (or all) of the damage. The exact method of calculating the damage needs to be completed.

TypeDescription
0x0
0x1
0x2 Fire
0x3 Electricity
0x4 Cold
0x5 Poison
0x6
0x7

TODO: Fill in the four remaining types, figure out the exact algorithm used for calculating damage.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.