- Joined
- Oct 20, 2007
- Messages
- 342
if GetTriggerPlayer()==GetLocalPlayer() then
endif
I'm not sure about the local player. It's just a possible solution.
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Triggering player) Equal to (Local player)
- Then - Actions
- Else - Actions
JASS:if GetTriggerPlayer()==GetLocalPlayer() then endif
Creating it locally will cause a desync. Displaying it and moving it around locally wont thoguh. See Breaking the TextTag Limit - Wc3campaignsWont that cause a desync?
Creating a floating text localy might desync... Actually I'm 90% sure about it.
The limit is, of course, that the maximum number of messages you are able to display is 99*<number of players in the map>, and still no player can see more than 99 texttags at any given time. However, take a map that uses texttags to show unit taunts for the opposing team (such as in Rising_Dusk's AotZ), the description for an item currently being tempered at a player's altar, and for a few spells on the map that show text for the casting player as an example.