+mcaddy Posted September 15, 2014 Share Posted September 15, 2014 I have a Wherigo that I've built and tested in the emulator however it's not working on the Android app, I don't have an iPhone to test with so I don't know if it's broke for all devices or just Android. The specific problem comes when I try and Drop an item in a zone, Before dropping I use the following function to check I'm in one of the two acceptable zones function OnBank() return (NorthBankZone.State == "Inside") or (SouthBankZone.State == "Inside") end however this seems to always return false regardless of state. Can anyone assist? Quote Link to comment
+cantuland Posted September 16, 2014 Share Posted September 16, 2014 Maybe it sees it like this: return (NorthBankZone.State == "Inside") or (SouthBankZone.State == "Inside") As in, Do return A, or Do B, instead of Do return (A or . Try adding a second opening parenthesis after "return" and a second closing parenthesis before "end". Or change it to follow something like... If northbank.state is inside Then return N Elseif southbank.state is inside Then return S Else it isn't in either bank End Quote Link to comment
+cantuland Posted September 16, 2014 Share Posted September 16, 2014 The cool smiley was supposed to be a "B )". Quote Link to comment
+charlenni Posted September 16, 2014 Share Posted September 16, 2014 First of all, I'm not sure, if the State on Android could be "Inside" or "inside". Both is possible. On a quick look, I found only "inside" as a value for zone. In this case, it would be the best to do a function OnBank return Wherigo.NoCaseEquals(NorthBankZone.State, "Inside") or Wherigo.NoCaseEquals(SouthBankZone.State, "Inside") end It would be even better to use the build in functions. Than it would look like this function OnBank return Player:InsideOf(NorthBankZone) or Player:InsideOf(SouthBankZone) end Both should do, what you want. Quote Link to comment
+mcaddy Posted September 16, 2014 Author Share Posted September 16, 2014 It would be even better to use the build in functions. Than it would look like this function OnBank return Player:InsideOf(NorthBankZone) or Player:InsideOf(SouthBankZone) end Thanks that's working now 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.