|
NeverNor Novice
Joined: 18 Nov 2006 Posts: 32
|
Posted: Wed Jun 27, 2007 3:47 pm
Few questions |
Is there a way to make an edit box, if there is can I use it to put someone, or somethings name in so I can drag them when I move from room to room?
|
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Wed Jun 27, 2007 4:05 pm |
#var victim {}
#PR victim "Enter the name of the victim."
drag <@victim> |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Wed Jun 27, 2007 4:05 pm |
Take a look at the #prompt and #pick commands.
EDIT: Ninja'd by Arminas. D'oh! |
|
|
|
NeverNor Novice
Joined: 18 Nov 2006 Posts: 32
|
Posted: Wed Jun 27, 2007 8:49 pm |
thanks
|
|
|
|
NeverNor Novice
Joined: 18 Nov 2006 Posts: 32
|
Posted: Wed Jun 27, 2007 9:28 pm |
Ok let's say my mapper knows that when I am in a certain room that "s" means to output "climb stair" to the MUD, suppose I was using a trigger to confirm I had inputed a valid direction, via %gsl and had assigned a person's name to a variable to drag. Now that both are true, how do I get the MUD to output "drag @victim stair" instead of "climb stair" when I input "s" on the command prompt, which the mapper has linked to "climb stair" for the room I am in?
|
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Thu Jun 28, 2007 1:04 pm |
In the other direction where you currently have
climb ladder
put
%if(@victim=%null,climb ladder,drag @victim ladder)
You just need to be sure and set victim to %null when you are not dragging anyone.
As for the %gsl stuff I have never used it... So you will need to post just exactly how you are confirming with it. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
|
|