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
Shujinko07
Beginner


Joined: 31 Mar 2008
Posts: 10

PostPosted: Tue Apr 15, 2008 7:01 pm   

shortcut of one command
 
Lets say you have this ability hex:

draw hex {hex name}

you can also whammy a person with whatever hex you choose.

Since there are multiple hexes, how can you code in to use whammy a target and any hex you can without setting an alias for each hex to whammy?

whammy @target with {hex name} Like I said, there are like several hexes I can choose from, but want to be able to whammy any hex without setting an alias for each hex.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Tue Apr 15, 2008 8:42 pm   
 
Code:
#VAR target {ThatGuy}
#ALIAS wham {whammy @target with hex %1}
#ALIAS wham2 {whammy %1 with hex %2}
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
meyn
Beginner


Joined: 06 Mar 2008
Posts: 27

PostPosted: Wed Apr 16, 2008 5:23 pm   
 
Here you go type addhex to get a prompt for new hexs learnt, F1 key to choose which hex to wammy target with.

Code:
#CLA {PickHex}
#VAR hexsknown {}
#AL addhex {
  #PR newhex "Enter the name of the Hex to add"
  hexsknown=%additem(@newhex,@hexsknown)
}
#KEY F1 {#FORALL %pick('p:Select Hex to wammy with',@hexsknown) {whammy @target with %i}}
#CLA 0


Enjoy!
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