I have a bit of complicated code involving conditional statements & select case to derive a token property.
Another properties involve dealing with some json objects.
Can I incorporate that sort of code directly into the campaign properties?
What code can I put in campaign properties for token?
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.
What code can I put in campaign properties for token?
MT Framework: Call of Cthulhu 7th fork, D&D 5e Spell Library
MT Scenario: Uncle Timothy's Will.
MT Utilities: Handouts, VBL Move Block, Date.
MT Scenario: Uncle Timothy's Will.
MT Utilities: Handouts, VBL Move Block, Date.
Re: What code can I put in campaign properties for token?
You can, but you shouldn't. If you have some code it's best to make a UDF/macro and have the property call it.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: What code can I put in campaign properties for token?
How do I call a macro from the properties? It keeps giving me errors when I try.
For example, the following doesn't work:
Myvar:{[macro("mymacro@Lib:mylib"):""]}
For example, the following doesn't work:
Myvar:{[macro("mymacro@Lib:mylib"):""]}
MT Framework: Call of Cthulhu 7th fork, D&D 5e Spell Library
MT Scenario: Uncle Timothy's Will.
MT Utilities: Handouts, VBL Move Block, Date.
MT Scenario: Uncle Timothy's Will.
MT Utilities: Handouts, VBL Move Block, Date.
Re: What code can I put in campaign properties for token?
The format is
Any errors in code may not give output but the display will just show the macro call.
Code: Select all
*propName(propAlias):[macro("macroname@lib:token"):""][r: macro.return]
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: What code can I put in campaign properties for token?
Thank you! I had not realized that [r: macro.return] was necessary.
MT Framework: Call of Cthulhu 7th fork, D&D 5e Spell Library
MT Scenario: Uncle Timothy's Will.
MT Utilities: Handouts, VBL Move Block, Date.
MT Scenario: Uncle Timothy's Will.
MT Utilities: Handouts, VBL Move Block, Date.