| 01-14-2009, 02:05 AM | #1 |
Hi. I'm trying to create a permanent text tag in yellow font that attaches to a region called "Great Britain". I have figured out how to create a text tag, but mine is disappearing after about 2 minutes after the game starts. I want the text to remain permanently on the map. Here is the code I have: //========================================================================== function Trig_Wording_Actions takes nothing returns nothing call CreateTextTagLocBJ("|cffFFD700Great Britain|r",OffsetLocation(GetRectCenter(gg_rct_Great_Britain), -250.00, -250.00), 0, 20.00, 100, 100, 100, 0 ) endfunction //========================================================================== function InitTrig_Wording takes nothing returns nothing set gg_trg_Wording=CreateTrigger() call TriggerRegisterTimerExpireEvent(gg_trg_Wording,udg_Turn) call TriggerAddAction(gg_trg_Wording,function Trig_Wording_Actions) endfunction However, I'm having trouble figuring out how to set the tag to permanent. Every time I try, I get errors that I can't seem to figure out. Any help would be much appreciated. Thanks! |
| 01-16-2009, 07:01 PM | #2 |
bump. |
| 01-16-2009, 07:16 PM | #3 |
There is a SetTextTagPermenant() (sp) function kicking around. You need to use that on your texttag. |
