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
Eyeless
Wanderer


Joined: 02 Dec 2001
Posts: 80
Location: Canada

PostPosted: 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.
Reply with quote
ffixfaqs
Newbie


Joined: 10 Dec 2001
Posts: 3
Location: Malaysia

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


Joined: 10 Oct 2000
Posts: 793
Location: Swindon, England

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


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Eyeless
Wanderer


Joined: 02 Dec 2001
Posts: 80
Location: Canada

PostPosted: Mon Dec 10, 2001 11:34 pm   
 
cool thanks everyone, problem solved now:)
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