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


Joined: 08 Mar 2010
Posts: 1

PostPosted: Mon Mar 08, 2010 8:28 pm   

real quick question
 
Ok I am recently switching over from zmud vista having finally decided that it does not like it very much.. and I am trying ut the trial version of cmud.

I tried to make a simple alias that would target and enemy for me

it was pattern field = t
and i had it set to do

@target = %1
unally %1
enemy %1
#echo Target is now %1

that worked in zmud like a charm.. but now Im finding that the variable target is not being set by the alias. What am I doing wrong? Im sure there is a simple fix but I must say I am incapable of figuring it out on my own
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Mar 08, 2010 9:23 pm   
 
The proper format is:
Code:
target = %1

The @target format was permitted in Zmud but was not proper syntax. That improper syntax has been removed in Cmud. You should read the "Changes for Zmud Users" document: http://forums.zuggsoft.com/modules/mx_kb/kb.php?page=3&mode=doc&k=2622
This particular issue is described under "Variable assignment syntax": http://forums.zuggsoft.com/modules/mx_kb/kb.php?page=3&mode=doc&k=3003
Reply with quote
malikai3k
Beginner


Joined: 24 Dec 2004
Posts: 14
Location: Brisbane, Australia

PostPosted: Tue Mar 09, 2010 9:33 am   
 
Or for ease of reference its

#var target %1

however i recommend doing

#VAR target %lower(%1)

that will make sure your variable stores the target in lowercase
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