Scripting Guide Create Float Text and Static Text


This script will either create floating text, or static text at specified location




This script can either be ran from a trigger event, or a script attribute tile...totally up to you.

ex - "/god editscript map1_5_5"....that will open the event that runs when you step on Map #1, X-5, Y-5 (assuming that is where you placed your attribute tile)

Or

ex - "/god editscript joinmap1"....that will open the event that runs when you join map #1 (assuming that is when you want the script to run)

Once you get the event opened, enter this code:

createmapfloatingtext(1,7,5,"YOUR TEXT HERE",15)

or

createmapstatictext(1,7,5,"YOUR TEXT HERE",15)

First example will create floating text on Map 1, X-7, Y-5 in colorcode 15 when triggered, and the Second example will create static text on Map 1, X-7, Y-5 in colorcode 15 when triggered .

You can also create float/static text at a players location when a trigger event happens. We will use float text for this example because it is cleaner

ex - "/god editscript useobj5"....that will open the event that runs when you use (double click) object #5 (assuming that is when you want the script to run...you can use other trigger events too)

Once you get the event opened, enter this code:

createmapfloattext(Getplayermap(Player),Getplayerx(Player), Getplayery(Player),"Poof!",15)

So when Player uses Object #5, float text that says "Poof!" in colorcode 15 will appear at the players location