I made text tag, attach it to unit, but I cant change color to current owners of unit color, this string which is bold dont work properly:
General-Pickeachintegerfrom1to8,anddo(Actions)ActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(Triggeringplayer)==(Pickedinteger)(Useddialogitem)==USA_Choose_Nation_ButtonChoose_Nations_Buttons_Enabled[1]==TrueThenVariable-SetChoose_Nations_Buttons_Enabled[1]=FalseDialog-Disable(Useddialogitem)for(Allplayers)UI-Display"You are leader of the Americans. T..."for(Playergroup((Pickedinteger)))toChatareaDialog-HideUSA_Choose_Nation_Buttonfor(Allplayers)Dialog-HideUSA_Choose_Nation_Image_Scoutfor(Allplayers)Dialog-HideChoose_Nation_Dialogfor(Playergroup((Pickedinteger)))Unit-ChangeownershipofTribalGathering[67.50,152.50]toplayer(Pickedinteger)andChangeColorUnit-ChangeownershipofDrone[65.48,150.57]toplayer(Pickedinteger)andChangeColorUnit-ChangeownershipofDrone[65.39,149.63]toplayer(Pickedinteger)andChangeColorUnit-ChangeownershipofTheEarthworkFort[64.00,150.00]toplayer(Pickedinteger)andChangeColorUnit-ChangeownershipofSCV[64.83,148.56]toplayer(Pickedinteger)andChangeColorUnit-ChangeownershipofInfestor(Spellcaster)[66.18,146.75]toplayer(Pickedinteger)andChangeColorUnit-Remove1NaturalresourceownerbufffromNaturalResource(TerranSmall)[66.60,149.14]fromplayerP9NEUTRALUnit-Remove1NaturalresourceownerbufffromNaturalResource(TerranSmall)[66.60,149.14]fromplayer0Variable-SetCountryChoosed[(Pickedinteger)]=1Variable-SetLocationofcapital[(Pickedinteger)]=NaturalResource(TerranSmall)[66.60,149.14]TextTag-Createatexttagwiththetext"Capital"for(Playergroup((Pickedinteger))),usingafontsizeof24,at(PositionofLocationofcapital[(Pickedinteger)])andheightoffset1.0,initiallyVisible,andfogofwarenforcementsettoFalse**TextTag-SetTextcolor(s)for(Lastcreatedtexttag)to(Color((Currentplayer(Pickedinteger)color)))**Variable-SetLocationofcapitaltag[(Pickedinteger)]=(Lastcreatedtexttag)Trigger-RunMakeUI(InfoTable)(CheckConditions,Don'tWaituntilitfinishes)
Text tag color still standart green. What I do wrong?
partially solved, still show default color of player, seems will need attach every color for players in order to right show order.
P.S Not worked with applyed text style...
Make sure your custom text colors are within text styles. So if a style was by default of color red, different colors would need to be inserted within the style. Because this is annoying, I made a function for myself:
I made text tag, attach it to unit, but I cant change color to current owners of unit color, this string which is bold dont work properly:
Text tag color still standart green. What I do wrong?
when making the text tag set the text field to the function "text with color".
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
tryed right now, still it cant show it properly.... how convert player current color to color of tag?
partially solved, still show default color of player, seems will need attach every color for players in order to right show order. P.S Not worked with applyed text style...
Bump. Text tag color dont work with text tag style, someone can help?
Make sure your custom text colors are within text styles. So if a style was by default of color red, different colors would need to be inserted within the style. Because this is annoying, I made a function for myself: