|
fisher1231 Beginner
Joined: 27 Sep 2004 Posts: 18
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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. |
|
|
|
fisher1231 Beginner
Joined: 27 Sep 2004 Posts: 18
|
Posted: 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 |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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
}
} |
|
|
|
fisher1231 Beginner
Joined: 27 Sep 2004 Posts: 18
|
Posted: 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 |
|
|
|
fisher1231 Beginner
Joined: 27 Sep 2004 Posts: 18
|
Posted: 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 |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: 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 |
|
|
|
|
|