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
remus
Wanderer


Joined: 06 Jul 2002
Posts: 53
Location: Australia

PostPosted: 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???
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
remus
Wanderer


Joined: 06 Jul 2002
Posts: 53
Location: Australia

PostPosted: Sun Aug 14, 2005 11:47 am   
 
FIXED.
Thanks!
_________________
Once the Known was unknown now its Known...
Do you know it???
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