In my framework, when a token is assigned the Invisibility state, we also change it so that "Visible to Owner Only" is set to true. This works just fine; the player and DM can see the token, no one else can.
But when someone has "See Invisibilty" on, its gets a little tricky. Currently what we do is that we make the player who has See Invisiblity another owner of the Invisible token(s). Works fine but...if he clicks on the token, then he sees all their abilities and whatnot. And that's not a great solution, even with players trying to be honest.
I was wondering if this a particular cat anyone else has skinned more elegantly....and if so, if they would be willing to share their solution.
Thanks!
Handling Invisibility/See Invisiblity
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
Re: Handling Invisibility/See Invisiblity
Creating a shadow token to follow the movements of the original token and have it on the object layer. You can then change permissions of the shadow token for vision. This is something I haven't done though, but if I were to come up with a fancy way of dealing with invisibility, that's how I would do it.
Here is some pseudo-code
Here is some pseudo-code
Code: Select all
Create macro to set Invisibility and change permissions
Set Invis
set invis state
copy blank token to object layer
set image to current token
name it the same with _invis at end
Set Permission
set token ownership of _invis token
Remove Invis
delete _invis token
remove invis state
Create a hook for movement.
Could be done with onTokenMove
This is complicated, but BoT has basics and may already have invis mechanics or some use of their shadow token code.
OR Could be done with mouseover event
move _invis token to current token x,y if invis state
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Handling Invisibility/See Invisiblity
if you want to skip all the hassle, install my BoT (link in sig) it has the tools for invisibilty programmed. Including see, negate and purge invisibility. However its been a while since i created it and im not sure i worked with a shadow token, I thought I did though.
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS