1.6.2
What's new:
What's new:
- Added feature to set session policies/rules (e.g. strict token ownership), on the fly. This action is accessible via the Session menu, and only on when hosting a session.
- Expanded the Token section of the Scripting API. Added token.notes, token.setNotes, token.gmNotes, and token.setGmNotes for getNotes, setNotes, getGMNotes, and setGMNotes, respectively.
- Script API changes:
- We've long debated that it was kind of ugly to have separate functions querying the same sources, to get different results. In this case, functions that either got a token's ID or name e.g. getTokens, getTokenNames. In trying to keep backward compatibility, we made the mistake of making direct function translations in Mote's function collection e.g. map.tokens, map.tokenNames. We have since come to regret that design decision and corrected it.
All such functions are consolidated into one function that returns an ID, by default, or a name, if specified. The list of functions removed are:- map.tokenNames (consolidated into map.tokens)
- map.ownedNames (consolidated into map.owned)
- map.selectedNames (consolidated into map.selected)
- map.exposedNames (consolidated into map.exposed)
- map.visibleNames (consolidated into map.visible)
- Other functions that were updated in the same fashion, but didn't have an existing "Name" function are: map.pcs, map.npcs, map.hidden, map.objects, and map.background.
Please check the Mote wiki for the updated syntax for these functions. Our apologies if these changes breaks some of your scripts!
- We've long debated that it was kind of ugly to have separate functions querying the same sources, to get different results. In this case, functions that either got a token's ID or name e.g. getTokens, getTokenNames. In trying to keep backward compatibility, we made the mistake of making direct function translations in Mote's function collection e.g. map.tokens, map.tokenNames. We have since come to regret that design decision and corrected it.
- Better port conflict handling.
- Minor code optimizations.
- Made toolbars detachable, as per request. Do note that there is an issue with docking we haven't been able to solve i.e. toolbars can only be docked horizontally and only up top.
- Corrected more erroneous entries in code completion.