• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Local Floating Text's

Status
Not open for further replies.

[trigger=]
Untitled Trigger 002
Events
Time - Elapsed game time is 3.00 seconds
Conditions
Actions
Item - Pick every item in (Playable map area) and do (Actions)
Loop - Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Picked item)) Equal to (Player number of (Picked player))
Then - Actions
Set string = (Great + ((Name of (Picked item)) + of Fun))
Set i = (i + 1)
Set item = (Picked item)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Player Equal to (Picked player)
Then - Actions
Floating Text - Create floating text that reads string at (Position of (Picked item)) with Z offset 50.00, using font size 15.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Set tag = (Last created floating text)
Else - Actions
Else - Actions
[/trigger]

This works fine right? Should I be setting the variable to detect each text tag locally or should I not?
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
Yes it works fine... however it does not work as intended.

You must do this:
- Create floating text
- Custom script: set udg_TempPlayer = GetLocalPlayer()
- Pick every player in (all players) and do actions
--- If Picked player equals TempPlayer Then
------ Show (Last created floating text)
--- Else
------ Hide (Last created floating text)
--- Endif
 
Yes it works fine... however it does not work as intended.

You must do this:
- Create floating text
- Custom script: set udg_TempPlayer = GetLocalPlayer()
- Pick every player in (all players) and do actions
--- If Picked player equals TempPlayer Then
------ Show (Last created floating text)
--- Else
------ Hide (Last created floating text)
--- Endif

It works as intended as it already is, I want 1200 text tags... Not the limit of 100. :thumbs_up:

Just wanted to know if setting a variable locally would desync, and what I should do.
 
Status
Not open for further replies.
Top