|
a_priebe47 Newbie
Joined: 04 Aug 2003 Posts: 7 Location: Canada
|
Posted: Wed Oct 06, 2004 12:14 am
Should be working script.... |
Alright, I have what I think should be a working script, I can't find any problems with it. I'm using zmud 7.04, here's the script:
Code: |
#TRIGGER {(%w) says 'uplift (%w)'}
{
c uplift %2;
#IF (A barrier in the planes prevents you from reaching them.)
{say Barrier to %2, could not uplift.} {#IF (You reach across the planes and aid %2...)
{say Uplifted %2.;#ADD task 1} {say Failed the casting, try again.}}
}
|
Any suggestions? Thanks. |
|
_________________ ~a_priebe47 |
|
|
|
mr_kent Enchanter
Joined: 10 Oct 2000 Posts: 698
|
Posted: Wed Oct 06, 2004 1:08 am Re: Should be working script.... |
a_priebe47 wrote: |
Alright, I have what I think should be a working script, I can't find any problems with it. I'm using zmud 7.04, here's the script:
Code: |
#TRIGGER {(%w) says 'uplift (%w)'}
{
c uplift %2;
#IF (A barrier in the planes prevents you from reaching them.)
{say Barrier to %2, could not uplift.} {#IF (You reach across the planes and aid %2...)
{say Uplifted %2.;#ADD task 1} {say Failed the casting, try again.}}
}
|
Any suggestions? Thanks. |
The #IF command is used to evaluate an expression or condition. You seem to be trying to use #IF as a trigger pattern.
Since you don't seem to refer to the first (%w)wildcard in the command portion, you can remove the paranthesis from around it. The second %w will become the first parameter to be referenced.
Try something like this instead.
#TRIGGER {%w says 'uplift (%w)'} {#VAR ctarget %1;c uplift @ctarget}
#COND {^(%w) (%w) *} {#IF (%1 = "A" AND %2 = "barrier") {say Barrier to @ctarget, could not uplift.};#IF (%1 = "You" AND %2 = "reach") {say Uplifted @ctarget.;#ADD task 1} {say Failed the casting, try again.}} |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Oct 06, 2004 4:41 am |
First, as Mr Kent says, you need triggers for those patterns you have #IF looking for.
In addition, you've used a multiline approach to your #IF commands. That's acceptable, and I frequently do so myself, but it won't work the way you have it.
You have:
#IF (condition)
{true action} {false action}
It should be:
#IF (condition) {
true action} {false action}
In order for zMUD to know that an action is a continuation of a prior line, the opening bracket must be on the line that is being continued. |
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
|
|
|
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
|
|