Sorry, we don't support your browser.  Install a modern browser
This post is closed.

Hand zones should implement .getObjects()#613

Hand zones don’t support .getObjects(). They should.

Output of /execute print(logString(getObjectFromGUID("404e60"))):

<HandTrigger>〔404e60〕

Output of /execute print(logString(getObjectFromGUID("404e60").getObjects())):

Error in Script (Hand Trigger - 404e60) function <getObjects>: Attempting to call getObjects() on an object that does not support getObjects()
nil

The hand zone in question had three cards in it.

5 years ago

Actually think this is weirder than what we think - I realized that a few objects have getObjects defined and typed as a function - but if you call the function, it errors out. An example is Custom_Token.

/execute log(foldtoken.White) log(foldtoken.White.getObjects)

output:

<Custom_Token>〔e7b6d5〕Fold Banner
<func>

Surprising it should exist at all. Try and call it, its not a no op, but instead errors out and returns nil (not <unhandled>). Might just be things got a little mixed up in the addition of getObjects as a more general function.

Going to write it up and link it.

5 years ago
Changed the status to
In Progress
5 years ago
Changed the status to
Completed
5 years ago