Re: [HELP] DG Scripts - Command Triggers

From: Mark A. Heilpern (heilpern@MINDSPRING.COM)
Date: 03/10/98


At 01:56 PM 3/9/98 -0800, you wrote:
>I want to make a command prog for my abandonned mine area.  There is
>an elevator type thing and I want people to be able to pull a rope
>that will be in there and the object will transfer them to the level
>below.  How would I do this? I tried many ways...BTW I want this to
>work with rooms or objects, whichever is easiest.
>                                            -Pat
>

This was typed in while looking at a working version of the same thing.
I may have mistyped along the transfer. You'll also need to set the room
number in here...

object triggger, numeric arg 4, string arg: pull


*
* first qualify that they are pulling a rope, and if not, halt
return 0
if (!%arg% /= rope )
  halt
end
*
* Ok, lets do it
osend %actor% You pull the rope.
oechoaround %actor% %actor.name% pulls the rope.
oteleport %actor.name% <room number of level below>
oforce %actor.name% look
return 1


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST