Here is an example of using these commands. You have to have v116 or higher.
This is text that can be generated on the fly. This code would go in the main AI of the entity (character or otherwise).
;Artificial Intelligence Script
;Header
desc = Janitor's response when player comes close to him
;Triggers
:state=0:animate=99,state=1
:state=1,random=30:rotateheadrandom=10
:state=1,plrdistwithin=50:fpgcrawtextsize=36,fpgcrawtextfont=verdana
:state=1,plrdistwithin=50:fpgcrawtextr=255,fpgcrawtextg=128,fpgcrawtextb=128
:state=1,plrdistwithin=50:fpgcrawtextx=50,fpgcrawtexty=60
:state=1,plrdistwithin=50:fpgcrawtext="Hey kid keep off my nice clean floor"
;End of Script
This can also be used for any other entity other than a character. For Example use "Press Enter to Pickup Gold Bar" when you come close to the gold bar. And then use the pick up commands. As you can see you can use this instead of a graphics hud.
Also, you can select the font, size, and color as well as the X/Y position of the text. Uses percentages to be consistent with Lee's methodology.
If I'm not mistaken it automatically disappears when you go outside the player distance to the entity/object.
One other thing. There is a black border that encircles the text to make it stand out more. This was a great addition. At first Lee didn't have this.
-----------------------------------------------
OliveTreeGames