JASS:
local Town this = 1
local integer numberOfTowns
local unit u
local texttag tt
loop
set u = this.town
set this.townX = GetUnitX(u)
set this.townY = GetUnitY(u)
//Town Texttag
set tt = CreateTextTag()
call SetTextTagText(tt, this.townName, 13.5 * 0.0023)
call SetTextTagPos(tt, this.townX - 50, this.townY + 15, 0.0)
call SetTextTagPermanent(tt, true)
call SetTextTagColor(tt, 255, 220, 0, 255)
//call colorTag(tt, this.townType)
//Loop functions
exitwhen this == numberOfTowns
set this = this + 1
endloop
Hello I got this function here that bugs me a little. I am creating a texttag 8 times (the value of numberOfTowns) that i want to set the color of. However setting the color only works for 3 of them, the rest turn invisible. If I don't set the color or set it to the deafult (tt, 255, 255, 255, 255) they all remain visible.
I'm totally clueless, anyone else has encountered this before?