Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
ChaoticCry
Beginner


Joined: 21 Feb 2002
Posts: 11
Location: USA

PostPosted: 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<-*
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net