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


Joined: 18 Jul 2019
Posts: 8

PostPosted: Mon Aug 12, 2019 4:42 am   

Okay Here's my first question
 
Hello everyone,,
It may be I am rusty or that it's late, this seems easy but I am haveing a bit of trouble with it.

#TRIGGER {.(%d)} {#var 1 2; #sh @1}

It's a simple test to see if:
1) I can create a variable named "1"
2) If it can be assigned information

What I see on screen is " @1 "
No variable is created
I am hoping I wrote it wrong.

I know I can create the var manually, but again I can't seem to change it's info.
Now if I change it to this: #TRIGGER {.(%d)} {#var a 2; #sh @a}
It works just fine and I can change the 2 to anything.

Anything would help, Thanks.
Reply with quote
shalimar
GURU


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

PostPosted: Mon Aug 12, 2019 12:15 pm   
 
Variable names cannot start with an integer.
_________________
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