|
Eyeless Wanderer
Joined: 02 Dec 2001 Posts: 80 Location: Canada
|
Posted: Mon Dec 10, 2001 12:12 pm
question about variables |
I want to create a variable @heals {Yadda|yAdda|yaDda|yadDa|blah|yaddA} which will drop all forms of those heals in inventory with an alias, Im not really to sure how these work so any help you have to offer would be appreciated.
|
|
|
|
ffixfaqs Newbie
Joined: 10 Dec 2001 Posts: 3 Location: Malaysia
|
Posted: Mon Dec 10, 2001 2:48 pm |
I think people didn't reply because your canadian? :)
Anyways 2 ways i'll put one here
Click on Alias
now set it
Command : healo1 %1
action : #var healo1 %1
command : healo2 %1
action : #var healo2 %1
go on and on till how many... u want
Alias : Ghealo
Action : Grouptalk Heal Order : @healo1,@healo2,@healo3,@healo4,@healo5
you can set up buttons too
-The Fastest Counter-Strike Player on Planet Earth- |
|
|
|
Castaway GURU
Joined: 10 Oct 2000 Posts: 793 Location: Swindon, England
|
Posted: Mon Dec 10, 2001 3:48 pm |
Maybe its just because (s)he only posted it 2 hours ago, and we're not awake yet? (Look at the time :)
And I'm not quite sure that (s)he wants to achieve.
If you want to drop all heals in your inventory to the floor, you'll have to either:
1)
Create an alias which lists your inventory, and turns on a trigger which just does:
Pattern: (@heals)
Command: drop %1
or 2)
Loop through the @heals list, and try to drop each one, until a message appears saying you don't have it..
Is that what you meant?
Lady C. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Dec 10, 2001 6:04 pm |
This is quite easy to do without a variable.
#ALIAS dropheal {drop all~.Yadda;drop all~.yAdda;drop all~.yaDda;drop all~.yadDa;drop all~.blah;drop all~.yaddA}
However, using a variable does make it easier to modify the list.
#AL dropheal {#FORALL @heals {drop all~.%i}
LightBulb |
|
|
|
Eyeless Wanderer
Joined: 02 Dec 2001 Posts: 80 Location: Canada
|
Posted: Mon Dec 10, 2001 11:34 pm |
cool thanks everyone, problem solved now:)
|
|
|
|
|
|