Functions in the GmNotes?

Discuss macro implementations, ask for macro help (to share your creations, see User Creations, probably either Campaign Frameworks or Drop-in Resources).

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

Post Reply
MSleipnir
Kobold
Posts: 6
Joined: Sun Aug 20, 2017 12:49 pm

Functions in the GmNotes?

Post by MSleipnir »

Hi,
I would like to write a handout for the DM on a text basis. So I thought of using the gmnotes for it. I can show this with a macro in a frame. that works really well. But: I would like to embed functions in the GmNotes ... is this possible? or is there a workaround?
Thank you! :)

Example:

DmNotes:
blow of destruction [ST + 4]

Macro:
[frame("Frame Test"): {
<html>
<head>
<title>[r:token.name]</title>
</head>
<body>
[r:getGMNotes()]
</body>
</html>
}]

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

Re: Functions in the GmNotes?

Post by wolph42 »

you might want to check out nildiks (irc) add on. This allows for 'info tokens' I've also build it into the bag of tricks (link in sig). There are other handout tools as well.

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

Re: Functions in the GmNotes?

Post by aliasmask »

You may want to change the [ST+4] to either {ST+4} or even better [r: ST + 4] and then use Wiki: evalMacro().

Code: Select all

[r: evalMacro(getGMNotes())]
It'll find everything in []'s and evaluated it and treat everything else as text. Just like normal code in a macro.

Post Reply

Return to “Macros”