• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] I need Help with my Floating Text!

Status
Not open for further replies.
Level 7
Joined
Mar 28, 2009
Messages
210
For some weird reason my floating text isn't showing up!
I also have 1 huge floating text trigger, so could it be a floating text limit?

  • Year Floating Text
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Floating Text - Create floating text that reads 1790 at (Center of 1790 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Create floating text that reads 1791 at (Center of 1791 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Create floating text that reads 1792 at (Center of 1792 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Create floating text that reads 1793 at (Center of 1793 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Create floating text that reads 1794 at (Center of 1794 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Create floating text that reads 1795 at (Center of 1795 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Create floating text that reads 1796 at (Center of 1796 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Create floating text that reads 1797 at (Center of 1797 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Create floating text that reads 1798 at (Center of 1798 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Create floating text that reads 1799 at (Center of 1799 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Create floating text that reads 1800 at (Center of 1800 <gen>) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
 
Try this:
  • Trigger1
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Set Text[1] = 1790
    • Set Text[2] = 1791
    • Set Text[3] = 1792
    • Set Text[4] = 1793
    • Set Text[5] = 1794
    • Set Text[6] = 1795
    • Set Text[7] = 1796
    • Set Text[8] = 1797
    • Set Text[9] = 1798
    • Set Text[10] = 1799
    • Set Text[11] = 1800
    • Set Region[1] = 1790 <gen>
    • Set Region[2] = 1791 <gen>
    • Set Region[3] = 1792 <gen>
    • Set Region[4] = 1793 <gen>
    • Set Region[5] = 1794 <gen>
    • Set Region[6] = 1795 <gen>
    • Set Region[7] = 1796 <gen>
    • Set Region[8] = 1797 <gen>
    • Set Region[9] = 1798 <gen>
    • Set Region[10] = 1799 <gen>
    • Set Region[11] = 1800 <gen>
  • Trigger2
  • Events
    • Time - Elapsed time is 0.00 seconds
  • Conditions
  • Actions
    • For each (IntegerA) from 1 to 11, do (Actions)
      • Loop - Actions
        • Set Point = (Center of Region[IntegerA])
        • Floating Text - Create floating text that reads Text[IntegerA] at Point with Z offset 0.00, using font size 10.00, color...
        • Floating Text - Show (Last created Floating Text) for (All Players)
        • Custom script: call RemoveLocation (udg_Point)
"Region" is "Region" type variable & "Text" of type String.
 
Level 7
Joined
Mar 28, 2009
Messages
210
:confused: it still doesnt show up!!!
Here is my Triggers
  • Year Floating Text 1
    • Events
    • Conditions
    • Actions
      • Set YearText[1] = 1790
      • Set YearText[2] = 1791
      • Set YearText[3] = 1792
      • Set YearText[4] = 1793
      • Set YearText[5] = 1794
      • Set YearText[6] = 1795
      • Set YearText[7] = 1796
      • Set YearText[8] = 1797
      • Set YearText[9] = 1798
      • Set YearText[10] = 1799
      • Set YearText[11] = 1800
      • Set YearRegion[1] = 1790 <gen>
      • Set YearRegion[2] = 1791 <gen>
      • Set YearRegion[3] = 1792 <gen>
      • Set YearRegion[4] = 1793 <gen>
      • Set YearRegion[5] = 1794 <gen>
      • Set YearRegion[6] = 1795 <gen>
      • Set YearRegion[7] = 1796 <gen>
      • Set YearRegion[8] = 1797 <gen>
      • Set YearRegion[9] = 1798 <gen>
      • Set YearRegion[10] = 1799 <gen>
      • Set YearRegion[11] = 1800 <gen>
  • Year Floating Text 2
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Do Multiple ActionsFor each (Integer A) from 1 to 11, do (Actions)
        • Loop - Actions
          • Set YearPoint = (Center of YearRegion[(Integer A)])
          • Floating Text - Create floating text that reads YearText[(Integer A)] at YearPoint with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
          • Floating Text - Show (Last created floating text) for (All players)
          • Custom script: call RemoveLocation (udg_YearPoint)
And Here is the result and in the highlighted area its supposed to show the years :cry: please help me!

Edit: I think there is a max on floating text LOL...this is not good :angry: wait I got a idea! il use pharoh's idea for all my floating text! and thx people! +rep for all who helped me!
 

Attachments

  • HELP ME WITH MY FLOATING TEXT!!.jpg
    HELP ME WITH MY FLOATING TEXT!!.jpg
    303.2 KB · Views: 135
Last edited:
Level 4
Joined
Mar 23, 2008
Messages
87
Year Floating Text 1 needs an event now.
Why not call Year Floating Text 2 using:
  • Actions
    • Trigger - Run (Year Floating Text 2) (ignoring conditions)
This way you're sure the text is initzialised before you try to output it.
 
Level 7
Joined
Mar 28, 2009
Messages
210
Well I never knew that Floating text had a limit of about 70 :grin: so now for all my floating text il use Pharaoh_'s Idea
Try this:
  • Trigger1
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Set Text[1] = 1790
    • Set Text[2] = 1791
    • Set Text[3] = 1792
    • Set Text[4] = 1793
    • Set Text[5] = 1794
    • Set Text[6] = 1795
    • Set Text[7] = 1796
    • Set Text[8] = 1797
    • Set Text[9] = 1798
    • Set Text[10] = 1799
    • Set Text[11] = 1800
    • Set Region[1] = 1790 <gen>
    • Set Region[2] = 1791 <gen>
    • Set Region[3] = 1792 <gen>
    • Set Region[4] = 1793 <gen>
    • Set Region[5] = 1794 <gen>
    • Set Region[6] = 1795 <gen>
    • Set Region[7] = 1796 <gen>
    • Set Region[8] = 1797 <gen>
    • Set Region[9] = 1798 <gen>
    • Set Region[10] = 1799 <gen>
    • Set Region[11] = 1800 <gen>
  • Trigger2
  • Events
    • Time - Elapsed time is 0.00 seconds
  • Conditions
  • Actions
    • For each (IntegerA) from 1 to 11, do (Actions)
      • Loop - Actions
        • Set Point = (Center of Region[IntegerA])
        • Floating Text - Create floating text that reads Text[IntegerA] at Point with Z offset 0.00, using font size 10.00, color...
        • Floating Text - Show (Last created Floating Text) for (All Players)
        • Custom script: call RemoveLocation (udg_Point)
"Region" is "Region" type variable & "Text" of type String.
 
Status
Not open for further replies.
Top