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
fisher1231
Beginner


Joined: 27 Sep 2004
Posts: 18

PostPosted: Tue Sep 28, 2004 9:53 pm   

Any substitute for onwalkend?
 
Thats just what im wondering, is there a substitute for onwalkend.
That will be helpful if there is but also another way to work this would be helpful as well,
i have
#WALK @pickupfrom
and I get there I want to #FIND just to make sure everything is setup for the next round of walking and also issue a PICKUP command to the game, maybe a couple others as well. Thanks
_________________
Johnny C Fisher
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Sep 29, 2004 1:28 am   
 
There isn't to my knowledge. You could make your own trigger for the room, or have some trigger such as your prompt trigger check for %inwalk becoming 0 (this would be less reliable), but in any case onwalkend is the best way to go.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Sep 29, 2004 1:52 am   
 
Considering that onwalkend is borken :P
I will have something for ya when I get back from work. Basicly just an expresion trigger that compares %destroom with ?%roomkey/%roomnum etc but I need more time to make sure im using the correct functions. etc.
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
fisher1231
Beginner


Joined: 27 Sep 2004
Posts: 18

PostPosted: Thu Sep 30, 2004 12:42 am   
 
thanks nexela! you're becoming a lifesaver, and yea it is for that courier script :)
_________________
Johnny C Fisher
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu Sep 30, 2004 1:01 am   
 
OK using the onroomenter alias //more failsafe then second example

#ALIAS onroomenter {
#IF (@pickupfrom=%roomkey) {
pickupfrom=""
commands here
}
}

Or another example from the courier script to trigger on the room name

#TR {{@pickup}} {
#If !%null(@pickupfrom) {
pickupfrom=""
Commands here
}
}
Reply with quote
fisher1231
Beginner


Joined: 27 Sep 2004
Posts: 18

PostPosted: Thu Sep 30, 2004 1:08 am   
 
I likes! Thank you very much, that should be about everything I need, learned alot from ya though
_________________
Johnny C Fisher
Reply with quote
fisher1231
Beginner


Joined: 27 Sep 2004
Posts: 18

PostPosted: Thu Sep 30, 2004 11:34 am   
 
ok this is what i got that works well, just one prob, the trigger will not pick up any @pickup's longer than 1 word, even though the var is set at more than one. any ideas?

Code:


#TRIGGER {{@pickup}} {
  #IF (@pickupfrom=%roomkey) {
    #IF !%null( @pickupfrom) {pickupfrom=""}
    #IF (@type="pickup") {
      pickup
      #SAY PICKED UP
      } {
      dropoff
      #SAY DROPPED OFF
      }
    }
  }
_________________
Johnny C Fisher
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu Sep 30, 2004 12:10 pm   
 
Use the OnRoomenter Method its more failsafe :P

#ALIAS onroomenter {
#IF (@pickupfrom=%roomkey) {
pickupfrom=""
#IF (@Type="pickup") {
pickup
#SAY Picked up
} {
dropoff
#SAY Dropped Off
}
}
}


Used Pretty Print
Syntax Colourizer
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