|
ChaoticCry Beginner
Joined: 21 Feb 2002 Posts: 11 Location: USA
|
Posted: Sun Mar 10, 2002 5:25 am
Variable Alias. Grrr. not working |
In my MUD there are many different types of boxes and they are all locked. I have the skill lock picking. somehow i need to find a way to alias 'pick %1' (it could be a coinbox. strong box, treasure chest, mailbox, etc...) to
get %1
remove spear
wear lockpick
pick %1
open %1
get all %1
drop %1
remove lockpick
dual spear
Is this possible? i cant figure it out.
thanks
*->MadPimp<-* |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Mar 10, 2002 5:40 am |
Sure, just about exactly the way you have it. Probably what's giving you trouble is that you want to use the same word for the alias as the actual command, but even that can be done (see the recall alias)
Command line:
#AL pick {get %1;remove spear;wear lockpick;~pick %1;open %1;get all %1;drop %1;remove lockpick;dual spear}
Settings Editor:
Name: pick
Value:get %1
remove spear
wear lockpick
~pick %1
open %1
get all %1
drop %1
remove lockpick
dual spear
LightBulb
All scripts untested unless otherwise noted |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Sun Mar 10, 2002 5:42 am |
Kind of deal you are looking for:
#ALIAS do_pick {get %1;remove spear;wear lockpick;pick %1;open %1;get all %1;drop %1;remove lockpick;dual spear}
Syntax:
do_pick box
do_pick crate
do_pick chest
do_pick OneWordObjectHere
TonDiening
Beta Upgrading to 6.26 |
|
|
|
|
|