+Nosynel Posted August 7, 2019 Share Posted August 7, 2019 I am slowly working on an open source Wherigo by the very talented Ranger Fox.... but..... I want this Wherigo to be locationless but it looks like it has a location in it. (Please see bold parts of this new thread) zoneCenter = Wherigo.Zone(cartBattleship) zoneCenter.Id="ac5f193b-578e-4e51-ab2b-08a14e59f625" zoneCenter.Name="Center" zoneCenter.Description=[[This is the center of the game board. Same technique as in Whack-A-Lackey.]] zoneCenter.Visible=false zoneCenter.DistanceRange = Distance(-1, "feet") zoneCenter.ShowObjects="OnEnter" zoneCenter.ProximityRange = Distance(200, "feet") zoneCenter.AllowSetPositionTo=false zoneCenter.Active=false zoneCenter.Points = { ZonePoint(36.07888,-79.79488,0), ZonePoint(36.07888,-79.79476,0), ZonePoint(36.07878,-79.79476,0), ZonePoint(36.07878,-79.79488,0) } zoneCenter.OriginalPoint = ZonePoint(36.0788333336512,-79.7948166529338,0) zoneCenter.DistanceRangeUOM = "Feet" zoneCenter.ProximityRangeUOM = "Feet" zoneCenter.OutOfRangeName = "" zoneCenter.InRangeName = "" Quote Link to comment
Ranger Fox Posted August 9, 2019 Share Posted August 9, 2019 I think you’re looking at Battleship. That zone is there to record the center of the game board (hence the description). It’s hidden from the player all the time. When the game starts, it’s moved to the player’s current location. All other parts of the game (the battleships) have their positions calculated with respect to this centroid, or center zone. I could have instead gone without this, instead storing the center as a variable or dynamically creating the zone later. I don’t remember why I chose this method above the other possibilities. I think, though, it may have been due to wanting to survive cartridge saves and restorations. Any other questions? Quote Link to comment
+Nosynel Posted August 17, 2019 Author Share Posted August 17, 2019 I have not relooked at it lately as I have been a bit busy. I just wondered which part of it do I need to change so that it can be played as a Wherigo in my hometown and then be able to give coordinates to find a cache? Quote Link to comment
Ranger Fox Posted August 18, 2019 Share Posted August 18, 2019 Oh. You can change the final coordinates for the zone called "geocache". That's pretty much it. The cartridge will point to that zone if you're within 32 km from that zone. 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.