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
joryatl1
Newbie


Joined: 21 Nov 2018
Posts: 5

PostPosted: Sun Feb 10, 2019 10:04 pm   

macros and variables
 
hi, so i had a stroke and lot my left hand i figured out aliases which have been very helpful
i now need to do the following:
i play a class with shields i need a macro that can do this:
set X = JOHNSNOW
C AIRSHIELD X(JOHNSNOW)
CFIRESHIELd x
c oozeshield X


I CAN SET UP THE MACRO BUT HAVE NO IDEA HOW TO SET UP THE VARIABLE THANKS FOR THE HELP
IF THIS ISNT A MACRO PLZ GIVE ME IDEAS
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Fri Feb 15, 2019 5:11 pm   
 
Variables are simple

#VAR x {johnsnow}
x=johnsnow

Both create the variable @x

Then you would issue the commands as: c airshield @x

You can also create things via the settings editor GUI.

You can read more in the help file: #HELP #VARIABLE
_________________
Discord: Shalimarwildcat
Reply with quote
ruchikadmore
Newbie


Joined: 20 Feb 2019
Posts: 1

PostPosted: Wed Feb 20, 2019 7:52 am   
 
Excellent answer by shalimar. Thank you!
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