OLD Wolph42's 'Drop-in' Bag of MT Tricks OLD

These are tools and utilities that make it easier to run games. This includes Lib: macro tokens dropped into MapTool to manage the game, a conversion file for CharacterTool to allow use in MapTool, or just about anything else you can think of -- except graphics with macros and anything specific to a particular campaign framework. Those are already covered by the Tilesets subforum and the Links and External Resources forum.

Moderators: dorpond, trevor, Azhrei, giliath, Gamerdude, jay, Mr.Ice

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Wolph42's 'Drop-in' Bag of MT Tricks v.40 [INVISIB. PURGE]

Post by wolph42 »

New Version:

its ironic that the last version before the feature update was 40k :D (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

User avatar
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]

Post by JamzTheMan »

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?
-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

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]

Post by wolph42 »

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?

User avatar
aliasmask
RPTools Team
Posts: 9023
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]

Post by aliasmask »

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?
Correct. It negates the invisibility and doesn't remove the spell.

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]

Post by wolph42 »

aliasmask wrote:
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?
Correct. It negates the invisibility and doesn't remove the spell.
Thnx .

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]

Post by wolph42 »

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()

User avatar
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]

Post by JamzTheMan »

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

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]

Post by wolph42 »

JamzTheMan wrote:Oh, ok then lol That should cover all the bases now :) Awesome work!
thanks. Let me know when you find something.

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).

Madeiner
Cave Troll
Posts: 28
Joined: Thu Nov 06, 2008 10:05 pm

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]

Post by Madeiner »

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.

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]

Post by wolph42 »

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).

Madeiner
Cave Troll
Posts: 28
Joined: Thu Nov 06, 2008 10:05 pm

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]

Post by Madeiner »

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 created all the states (i get errors if i try to rename them in your configuration, but anyway) and ran settings.
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.

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]

Post by wolph42 »

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.

Madeiner
Cave Troll
Posts: 28
Joined: Thu Nov 06, 2008 10:05 pm

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]

Post by Madeiner »

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


Madeiner
Cave Troll
Posts: 28
Joined: Thu Nov 06, 2008 10:05 pm

Re: Wolph42's 'Drop-in' Bag of MT Tricks v.41 [INVIS. PURGE]

Post by Madeiner »

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
Last edited by Madeiner on Thu Aug 10, 2017 11:18 am, edited 1 time in total.

Locked

Return to “Drop-In Macro Resources”