Supported In: | ||
---|---|---|
C | D/S/W | W-CD |
? | ? | ? |
The scripting command RndDamage has the opcode (0x21).
Arguments
- Byte - Type
- Byte - Max
Description
Does a random amount of damage (from 1 to Max) 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.
Type | Description |
---|---|
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.
Event Opcodes
| ||||||||||
|