+TOSY Posted April 13, 2008 Share Posted April 13, 2008 When I worked for my cartridge, I found a zone event when the player exit the distance range. The keyword 'OnNotInRange' can define the event when the player exit the distance range. This keyword is not shown in zone event list (such as enter nor exit) in builder, but it can be used by add into the lua file manually. This is the sample code. The zone name and script line should be modified to fit for each cartridge. function zoneZone1:OnNotInRange() -- #GroupDescription=Script -- -- #Comment=Script Comment -- Wherigo.MessageBox{Text=[[You have walked 100 meters.]],} end Quote Link to comment
+ABrimberry Posted April 13, 2008 Share Posted April 13, 2008 Thanks for the information. Will try it out soon. Andrew When I worked for my cartridge, I found a zone event when the player exit the distance range. The keyword 'OnNotInRange' can define the event when the player exit the distance range. This keyword is not shown in zone event list (such as enter nor exit) in builder, but it can be used by add into the lua file manually. This is the sample code. The zone name and script line should be modified to fit for each cartridge. function zoneZone1:OnNotInRange() -- #GroupDescription=Script -- -- #Comment=Script Comment -- Wherigo.MessageBox{Text=[[You have walked 100 meters.]],} end Quote Link to comment
+ABrimberry Posted April 15, 2008 Share Posted April 15, 2008 Works great for me. I've been looking for a work-around to the Exit Zone crash I've been experiencing (when asking a question when exiting a zone, the Colorado has been locking up). Thanks for the great information. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.