|
|
|
|
|
%triggerDispel()
Aliases | %triggerDispel( ) |
---|
Parameters | entity @actor, entity @victim, string @type, integer @level, integer @quality |
---|
|
Triggers a dispel event issued by @actor on @victim with the given @type. The @level and @quality values can set so that the recipient affect objects can determine for themselves if the dispel succeeds or fails. Common types of dispel events are as follows:
corrupt cure sickness remove poison cure blindness dispel evil sane mind cure critical dispel magic unhide cure deadly poison heal vigor cure light remove curse weaken cure serious remove deadly poison
It is however perfectly fine to create your own custom trigger events. For instance if your area defines it's own affect, let's call it "brain disease", and has implemented a dispel handler which handles "cure brain disease", then you could create situation whereby it is possible for the user to get rid of the disease. The situation of course would use this function within a script. the example below illustrates the usage.
Example: --------------------------------------------------------------------------
%triggerDispel( @this, @n, "cure brain disease", @this->level, 100 ) |
|
|
|
|
|
|
|