I'm a bit confused about how to achieve something with one of my macros.
I've got a basic damage macro that calls on a token's HP property, applies the damage, calculates the new HP value, assigns basic status States (e.g., unconscious, dying, dead, etc), then writes the new HP value to the HP property. All that works great.
At the end of the macro I generate a variable called "output" using the concatenate function that generates a text string that says "Has <currentHP> of <maxHP> remaining." That also works - the variable generates exactly what I want it to generate.
I'd like this to be output to the Chat window, but kept to just the GM. I'm using the [g:] rolling option, but I cannot figure out how to publish this without the tooltip. I get <<output = "yadda yadda">>.
If I remove the g: tag and change to curly brackets, I get what I want - just the value of "output" not the calculations that get me there. But I assume that's being broadcast. If I try to use curly brackets with the g: tag, then I get an error (unexpected character, or something like that).
How can I get a simple, clean output of a variable's value just to the GM?
Question about roll options
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
- TheIneffableCheese
- Cave Troll
- Posts: 64
- Joined: Sun Mar 22, 2015 3:57 pm
Re: Question about roll options
Try [g,r: ]
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
- TheIneffableCheese
- Cave Troll
- Posts: 64
- Joined: Sun Mar 22, 2015 3:57 pm
Re: Question about roll options
That did it. Thanks!
Re: Question about roll options
there's a red marked link in my sig. Read it!
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