Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
JainJude
Newbie


Joined: 13 Jul 2019
Posts: 5

PostPosted: Tue Jul 23, 2019 9:57 am   

Coding in Zmud
 
I hope someone here can help. i am trying to do something simple but i dont know know how the code works with zmud. here is what i want:
i want to beable to have a button that executes commands on the thing im attacking
chant curse (variable) chant damage (variable)

the (variable) is whatever i am focused on at the moment. can anyone help?


Last edited by JainJude on Fri Jul 26, 2019 6:09 pm; edited 1 time in total
Reply with quote
shalimar
GURU


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

PostPosted: Tue Jul 23, 2019 10:47 am   
 
You referance variables with the @ symbol.

First, you have to define it:

#VAR target {ogre}
or
target=ogre

Both work, see #HELP #VAR for more details.

Then when you make your trigger (best done via the settings editor) you can just put this in the body:
chant curse @target
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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