Splash  
About WOCNews, Help, etc.Build AreasContributor CreditsUseful Links

Login

    BlobbieScript

    Features
    Expressions
    Operators
    Variables
    Resolutions
    Functions
    Triggers
    Examples

    Print Manual
catch_dispel
  
Response Typescript
EntitiesObjects (in room or in affects inventory)
Parameters-

    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


The Worlds of Carnage MUD is a non-profit, fantasy oriented, text-based game that is played over telnet. We are devoted to providing a social medium in which people can have fun while immersing themselves in a game that reads like a book. You can connect by clicking here or if that fails then here. This site is maintained and hosted by Robert Cummings, A.K.A Blobule and is powered by InterJinn, a PHP based multi-tier application framework connected to a MySQL backend and served via an Apache web server. The Worlds of Carnage are often recognized via the following aliases: Carnage; WoC; WoC MUD; Carnage MUD; CarnageMUD; WoCMUD. All submissions become the property of Robert Cummings where the submitter holds copyright. If you do not want to give ownership, then do not submit.