Trigger that waits a amount of time before moving along the

Post Reply
ella
Posts: 33
Joined: Sun Feb 28, 2010 5:46 pm

Trigger that waits a amount of time before moving along the

Post by ella »

ok, so lets say I walk through a door, it says something like "You walk through the door!" and I want to wait five seconds for my friends to come through then close the door.

Sheia
Posts: 33
Joined: Tue Dec 01, 2009 4:40 am

Re: Trigger that waits a amount of time before moving along

Post by Sheia »

Create an "exact match" trigger for "You walk through the door!" and put the following code in it:
Code: [show] | [select all] lua
tempTimer( 5, [[send("close door")]])
Naturally you may change the sent command to whatever you need "close door west" or some such.

The wiki has more info on Timers: http://wiki.mudlet.org/w/Manual:Lua_Functions#tempTimer

Post Reply