|
remus Wanderer
Joined: 06 Jul 2002 Posts: 53 Location: Australia
|
Posted: Sun Aug 14, 2005 8:12 am
Problem with Achaea View capture |
Greetings, could someone please take a quick look at this and point out what I am doing wrong?
Code: |
Trigger You see (%w) at (*)
Value:
#IF (%2=%item( @destinations, 1)) {
#IF (@track=1) {
mtrack=%1
track @mtrack
track=0
}
}
#IF (%2=%item( @destinations, 2)) {
#IF (@track=2) {
mtrack=%1
track @mtrack
track=0
}
}
|
or
#TRIGGER {You see (%w) at (*)} {#IF (%2=%item( @destinations, 1)) {#IF (@track=1) {mtrack=%1;track @mtrack;track=0}};#IF (%2=%item( @destinations, 2)) {#IF (@track=2) {mtrack=%1;track @mtrack;track=0}}}
The Values look like this:
Code: |
You see Darwen at Shaded corner in the Garden of Epicurus.
or
You see Infinious at Ivy-covered archway to Minia.
or
1000 others but they are the two I need to work. |
I have 2 aliases that look like this
Code: |
#alias minia {track=1;view}
and
#alias epicurus {track=2;view}
|
View is added as it is the command that the mud accepts to throughout the list as below: (shortened of course)
Code: |
You see Hades at The Crossroads.
You see Galatia at Rocky Vantage point within Ithmia.
You see Crunk at Shallam Road by Eastern Row.
You see Cordova at The grove.
You see Hiroshi at A high balcony.
You see Nobi at Bridge Street.
You see Karsun at Centre Crossing.
You see Telcis at Sloping oak forest.
You see Justii at Jaru Docks.
|
|
|
_________________ Once the Known was unknown now its Known...
Do you know it??? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Sun Aug 14, 2005 11:00 am |
#TRIGGER {^You see (%w) at (*)$} {#IF ("%2"=%item( @destinations, @track)) {mtrack="%1";track @mtrack;track=0}}
I eliminated the extra #IF because the check of @track value appearred to match the value being checked against %item(@destinations,##). The other change was to properly surround the %1 and %2 references with quotes. I am also guessing you might not have the periods in your destinations variable.
#TRIGGER {^You see (%w) at (*).$} {#IF ("%2"=%item( @destinations, @track)) {mtrack="%1";track @mtrack;track=0}} |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
remus Wanderer
Joined: 06 Jul 2002 Posts: 53 Location: Australia
|
Posted: Sun Aug 14, 2005 11:47 am |
FIXED.
Thanks! |
|
_________________ Once the Known was unknown now its Known...
Do you know it??? |
|
|
|
|
|