RPTools.net

Discussion and Support

Skip to content

It is currently Tue Dec 12, 2017 6:51 pm 






Reply to topic  [ 3 posts ] 

Previous topic | Next topic 

  Print view

Author Message
 Offline
Kobold
 
Joined: Sun Aug 20, 2017 11:49 am
Posts: 6
 Post subject: Functions in the GmNotes?
PostPosted: Sun Dec 03, 2017 3:48 pm 
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>
}]


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9427
Location: Netherlands
 Post subject: Re: Functions in the GmNotes?
PostPosted: Sun Dec 03, 2017 6:39 pm 
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.

_________________
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC

My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
DPI.
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


Top
 Profile  
 
User avatar  Offline
Deity
 
Joined: Tue Nov 10, 2009 6:11 pm
Posts: 7964
Location: Bay Area
 Post subject: Re: Functions in the GmNotes?
PostPosted: Sun Dec 03, 2017 7:50 pm 
You may want to change the [ST+4] to either {ST+4} or even better [r: ST + 4] and then use Wiki: evalMacro().

Code:
[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.

_________________
Downloads:


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 3 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 2 users online :: 1 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: TheIneffableCheese and 1 guest





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman