Page 1 of 1

Functions in the GmNotes?

Posted: Sun Dec 03, 2017 3:48 pm
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>
}]

Re: Functions in the GmNotes?

Posted: Sun Dec 03, 2017 6:39 pm
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.

Re: Functions in the GmNotes?

Posted: Sun Dec 03, 2017 7:50 pm
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.