OpenRPG/Flexinode

From David's Notebook
Jump to navigationJump to search

Feature requests

OpenRPG/Bugs#Feature_requests

Description

A flexinode is an OpenRPG game tree node that can used used for any rule system.

They have:

  • a name (as displayed in the tree)

And may also have:

  • one or more variables.
  • a 'double click action' (text which may contain one or more dice rolls to be sent to the chat)
  • a longer description for the action.

Flexinodes can be nested arbitrarily.

Actions can include dice rolls which can include variable references. Variables are searched for in this order:

  1. current node
  2. child nodes
  3. parent node
  4. parent's children
  5. parent's children's children (etc.)
  6. grandparent
  7. grandparent's children
  8. etc.

This means a flexinode can contain several complete flexinode character trees and each subtree will use its own variables.

The longer action description will be presented as a tooltip in the chat window.

Examples

d20

A subset of a d20 node for a simple attack might look like:

Abilities (folder)

Strength
strength = 15
str = (strength - 10) / 2
action: [1d20 + str]

...

Attacks (folder)

Longsword
action: [1d20 + str] ===> [1d8 + str]
description: One-handed, primary attack

Right clicking the longsword node would produce:

Longsword: [1d20 + 3] => (15) = 18 ===> [1d8 + 3] ==> (3) = 6

4e

A 4e node for a power might look like:

Character

level = 3

...

Abilities (folder)

Intelligence
intelligence = 15
int = (intelligence - 10 / 2
action = : [1d20 + level/2 + int]

...

Powers (folder)

Magic Missile
action: [1d20 + level/2 + int] (vs Ref) ===> [1d4 + int]
description: At will power

Right clicking the Magic Missile node would produce:

Magic Missile: [1d20 + 4] => (13) = 17 (vs Ref) ===> [1d4 + 3] => (3) = 6