Aliases
Aliases are ways to customise commands.
An alias is constructed from an existing command, and the various parameters can be filled in, or left blank, in which case the user will create them.
This can be combined with templating to create some complex uses.
For example, the default installation of GPHUD ships with two demo aliases, we have alias.damage
which is a wrapper around roller.roll
, but sets it to roll 1d6 with no bias. The blank reason is then filled in by the avatar when they call this command (which is, by default, mapped to one of the quick buttons).
With templating, you can create a traditional “1d100 + level” type roll by again wrapping the roller.roll
command, setting dice number to 1, dice sides to 100 and bias to –LEVEL–
which will get replaced by the character's level when called. The reason will be blank and still filled in by the user when run.