Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Okay, cause I've tried is this way, but it doesn't work properly.
So where have I to use GetLocalPlayer?
- Just while creating?
- When I'm configuring the style, too?
- Can I save the floating text in a Variable / Hashtable without any problem?
-------- Protocol to do actions for just one player --------
Set TempPlayer = (Triggering player)
Custom script: if GetLocalPlayer() == udg_TempPlayer then
Text Tag - Create ...
Custom script: endif
3. Explain what you want to do with them first, before I just give you a yes or no because there are some issues that could happen.
If (All Conditions are True) then do (Then Actions) else do (Else Actions)

'IF'-Conditions


IntegerXXX[(Player number of (Owner of GDD_DamageSource))] Equal to 1

'THEN'-Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



'IF'-Conditions




(FT_Max[(Player number of (Owner of GDD_DamageSource))] - FT_Min[(Player number of (Owner of GDD_DamageSource))]) Greater equal to 100



'THEN'-Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





'IF'-Conditions






(FT_Max[(Player number of (Owner of GDD_DamageSource))] - FT_Min[(Player number of (Owner of GDD_DamageSource))]) Equal to 7000





'THEN'-Actions






Custom script: if(GetLocalPlayer() == Player(GetConvertedPlayerId(GetOwningPlayer(udg_GDD_DamageSource)))) then






Floating Text - Destroy (Load FT_Min[(Player number of (Owner of GDD_DamageSource))] of FTInteger[(Player number of (Owner of GDD_DamageSource))] in HT_FT[(Player number of (Owner of GDD_DamageSource))]If the label is not found, this function returns NULL.)






Custom script: endif






Set FTInteger[(Player number of (Owner of GDD_DamageSource))] = (FTInteger[(Player number of (Owner of GDD_DamageSource))] + 1)






Set FT_Max[(Player number of (Owner of GDD_DamageSource))] = 0






Set FT_Min[(Player number of (Owner of GDD_DamageSource))] = 0





'ELSE'-Actions






Custom script: if(GetLocalPlayer() == Player(GetConvertedPlayerId(GetOwningPlayer(udg_GDD_DamageSource)))) then






Floating Text - Destroy (Load FT_Min[(Player number of (Owner of GDD_DamageSource))] of FTInteger[(Player number of (Owner of GDD_DamageSource))] in HT_FT[(Player number of (Owner of GDD_DamageSource))]If the label is not found, this function returns NULL.)






Custom script: endif






Set FT_Min[(Player number of (Owner of GDD_DamageSource))] = (FT_Min[(Player number of (Owner of GDD_DamageSource))] + 1)



'ELSE'-Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





'IF'-Conditions






FTInteger[(Player number of (Owner of GDD_DamageSource))] Greater equal to 0





'THEN'-Actions






Custom script: if(GetLocalPlayer() == Player(GetConvertedPlayerId(GetOwningPlayer(udg_GDD_DamageSource)))) then






Floating Text - Destroy (Load (FT_Min[(Player number of (Owner of GDD_DamageSource))] + 6900) of (FTInteger[(Player number of (Owner of GDD_DamageSource))] - 1) in HT_FT[(Player number of (Owner of GDD_DamageSource))]If the label is not found, this function returns NULL.)






Custom script: endif






Set FT_Min[(Player number of (Owner of GDD_DamageSource))] = (FT_Min[(Player number of (Owner of GDD_DamageSource))] + 1)





'ELSE'-Actions


Custom script: if(GetLocalPlayer() == Player(GetConvertedPlayerId(GetOwningPlayer(udg_GDD_DamageSource)))) then


Floating Text - Create floating text that reads ((|cffff0000 + (String(I[733]))) + !|r) above GDD_DamagedUnit with Z offset (Random real number between -40.00 and 40.00), using font size OpKT_Size[(Player number of (Owner of GDD_DamageSource))], color (100.00%, 0.00%, 0.00%), and 0.00% transparency


Custom script: endif


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



'IF'-Conditions




IntegerXXY[(Player number of (Owner of GDD_DamageSource))] Gleich 2



'THEN'-Aktionen




Custom script: if(GetLocalPlayer() == Player(GetConvertedPlayerId(GetOwningPlayer(udg_GDD_DamageSource)))) then




Floating Text - Set the velocity of (Last created floating text) to 100.00 towards 90.00 degrees




Custom script: endif



'ELSE'-Actions




Custom script: if(GetLocalPlayer() == Player(GetConvertedPlayerId(GetOwningPlayer(udg_GDD_DamageSource)))) then




Floating Text - Change (Last created floating text): Deactivate permanence




Custom script: endif


Custom script: if(GetLocalPlayer() == Player(GetConvertedPlayerId(GetOwningPlayer(udg_GDD_DamageSource)))) then


Floating Text - Change the lifespan of (Last created floating text) to IntegerXXZ[(Player number of (Owner of GDD_DamageSource))] seconds


Custom script: endif


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



'IF'-Conditions




IntegerXYX[(Player number of (Owner of GDD_DamageSource))] Equal to 2



'THEN'-Actions




Custom script: if(GetLocalPlayer() == Player(GetConvertedPlayerId(GetOwningPlayer(udg_GDD_DamageSource)))) then




Floating Text - Change the fading age of (Last created floating text) to (IntegerXXZ[(Player number of (Owner of GDD_DamageSource))] x 0.65) seconds




Custom script: endif



'ELSE'-Actions


Set FT_Max[(Player number of (Owner of GDD_DamageSource))] = (FT_Max[(Player number of (Owner of GDD_DamageSource))] + 1)


Hashtabelle - Save Handle Of(Last created floating text) as FT_Max[(Player number of (Owner of GDD_DamageSource))] of FTInteger[(Player number of (Owner of GDD_DamageSource))] in HT_FT[(Player number of (Owner of GDD_DamageSource))]

'ELSE'-Actions
Locally created text tags do not desync because text tags have their own handle stack.
