====== Templates ====== Templates are "substitutions" that are available in parts of GPHUD. They can be thought of like "mail merge" fields. Under "Introspection", "Templates" you can see all the available templates in the system. As an example, out of the box there is a LEVEL template, called''--LEVEL--'' which turns out to be the level of the current character. This is used in the default ''Alias.Roll'' as the bias - this is the traditional behaviour of the preceding RPHUD - a characters level is added to their dice roll. By putting ''--LEVEL--'' in the alias's bias field, this is replaced later on by the character's level. There are a large number of templates visible under Introspection/Templates, some such as the NAME are used in HUD/titler text, others, such as attributes you create, can be used to create attribute specific rolls, e.g. "1d6 + strength", which would be done by using ''--STRENGTH--'' as the bias. Of further note are the ''--TARGET:XXX--'' types, these are only available in certain commands that pick a target, and are used to select the target's value. For example, a simple "roll against" where both sides roll 1d6 but the attacker adds strength and the defender adds defence, would be an alias around 'roll against' with both dice set to 1d6, and the "bias" (initiators bias) set to ''--STRENGTH--'' and the targetbias set to ''--TARGET:DEFENCE--'' (note using ''--DEFENCE--'' would use the initiators - the attackers - defence attribute) Templates are not used in all places, while all commands support them, not all KV's do, to see a currently supported list of "templatable" commands see Introspection/KV under the "DoesTemplating" column. Further, commands that have a "target" parameter support the ''--TARGET:XXX--'' templates in its parameters.