• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Problem with Floating Texts

Status
Not open for further replies.
Level 14
Joined
Aug 8, 2010
Messages
1,022
Hi! in my TD when the map begins a floating text is created that show what is the level.My problem is that after about 1 min the text begins to increase it's transparency and it becomes invisible. The text must change for every level. (I have putted the text with 30 transparency) PLEASE HELP! :cry:
 
Level 7
Joined
May 18, 2010
Messages
264
Hi! in my TD when the map begins a floating text is created that show what is the level.My problem is that after about 1 min the text begins to increase it's transparency and it becomes invisible. The text must change for every level. (I have putted the text with 30 transparency) PLEASE HELP! :cry:

please put the trigger .
 
Level 14
Joined
Aug 8, 2010
Messages
1,022
Trigger1
  • Level1
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Floating Text - Create floating text that reads You are on : Level ... at (Center of Floating Text <gen>) with Z offset 0.00, using font size 8.50, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Repair Equal to 1
        • Then - Actions
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Do nothing
Trigger2
  • Level2
    • Events
      • Player - Player 1 (Red) types a chat message containing -go1 as An exact match
      • Player - Player 2 (Blue) types a chat message containing -go1 as An exact match
      • Player - Player 3 (Teal) types a chat message containing -go1 as An exact match
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Repair Equal to 0
        • Then - Actions
          • Floating Text - Destroy (Last created floating text)
          • Floating Text - Create floating text that reads You are on : Level ... at (Center of Floating Text <gen>) with Z offset 0.00, using font size 8.50, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Do nothing
Trigger3
  • Level3
    • Events
      • Player - Player 1 (Red) types a chat message containing -go2 as An exact match
      • Player - Player 2 (Blue) types a chat message containing -go2 as An exact match
      • Player - Player 3 (Teal) types a chat message containing -go2 as An exact match
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Repair Equal to 1
        • Then - Actions
          • Floating Text - Destroy (Last created floating text)
          • Floating Text - Create floating text that reads You are on : Level ... at (Center of Floating Text <gen>) with Z offset 0.00, using font size 8.50, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Do nothing
Trigger4
  • Level4
    • Events
      • Player - Player 1 (Red) types a chat message containing -go3 as An exact match
      • Player - Player 2 (Blue) types a chat message containing -go3 as An exact match
      • Player - Player 3 (Teal) types a chat message containing -go3 as An exact match
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Repair Equal to 2
        • Then - Actions
          • Floating Text - Destroy (Last created floating text)
          • Floating Text - Create floating text that reads You are on : Level ... at (Center of Floating Text <gen>) with Z offset 0.00, using font size 8.50, color (100.00%, 100.00%, 100.00%), and 30.00% transparency
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Do nothing

And the second,third and fourth triggers repeat 40 times at all for all levels. The 'Repair' variable makes impossible the player to type '-go1' instead of '-go2' (that's how my creeps spawn - '-go1' for level 1 , '-go2' for level 2...). The problem is that when i wait about 1 min the floating text slowy dissapears and becomes invisible i don't want that. if you give me answer - +rep for all of you guys! THANK YOU!!! :thumbs_up:
 
Level 11
Joined
Aug 6, 2009
Messages
697
Problem solved.
  • Events
    • Map initialization
  • Conditions
  • Actions
    • Floating Text - Create floating text that reads You are on level (#) at (Center of (Playable map area)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
    • Floating Text - Change (Last created floating text): Enable permanence
 
CoLd Bon3 Remove DO NOTHING from your triggers actions!
There is no need to call another function that don't do nothing!

You are completely right, although i havent done this in my help map, i should. However it's not realy needed because those triggs don't do anything exapt creating one text...

Removing 'do nothing' is recomended.
 
Do nothing does nothing but decrease the efficiency of a spell.

The only reason Blizzard added this Do nothing action is due to the presence of the single lined if/then/else action and the need to fill in the "else" part with it in case there are no suitable actions. So to avoid using the Do nothing, avoid using the single lined if/then/else action.
 
Status
Not open for further replies.
Top