Aside from the standard Die_Rolling methods, there are other hidden features.
Quiet mode
Prepend a Q before the roll to output in quiet mode, which doesn't show all calculations.
[Q1d20+18] yields:
[6,18] = [24]
instead of the noisier
[1d20+18] => [6,18] = [24]
Prompt for input
You can ask the user for input when using a die macro - just use a ? where you want a number:
- [1d20+5+?]
A window will pop up asking for "Missing Value?", and puts whatever the user enters where the ? is. However, if the user just hits enter, you will get a [Bad Dice Format] error. To work around the lack of a default value, you can use a trick:
- [1d20+5+?0/10]
Which results in 0/10 if the user just hits enter, or 50/10 (5) if the user enters a 5, etc. This is a bit noisy, so I suggest coupling this with the Quiet mode, above:
- [Q1d20+5+?0/10]
which yields:
- [17,5,0] = [22]
If you intend to use this trick for the number of sides on a die, you should be sure to use parenthesis. [1d?0/10] is a lot different than [1d(?0/10)].
Referencing variables
If you have a number stored in a Text node, you can refer to it using the following format:
This only works for Text nodes. If more than one node has the same name, the one closest to the top of the Game Tree will be used.
Instead of storing a number in the Text node, you can also store any die formula, including references to other Text nodes. Thus, you can do something like this:
Text Node |
Value |
STR |
16 |
STRMOD |
(!@STR@!/2)-5 |
BAB |
5 |
!@BAB@! !@STRMOD@! |
|
1d20 !@MeleeMod@! |
Thus, when you roll [MeleeAttackRoll], you get [1d20 5 ((16/2)-5)], or [1d20 5 3], which is the d20 attack roll you'd expect for a 5th level fighter with a strength of 16.
Warning: You can create circular references and OpenRPG won't stop you. If you try to roll them, however, OpenRPG will lock up in an infinite loop.
Namespace variables
All of that is not so helpful if you want to have multiple character sheets in the same tree. However, you can reference a specific node beneath a specific other node with the format:
[!@NodeParent::NodeChild@!]
which will start with the first node that is named "NodeParent" and searches its tree for "NodeChild".
Notes
If the names of any of the nodes referenced change, the reference will fail. Thus, if you intend to make a character sheet and then copy it for multiple players, you may need to save the sheet as an xml file, open it in a plain text editor (such as notepad), and globally replace the old node name with the new node name. For instance, a well-written d20 character sheet called PCSHEET makes references in the form of !@PCSHEET::NODE@!. If you wanted to rename the sheet to Grak the Barbarian, you should open the .xml file in notepad, go to edit, replace, and replace "PCSHEET" with "Grak the Barbarian".
OpenRPG WIKI - separate login required