• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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,657
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