Jump to content

Wherigo .... editing Lua


Nosynel

Recommended Posts

 

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 = ""

Link to comment

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?

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...