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.
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:
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?