• 🏆 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!

Countdown and Condition of Victory

Status
Not open for further replies.
Level 24
Joined
Feb 9, 2009
Messages
1,787
Floating text!

Create an initially turned off periodic timer for 1 second with a variable that increases each tick.
the floating text can then reflect the variable and upon reaching the limit run your action, turn off the trigger, and reset the variable to 0!
 
Level 6
Joined
Oct 25, 2018
Messages
108
[QUOTE = "Devalut, post: 3325158, miembro: 165814"] ¡Texto flotante!

Cree un temporizador periódico inicialmente apagado para 1 segundo con una variable que incremente cada tic.
el texto flotante puede reflejar la variable y, al alcanzar el límite, ejecute su acción, desactive el disparador y restablezca la variable a 0! [/ QUOTE]
¿Hay algún ejemplo o esquema para poder guiarme? :/
 
Level 24
Joined
Feb 9, 2009
Messages
1,787
Publicaré un ejemplo, pero me quedo con el inglés. Si no te importa, ¡el traductor de Google es tedioso!

  • When you want to start your countdown
    • Events - Your event
    • Conditions - Your Conditions
    • Actions
      • Set Countdown_to_thunderdome = 3
      • Trigger - Turn on Countdown to Thunderdome <gen>
  • Countdown to Thunderdome
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set Temp_Loc = (Center of Center of dhundertome <gen>)
      • Floating Text - Create floating text that reads (String(Countdown_to_thunderdome)) at Temp_Loc with Z offset 0.00, using font size 10.00, color (100.00%, 15.00%, 15.00%), and 0.00% transparency
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 0.90 seconds
      • Set Countdown_to_thunderdome = (Countdown_to_thunderdome - 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Countdown_to_thunderdome Equal to 0
        • Then - Actions
          • Floating Text - Create floating text that reads FIGHT at Temp_Loc with Z offset 0.00, using font size 15.00, color (100.00%, 15.00%, 15.00%), and 0.00% transparency
          • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
          • Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
          • Floating Text - Change the fading age of (Last created floating text) to 0.90 seconds
          • Trigger - Turn off (This trigger)
        • Else - Actions
      • Custom script: call RemoveLocation(udg_Temp_Loc)
 
Last edited:
Status
Not open for further replies.
Top