PDA

View Full Version : Find & Replace



zombielord
March 31st, 2020, 15:45
I have a concept but would like some assistance on its execution. I have a TTF / FGF font of gaming dice.
I am wanting to try and implement a find & replace feature to map a specific sequence of characters and to replace it with output from this font. I think it could be useful for the chat window and maybe even other uses.

For instance:
~d20.20~ would be replaced with "Z" and displayed using that gaming dice font (which has a d20 showing the a 20).
~d10.10~ would be replaced with "0"
~heart~ would be replaced with a glyph of a heart, etc.

Is there a similar mod, or some reference for this.