01 Sep, 2010, thaolen wrote in the 1st comment:
Votes: 0
I have setup a trigger using redit with the following code.


2.1 Reset Triggers
Reset triggers can be attached to rooms, and are run every time the zone a room
belongs to is reset. Every reset trigger has a variable called me, which is a pointer
to the room being reset. Below is an example trigger that will hopefully elucidate
ways in which initialization triggers can be used:
################################################################################
# Reset trigger no. 1 - resetting a room. This trigger will attempt to load a
# mobile with with key mysty into the room if she exists nowhere else in the
# game. Once mysty is handled, the trigger will check if there are any tables
# in the room. If there are less than 4 tables in the room, tables will be
# loaded until there are 4.
####
# Load Mysty if there are no copies of her in the game
if count_mobs("mysty@examples") < 1:
load_mob("mysty@examples", me)

# Load a few tables into the room
num_tables = count_objs("table@examples", me)
while num_tables < 4:
load_obj("table@examples", me)
num_tables = num_tables + 1


From the NakedMud Python programming guide.

I added the trigger to the room but nothing happens, when I leave the room and come back, still nothing
copyover doesn't yield results either.

Am I doing something wrong?
01 Sep, 2010, Rudha wrote in the 2nd comment:
Votes: 0
Make sure its set to the ENTER condition and that it's attached to the room.

Maya/Rudha
01 Sep, 2010, thaolen wrote in the 3rd comment:
Votes: 0
ahhhh, I see, do you mean the direction of the door?

Ok, good I got a reaction out of enter, and it looks good.

thanks again Rudha
0.0/3