When a monster script runs, the game
only does what it's in it. Any normal processing (damage, dying) is skipped.
What you do when you want normal things to happen is call the "default" function. See the script for Oyo the Shaman for example:
- Code: Select all
if (evtdie()) {
message("As Oyo slumps to the ground, you notice a curious looking scroll still clutched in his hand...");
}
default();
This script is run on all events (getting hit or dying for example) but it only does something special on dying by checking if the event which kicked off the running of the script was the death event "evtdie". And in all cases it runs the default processing.