• 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.

Countdown and Condition of Victory

Status
Not open for further replies.
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 25
Joined
Feb 9, 2009
Messages
1,800
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