Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweaking Values not loading when configuring new PC tokens #4

Closed
GrandMasterElby opened this issue May 8, 2020 · 2 comments
Closed
Assignees
Labels
maptool-bug Something isn't working because of a bug in MapTool.

Comments

@GrandMasterElby
Copy link

GrandMasterElby commented May 8, 2020

When creating a new PC token and clicking "Configure Token" in the GM Token Management macro group, the Tweaking Values popup does not load. The following error is printed to chat instead.

Invalid condition in IF(getSightType() == "Normal") roll option.       
Statement options (if any): if(getSightType() == "Normal")       
Statement Body : vSightTypeIndex = 0; vSightTypeIndex = if(getSightType() == "Darkvision", 1, 2)

Players are able to access this page through their respective sheet, and using "Configure Token" on an otherwise configured token does not reproduce the issue.

Edit: formatting

@melek melek self-assigned this May 8, 2020
@melek melek added the bug Something isn't working label May 8, 2020
@melek melek closed this as completed May 14, 2020
@melek
Copy link
Owner

melek commented May 14, 2020

The bug appears to be specifically when players create the token themselves. There may be ways to recode the macros to work around this, but I'm unsure.

Since a manual workaround is trivial I have documented the workaround below rather than complicate the framework to deal with the bug. I will also report it on the MapTool forums.

Recommended Workaround

When creating tokens, players should double-click them to open the editor and hit 'Ok'. This will fix the sight value for the token so the Tweak Token dialog will work.

@melek melek added maptool-bug Something isn't working because of a bug in MapTool. and removed bug Something isn't working labels May 14, 2020
@melek
Copy link
Owner

melek commented May 14, 2020

RPTools/maptool#1828

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maptool-bug Something isn't working because of a bug in MapTool.
Projects
None yet
Development

No branches or pull requests

2 participants