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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Renegade
Beginner


Joined: 25 Oct 2006
Posts: 14

PostPosted: Wed Dec 06, 2006 9:54 am   

whats wrong with this picture
 
I used to use a way to designate a target that i can not get to work now after the upgrade and it ate my settings.
This is what i THINK it was

#Alias t @target=%1
#Variable target <no comments>

all i get now is syntax error in the compiled code window
what did i do wrong?
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Wed Dec 06, 2006 10:04 am   
 
#Alias t target=%1

You assign variables with variable=val, not @variable=val
It was possible the 2nd way in zMUD, though not correct. It's only used in CMUD for indirect variable assignment, which it doesn't look like you need here.
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Dec 06, 2006 10:08 am   
 
CMud is much more strict about syntax then zMud was. First you should use braces correctly around the script parameter for the #ALIAS. Second using an @variable is generally not what you want when assigning a value to a variable.

#ALIAS t {target=%1}
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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