BrutusMUD help

SCRIPT TRIGGERS,SCRIPT TRIGGER TYPES

Level: 61

Mob triggers
Name Argument Variables
not here name of command actor:char, arg:string
signal signal name sender:char or object, msg:any
greet percent chance actor:char
all greet percent chance actor:char
enter percent chance
all enter percent chance
beginturn percent chance
endturn percent chance
tick percent chance none
steal percent chance actor:char, amount:int
bribe none actor:char, amount:integer
death percent chance actor:char (killer)
kill percent chance actor:char (killed char)
zonespell percent chance actor:char
speech substring of argument actor:char, string:string
asked substring of argument actor:char, string:string
told substring of argument actor:char, string:string
social social name actor:char, victim:char string:string
emote string used in emote actor:char, string:string
act string (see help act) actor:char, victim:char, obj:object,
objvnum:int, objname:string,
objalias:string, vobjvnum:int,
vobjname:int, vobjalias:int
give vnum of object or none actor:char, victim:char, obj:object,
objvnum:integer, objname:string,
objalias:string
morph percent chance previous_vnum:int, previous_name:string
spell spell name or none actor:char, spell:string, spellnum:int
leave percent chance actor:char,
roomvnum:int (where he is leaving to)
fight percent chance actor:char, victim:char
get_damaged percent chance actor:char, victim:char, amount:int,
resist:int, attacktype:int
trap percent chance actor:char
periodic not used none, period is delay
time not implemented yet

Object triggers
Name Argument Variables
not here name of command actor:char, arg:string
give vnum of object or none actor:char, victim:char, obj:object,
objvnum:integer, objname:string,
objalias:string
signal signal name sender:char or object, msg:any
periodic not used none, period is delay
death percent chance actor:char, method:integer
method is how object was destroyed, 0-other, 1-repair, 2-junk, 3-scrap,
4-recharge, 5-destroy, 6-timer, 7-explode, 8-eat, 9-purge
get percent chance actor:char, container:object
container is valid when object was got from container :)
put percent chance actor:char, container:object
drop percent chance actor:char
container percent chance actor:char, obj:object, put:integer
this trigger can be used on containers, put is 1 when object is put into
container, 0 when object is get from container
use not used actor:char, arg:string
onwear not used actor:char
trigger on object, called after worn
onremove not used actor:char
trigger on object, called before removing

 

Back to index

 
 

© Michal Kumžák 2011 | Provozováno na CMS E4E | Mapa webu