|
Davos Adept
Joined: 30 Jan 2003 Posts: 228 Location: USA
|
Posted: 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 |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
Davos Adept
Joined: 30 Jan 2003 Posts: 228 Location: USA
|
Posted: 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 |
|
|
|
Drylar Wanderer
Joined: 04 Nov 2001 Posts: 53 Location: USA
|
Posted: 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 |
|
|
|
Davos Adept
Joined: 30 Jan 2003 Posts: 228 Location: USA
|
Posted: 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 |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
|
|