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
nutsnbolts
Apprentice


Joined: 01 May 2002
Posts: 188
Location: USA

PostPosted: Mon Mar 13, 2006 2:15 am   

Any better way to do this Var code?
 
Ok, for debugging purposes, there is a real time code check as you edit your triggers, aliases, variables, etc...

I have this one trigger:

Giant Stone Shield: 2 ticks

#trigger {Giant Stone Shield: 2 ticks} {#var GSSFlag { }}

Obviously, it will give this syntax error.

#var SancFireFlag { }
^ syntax error


It works but I hate seeing the syntax error at the bottom. What is the proper way?
_________________
Thank you for everything, it's always appreciated.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Mar 13, 2006 5:05 am   
 
use double-quotes, or remove the whitespace.

#variable SancFireFlag " "
#variable SancFireFlag {}

If that's not what you were after, I honestly don't see any error at all that would even trip the syntax checker.
_________________
EDIT: I didn't like my old signature
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Mon Mar 13, 2006 5:17 am   
 
GSSFLAG = "" Question
Reply with quote
nutsnbolts
Apprentice


Joined: 01 May 2002
Posts: 188
Location: USA

PostPosted: Mon Mar 13, 2006 4:32 pm   
 
Basically, what I'm trying to do is "blanking" out the variable. So That's basically the jist of it.
_________________
Thank you for everything, it's always appreciated.
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