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
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: Wed Feb 12, 2003 3:39 am   

Same Trigger? Basicly?
 
Would:

#TRIGGER {Your eyes are drawn to a black rat that darts suddenly into view.} {#IF {@killrat = 1} {
curse rat bleed
@killrat = 0
@killing = 1
}}
#TRIGGER {Your eyes are drawn to a rat that darts suddenly into view.} {#IF {@killrat = 1} {
curse rat bleed
@killrat = 0
@killing = 1
}}
#TRIGGER {Your eyes are drawn to an old rat that darts suddenly into view.} {#IF {@killrat = 1} {
curse rat bleed
@killrat = 0
@killing = 1
}}
#TRIGGER {Your eyes are drawn to a baby rat that darts suddenly into view.} {#IF {@killrat = 1} {
curse rat bleed
@killrat = 0
@killing = 1
}}
#TRIGGER {Your eyes are drawn to a young rat that darts suddenly into view.} {#IF {@killrat = 1} {
curse rat bleed
@killrat = 0
@killing = 1
}}

Be the same as this one trigger?

#TRIGGER {Your eyes are drawn to a(*)rat that darts suddenly into view.} {#IF {@killrat = 1} {
curse rat bleed
@killrat = 0
@killing = 1
}}

I know this is somewhat obvious or at least it is to me, but its giving me fits HELP!

The Seaworthy
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Feb 12, 2003 4:22 am   
 
Yes. They all have the same errors even. Here's another one (with correct syntax). Cut-and-paste it to the command line.
#TR {Your eyes are drawn to * rat that darts suddenly into view} {#IF (@killrat = 1) {curse rat bleed;killrat = 0;killing = 1}}

LightBulb
Advanced Member
Reply with quote
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: Wed Feb 12, 2003 6:44 pm   
 
Obviously they aren't too ERRORED cause they work just fine how i wrote them, Thanks!

The Seaworthy
Reply with quote
Drylar
Wanderer


Joined: 04 Nov 2001
Posts: 53
Location: USA

PostPosted: Thu Feb 13, 2003 7:58 pm   
 
I might wanna point out for future reference, the error here. Some might miss it at first. I'm surprised this one worked at all for you, Davos, as when I make this all too common mistake, it usually doesn't work at all for me.

Wrong:
#TRIGGER {Your eyes are drawn to a black rat that darts suddenly into view.} {#IF {@killrat = 1} {
curse rat bleed
@killrat = 0
@killing = 1
}}

Right:
#TR {Your eyes are drawn to * rat that darts suddenly into view} {#IF (@killrat = 1) {curse rat bleed;killrat = 0;killing = 1}}

-Drylar
Reply with quote
Davos
Adept


Joined: 30 Jan 2003
Posts: 228
Location: USA

PostPosted: Fri Feb 14, 2003 6:29 am   
 
Yes since I can Compare his trigger to mine using common sense, I recognize what he considers the error, but the script works fine either way, and doesn't produce a syntax error and the trigger fires correctly made either way

The Seaworthy
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Feb 14, 2003 12:42 pm   
 
Just some advice: always use syntax that is consistant with the help files. This syntax is generally the one that is considered the correct one and is the one that guarantees you that in new versions of zMUD your syntax will not suddenly break.

What I'm saying is, zMUD may accept some particular syntax for a script even though it is not correct. However, in the future, this syntax might break without warning.

Kjata
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