This trigger allows special purpose objects that are used to implement spell or skill affects (or otherwise) to intercept "dispel" actions. A "dispel" action is not necessarily denoted by the spell "dispel magic" but rather any spell or skill or special action that can possibly "dispel" some kind of affect. For instance the following types of "dispel" events can currently fire:
corrupt heal cure blindness remove curse cure critical remove deadly poison cure deadly poison remove poison cure light sane mind cure serious unhide cure sickness vigor dispel evil weaken dispel magic
Additionally a script can use the %triggerDispel() function to fire a dispel event of any kind it wants on a target mobile or room. This can be used effectively to create unique affects that work just like spells but which are unique to a particular quest or prize.
@n - The entity responsible for triggering the dispel (if any).
@t - The mobile affected by the affect object (if any).
@type - The type of dispel (ie. cure critical).
@level - The level at which the dispel was triggered.
@quality - The quality of the dispel event (0 to 100).
Example:
// // Catch "heal" dispel event and act accordingly. // if( @type == "heal" && 1d100 < @quality ) { %echoTo( \ "You feel better as the disease leaves your body.\n", @t ) %purge( @this ) } endif |