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
Ian James
Newbie


Joined: 06 May 2005
Posts: 1

PostPosted: Fri May 06, 2005 9:47 am   

Can this be done?
 
I have the commands buy liqueur;drink liqueur;drop glass on my f1 key.. this is my healing macro. Is there a way to set it up so when I enter a different pub The macro is changed to something like buy rum;drink rum;drop glass but still being on the same macro.. would this be a variable trigger?? HELP! I dont know!




Thanks :)

Ian
Reply with quote
Dragan
Newbie


Joined: 26 Oct 2004
Posts: 6

PostPosted: Fri May 06, 2005 2:29 pm   Re: Can this be done?
 
Ian James wrote:
I have the commands buy liqueur;drink liqueur;drop glass on my f1 key.. this is my healing macro. Is there a way to set it up so when I enter a different pub The macro is changed to something like buy rum;drink rum;drop glass but still being on the same macro.. would this be a variable trigger?? HELP! I dont know!




Thanks :)

Ian


Code:
#VAR drinkstuff {} {_nodef}
#TRIGGER {Pub 1} {@drinkstuff = rum}
#TRIGGER {Pub 2} {@drinkstuff = liquor}
#KEY F1 {buy @drinkstuff;drink @drinkstuff;drop glass}


Pub 1 should be set with the name of the pub with rum,
and Pub 2 with the name of the pub with liquor.

If Pub 1 name is : The Inn of the Seven Dreams
Then, #TRIGGER {Pub 1} {@drinkstuff = rum} should be
#TRIGGER {The Inn of the Seven Dream} {@drinkstuff = rum}

If Pub 2 name is: The Tavern of the Last Chance
Then, #TRIGGER {Pub 2} {@drinkstuff = liquor} should be
#TRIGGER {The Tavern of the Last Chance} {@drinkstuff = rum}[/b]
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Sat May 07, 2005 8:51 am   
 
If you use the mapper:

You can define the macro in the room script.

Alternatively, you could make the macro execute a variable and reassign the variable to the correct one in the room script.

#KEY F1 {#EXEC @heal_me_now}
#VARIABLE heal1 {buy liqueur;drink liqueur;drop glass}
#VARIABLE heal2 {buy rum;drink rum;drop glass}

In the room script:
heal_me_now = heal1

In the second room:
heal_me_now = heal2

Untested.
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