Page 1 of 1
How do I make text appear in the top left? [Solved]
Posted: Tue Oct 04, 2016 3:25 am
by SkinnyODST
I don`t want to make a campaign mode, I just want to know how I can add text to the top left of the screen at the start of the game, how to time how long it stays there and if I can trigger it to appear when entering a region. (In standard Conquest). The best example of this is the Battles of the Storm mod.
If I can it would make the map so much better. Thanks
Re: How do I make text appear in the top left?
Posted: Tue Oct 04, 2016 8:18 am
by thelegend
ShowMessageText("your.localization.path.in.multilanguagetool", ATTorDEF)
You can put this anywhere where you want. When it comes to triggering/or timing just put it there where usual commands are put in.
Re: How do I make text appear in the top left?
Posted: Tue Oct 04, 2016 10:07 pm
by SkinnyODST
thelegend wrote:ShowMessageText("your.localization.path.in.multilanguagetool", ATTorDEF)
You can put this anywhere where you want. When it comes to triggering/or timing just put it there where usual commands are put in.
Do I make a new path/scope in the localisation tool? If so, where?
Re: How do I make text appear in the top left?
Posted: Wed Oct 05, 2016 2:26 pm
by Marth8880
SkinnyODST wrote:Do I make a new path/scope in the localisation tool? If so, where?
Yes. It technically doesn't matter where as long as the path reference in ShowMessageText correctly points to it, but generally a good place to put these kinds of keys is in "level.ABC" (replacing ABC with your map's ID).
Re: How do I make text appear in the top left?
Posted: Wed Oct 05, 2016 9:35 pm
by SkinnyODST
Alright well I made a new scope in "level" (my 3 letter map name) and under it a key called "brief". It comes up as (NULL) in game. I named everything right. What am I doing wrong?
My LUA, or at least the section of importance -
Re: How do I make text appear in the top left?
Posted: Wed Oct 05, 2016 10:09 pm
by Marth8880
You need to include the key's full path separating each scope with a period, like so:
ShowMessageText("level.ABC.brief", ATT)
Re: How do I make text appear in the top left?
Posted: Wed Oct 05, 2016 11:57 pm
by SkinnyODST
It worked! Thanks for the help mate
