OLD Wolph42's 'Drop-in' Bag of MT Tricks OLD
Moderators: dorpond, trevor, Azhrei, giliath, Gamerdude, jay, Mr.Ice
Wolph42's 'Drop-in' Bag of MT Tricks v.40 [INVISIB. PURGE]
New Version:
its ironic that the last version before the feature update was 40k (any warhammer fan will get that joke). Can't wait now to hit 'the answer'
Version 41
New Feature: This new version contains a full set of macro to make use of invisibility and invisibility purge. It works with onTokenMove and checks for purgin when a token moves. See the manual for more info.
Other stuff
- Updated manual for bot_getTokenFacing() and bot_setTokenFacing(), the descriptions were erroneous (the functions remain unchanged).
- added Jamz purple feet (invisible tokens) .
- setDoor can now be used when multiple doors are selected. ALL doors will be set according the given settings.
- fixed handout text issue.
- Experiment with "follow me" tokens (maybe for future "follow me" random dungeon).
- Added size options to polymorph/disguise macro. And fixed a bug in there as well.
- updated clean token names (search and replace characters. Added semicolon and open character.
- set 'allow players to edit macro' back to false for 177 macros
- updated installation instructions
- fixed vbl check OCL for MT 1.4+
- tbl check in manual
its ironic that the last version before the feature update was 40k (any warhammer fan will get that joke). Can't wait now to hit 'the answer'
Version 41
New Feature: This new version contains a full set of macro to make use of invisibility and invisibility purge. It works with onTokenMove and checks for purgin when a token moves. See the manual for more info.
Other stuff
- Updated manual for bot_getTokenFacing() and bot_setTokenFacing(), the descriptions were erroneous (the functions remain unchanged).
- added Jamz purple feet (invisible tokens) .
- setDoor can now be used when multiple doors are selected. ALL doors will be set according the given settings.
- fixed handout text issue.
- Experiment with "follow me" tokens (maybe for future "follow me" random dungeon).
- Added size options to polymorph/disguise macro. And fixed a bug in there as well.
- updated clean token names (search and replace characters. Added semicolon and open character.
- set 'allow players to edit macro' back to false for 177 macros
- updated installation instructions
- fixed vbl check OCL for MT 1.4+
- tbl check in manual
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
- JamzTheMan
- Great Wyrm
- Posts: 1872
- Joined: Mon May 10, 2010 12:59 pm
- Location: Chicagoland
- Contact:
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
Got the purple feet too! sweet
Hey, did I ever get you the "large" feet (or did you get them to me? dang, forget who finished those up lol). Anyhoo, do yo show the large/crackle feet for Huge+ tokens?
Hey, did I ever get you the "large" feet (or did you get them to me? dang, forget who finished those up lol). Anyhoo, do yo show the large/crackle feet for Huge+ tokens?
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
I did implement some of you're stuff, not sure whether I did all of it. Been a while. Anyhoo, I need to exand the current functionality anyway so ill have a look.
The expantion will be:
- current purge inv. will be renamed to see inv.
- purge inv to be added
- add destroy inv. as we're working on it anyway.
Just to be clear and sure:
'Purge invisibility' 'negates' invisibility when in range, but when the 'inv. token' moves out of range the inv. restores?
The expantion will be:
- current purge inv. will be renamed to see inv.
- purge inv to be added
- add destroy inv. as we're working on it anyway.
Just to be clear and sure:
'Purge invisibility' 'negates' invisibility when in range, but when the 'inv. token' moves out of range the inv. restores?
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
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
Correct. It negates the invisibility and doesn't remove the spell.wolph42 wrote:Just to be clear and sure:
'Purge invisibility' 'negates' invisibility when in range, but when the 'inv. token' moves out of range the inv. restores?
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
Thnx .aliasmask wrote:Correct. It negates the invisibility and doesn't remove the spell.wolph42 wrote:Just to be clear and sure:
'Purge invisibility' 'negates' invisibility when in range, but when the 'inv. token' moves out of range the inv. restores?
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
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
ok expansion is ready. The following invisibility functions are now available:
Code: Select all
Start Invisibility bot_startInvisibility()
End Invisibility bot_endInvisibility()
See Invisibility bot_seeInvisibility()
Saw Invisibility bot_sawInvisibility()
Purge Invisibility bot_purgeInvisibility()
Purged Invisibilit bot_purgedInvisibility()
Anul Invisibility bot_anulInvisibility()
Annuled Invisibili bot_annuledInvisibilityty()
Check Invisibility bot_checkInvisibility()
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
- JamzTheMan
- Great Wyrm
- Posts: 1872
- Joined: Mon May 10, 2010 12:59 pm
- Location: Chicagoland
- Contact:
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
Oh, ok then lol That should cover all the bases now Awesome work!
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
thanks. Let me know when you find something.JamzTheMan wrote:Oh, ok then lol That should cover all the bases now Awesome work!
note that I udpated a couple of things in version 41b (the campaign macros were wrong and ive added the macros to the BoT virtual menu as well).
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
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
When i try to use the invisibility macros, this happens:
Unknown macro: checkInvisibility@lib:OnTokenMove
Also when i click the check invisibility on the OnTokenMove, i get:
lib:OnTokenMove:
« 'broadcast("this function is under construction. Turn off: Invisibility in the BOT settings (toggles tab)")' = 'broadcast("this function is under construction. Turn off: Invisibility in the BOT settings (toggles tab)")' = broadcast("this function is under construction. Turn off: Invisibility in the BOT settings (toggles tab)") »
Why is this?
Using v41
EDIT: actually on a new campaign, importing onTokenMove and EventMacros, and saving and reloading without doing anything else, i still get the same error (unknown macro) just by moving the token around.
Also, i can make tokens invisible, but the various purge/see/annul don't work: the "Caster" token is not added to the ownerlist of the invisible tokens, and they still cannot see it.
Unknown macro: checkInvisibility@lib:OnTokenMove
Also when i click the check invisibility on the OnTokenMove, i get:
lib:OnTokenMove:
« 'broadcast("this function is under construction. Turn off: Invisibility in the BOT settings (toggles tab)")' = 'broadcast("this function is under construction. Turn off: Invisibility in the BOT settings (toggles tab)")' = broadcast("this function is under construction. Turn off: Invisibility in the BOT settings (toggles tab)") »
Why is this?
Using v41
EDIT: actually on a new campaign, importing onTokenMove and EventMacros, and saving and reloading without doing anything else, i still get the same error (unknown macro) just by moving the token around.
Also, i can make tokens invisible, but the various purge/see/annul don't work: the "Caster" token is not added to the ownerlist of the invisible tokens, and they still cannot see it.
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
I've corrected some mistakes, but they are different errors than that you present.
To be sure:
1. you have created all the necessary states?
2. you have run the settings and entered the (correct!) state names you use?
and thus 3: download the update first. Just the lib:ontokenmove should be version erm 41b or c
edit: ah after rereading you message: the 'under construction' message meant exactly that: I was working on it. If you download it while I work on it you get that message. Note that if you download the campaign file its always 'life', meaning that I don't have a dev and production version but just that one.
(actually currently working on a new feature which works in 1.4.0.5 and in this case I *did* make a copy because I want to leave the b91 compatibility version available for some time. But that is something completely apart from the one available for download).
To be sure:
1. you have created all the necessary states?
2. you have run the settings and entered the (correct!) state names you use?
and thus 3: download the update first. Just the lib:ontokenmove should be version erm 41b or c
edit: ah after rereading you message: the 'under construction' message meant exactly that: I was working on it. If you download it while I work on it you get that message. Note that if you download the campaign file its always 'life', meaning that I don't have a dev and production version but just that one.
(actually currently working on a new feature which works in 1.4.0.5 and in this case I *did* make a copy because I want to leave the b91 compatibility version available for some time. But that is something completely apart from the one available for download).
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
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
I created all the states (i get errors if i try to rename them in your configuration, but anyway) and ran settings.wolph42 wrote:I've corrected some mistakes, but they are different errors than that you present.
To be sure:
1. you have created all the necessary states?
2. you have run the settings and entered the (correct!) state names you use?
and thus 3: download the update first. Just the lib:ontokenmove should be version erm 41b or c
edit: ah after rereading you message: the 'under construction' message meant exactly that: I was working on it. If you download it while I work on it you get that message. Note that if you download the campaign file its always 'life', meaning that I don't have a dev and production version but just that one.
(actually currently working on a new feature which works in 1.4.0.5 and in this case I *did* make a copy because I want to leave the b91 compatibility version available for some time. But that is something completely apart from the one available for download).
I'm running v 1.4.1.7
Version is 41c. I wasn't using the live version
Here are the steps im doing. I just tried 1.4.0.5 and i get the same things.
-Redownloaded onmovetoken, 41b now.
-New campaign. I import onmovetoken and eventmacros.
-If i move the tokens around, i get
Undefined function: bot_checkInvisibility
-I add the invisibility states, then save and reload the campaign
-Settings popup, i leave everything on default. I get this error: Error running onCampaignLoad on lib:OnTokenMove : Impossibile trovare la mappa BASE nella funzione setCurrentMap.
- Add a npc and a pc token. I get: Macro sconosciuta checkInvisibility@lib:OnTokenMove.
- Dragging the black BOT macro on to campaign, i click "Set invisibility" on the npc token. Token has state=invisibility. The PC token cannot see it.
- I connect a client to my server; select the GM
- I "purge invisibility" on the PC token, input range=10, and it gets state=invisibility_purge; then move it next to the NPC. Still the PC cannot see it.
- I "purged invisibility" on the PC token. I get error: Condizione invalida in IF (isOwnedByAll()) roll option. Statement options (if any): h,if(isOwnedByAll()) Statement Body : macro.return = getAllPlayerNames() ; macro.return = json.union(getOwners("json"), getLibProperty("gmNames", "lib:EventMacros"))
- Whenever i click End/Saw/Purged/Anulled invisibility i get that error.
Still the PC token cannot see the invisibile NPC
Last edited by Madeiner on Thu Aug 10, 2017 8:56 am, edited 1 time in total.
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
can you share your campaign file (e.g. dropbox link) here so I can have a look.
oh and just to be on the save side, download the last ontokenmove file.
oh and just to be on the save side, download the last ontokenmove file.
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
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
wolph42 wrote:can you share your campaign file (e.g. dropbox link) here so I can have a look.
oh and just to be on the save side, download the last ontokenmove file.
https://www.dropbox.com/s/ekence9qcyh0y ... cmpgn?dl=0
Here it is. Thanks.
Saved with 1.4.0.5
Note i added step to step instruction to reproduce this in the previous post
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
sigh...apparently I fixed it at home...and then did not save it!
Fixed it again, version 41d, you can download the tok.
Fixed it again, version 41d, you can download the tok.
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
Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]
The link keeps downloading 41b for me, or at least it says so on campaignload.
However, it works now! (there is still the error, but it works)
Also, a small (hopefully) request.
I'm trying to setup a campaign, and i have this problem:
http://forums.rptools.net/viewtopic.php?f=86&t=27289
I *believe* i can fix this, by having the object be invisible and using a "state" to display a network connection (always visible object in FOW is invisible, but state is still shown)
However, i just noticed that i cannot ANNUL invisibility on an object.
Any chance the invisibility code can be made to run on objects too?
Or, is there a way to automatically turn a token that just lost its visibility into an object?
Basically, what i want is a way to have a token always shown on the map once it's been discovered, even when the characters leave. And i want said token to be completely visible when a small part of it is visible. And the token is very long but thin...
EDIT: cancel that. I just discovered that you need to get closer to a certain corner of the token for the dispel invisibility to work, so i can't use it with very long tokens
However, it works now! (there is still the error, but it works)
Also, a small (hopefully) request.
I'm trying to setup a campaign, and i have this problem:
http://forums.rptools.net/viewtopic.php?f=86&t=27289
I *believe* i can fix this, by having the object be invisible and using a "state" to display a network connection (always visible object in FOW is invisible, but state is still shown)
However, i just noticed that i cannot ANNUL invisibility on an object.
Any chance the invisibility code can be made to run on objects too?
Or, is there a way to automatically turn a token that just lost its visibility into an object?
Basically, what i want is a way to have a token always shown on the map once it's been discovered, even when the characters leave. And i want said token to be completely visible when a small part of it is visible. And the token is very long but thin...
EDIT: cancel that. I just discovered that you need to get closer to a certain corner of the token for the dispel invisibility to work, so i can't use it with very long tokens
Last edited by Madeiner on Thu Aug 10, 2017 11:18 am, edited 1 time in total.