You can allow characters to have arbitary text associated with their character, which can then be used on the HUD text, titler text, character sheets, or other commands and uses.
In this example we will define 3 Attributes, one for the titler text color which the player may change, one for a titler description that they may change, and a reputation also shown in the titler, which they may not change.
Firstly we will create the three attributes:
On the GPHUD website, go to Configuration, Characters
Click 'Create New Attribute'
Set the Name to something useful like 'TitlerText'
Allow users to edit their own value (tick the box)
Set the type to TEXT
Ignore the group type, and ability points fields.
Optionally set “must be completed” if you want to force people to set a titler text when they create their character.
Default value should be left blank.
Repeat the same process for an attribute called TitlerColor (or similar)
Finally repeat the same process for an attribute called Reputation, but leave the “allow users to edit their own value” tickbox OFF.
Now we have created our 3 attributes, we can assign them some default values
Click on the Configuration then Characters in the GPHUD web application
Click on Characters.TitlerText and edit the Instance value if you wish to set a “default” value for the user filled in text (e.g. 'Press your HUD to set this text!')
Go back to the Configuration, Characters page and click on Characters.TitlerColor, you should edit the instance value and set something useful here, e.g. “<1,1,1>” otherwise the titler text may break later.
Similarly set the reputation's default value.
Now we will update the titler's configuration - you should see the section on templating to make the most of this feature, but if we wish to use a layout like “Characters name <new line> Reputation: <reputation> <new line> <custom text>” then we will be using something like the following:
–NAME– –NEWLINE– Reputation: –REPUTATION– –NEWLINE– –TITLERTEXT–
But with the unnecessary spaces removed, so
–NAME—-NEWLINE–Reputation: –REPUTATION—-NEWLINE—-TITLERTEXT–
To configure the HUD titler text:
Click configuration and go to GPHUDClient
Click on GPHUDClient.TitlerColor
Edit the instance value and replace it with your attribute above for the color, e.g. –TITLERCOLOR– in the example above
Go back and edit GPHUDClient.TitlerText and replace it with the long string “–NAME—-NEWLINE–…” etc etc
Now we will create two custom commands that let users configure these values directly (without having to know anything about the configuration):
Go to Configuration, Alias
Create a new alias
Name it 'sethud' or whatever you fancy
Make it have base command “characters.set”
Set the “attribute” to the name you made earlier, such as “TitlerText”
Leave the value blank
Repeat the above for a “sethudcolor” command that updates “TitlerColor” in much the same way.
Finally place these on a menu where the user can access them, for example:
Go to configuration, menus
Edit the main menu
Find two free buttons, name them “Set Titler Text” and “Set Titler Color”
Connect them to the commands “Alias.SetHud” and “Alias.SetHudColor” (or whatever you named them).