|
Shujinko07 Beginner
Joined: 31 Mar 2008 Posts: 10
|
Posted: 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. |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: 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." |
|
|
|
meyn Beginner
Joined: 06 Mar 2008 Posts: 27
|
Posted: 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! |
|
|
|
|
|