from mud import *For you, to keep triggers as clean as possible. Then, you've also got the restricted built-ins and exit(), which is just sys.exit().
from char import *
from room import *
from obj import *
from event import *
import random
me.room.send(me.name + " dissolves after it is dropped.")
extract(me)
me.room.send(me.send + "dissolves after it is dropped.")
extract(me)
me.room.send(me.send + "dissolves after it is dropped.")
extract(me)
me.room.send(me.name + " dissolves after it is dropped.")
extract(me)
[dissolve_drop@examples]
1) Name : Dissolve
2) Trigger type: drop (obj, room)
3) Script Code
me.room.send(me.name + " dissolves after it is dropped.")
extract(me)
Current triggers:
dissolve_drop@examples
N) Add new trigger
D) Delete trigger
However the trigger isn't working, even though the trigger is attached to a object. In this case, a staff.
drop staff
You drop Staff of Ages.
and nothing happens
There are no errors in the log or the output. So I'm assuming the code is correct, however something is missing from the code.
The code should dissolve a object, well remove one as it says above once attached to any object via a trigger