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

[Solved] I have problem with countdown timer and floating text

Status
Not open for further replies.
Level 6
Joined
Oct 19, 2007
Messages
57
I have problem with countdown timer

Sometimes in my game it's can't destroy floating text and countdown timer.

Run Floating Text
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
xxxx
Then - Actions
Set RoundText = Final Round
Trigger - Run VS <gen> (checking conditions)
Else - Actions
VS
Events
Conditions
Actions
Set Point = (Center of Region 064 <gen>)
Floating Text - Create floating text that reads RoundText at Point with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Set RoundFT = (Last created floating text)
Custom script: call RemoveLocation (udg_Point)
Set Point = (Center of Region 067 <gen>)
Floating Text - Create floating text that reads VS at Point with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Set VSFT = (Last created floating text)
Custom script: call RemoveLocation (udg_Point)
Set Point = (Center of Region 065 <gen>)
Floating Text - Create floating text that reads (Name of LeftsidePlayer) at Point with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Set LeftFT = (Last created floating text)
Custom script: call RemoveLocation (udg_Point)
Set Point = (Center of Region 066 <gen>)
Floating Text - Create floating text that reads (Name of RightsidePlayer) at Point with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Set RightFT = (Last created floating text)
Custom script: call RemoveLocation (udg_Point)
Sound - Play VS <gen>
Cinematic - Disable user control for (All players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - Apply Camera 009 <gen> for (Picked player) over 0.00 seconds
Wait 4.00 seconds
Cinematic - Enable user control for (All players)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
Floating Text - Destroy LeftFT
Floating Text - Destroy RightFT
Floating Text - Destroy RoundFT
Floating Text - Destroy VSFT
Trigger - Run ChooseUnitsTimer <gen> (checking conditions)


and this is countdown timer

Countdown Timer Create
ChooseUnitsTimer
Events
Conditions
Actions
Countdown Timer - Start BuyTimer as a One-shot timer that will expire in 30.00 seconds
Countdown Timer - Create a timer window for BuyTimer with title Choose an units tim...
Set BuyTimerWindow = (Last created timer window)
Countdown Timer - Show BuyTimerWindow
Destroy Countdown Timer
ChooseUnitsExpired
Events
Time - BuyTimer expires
Conditions
Actions
Countdown Timer - Destroy BuyTimerWindow
-
-
-
-

-
-

more of more action below destroy action
Thanks you.
 
Level 8
Joined
Dec 9, 2009
Messages
397
inside your Hidden tags, use the Trigger tags

If your going to destroy it in 4 seconds, why not just use
  • Floating Text - Change the lifespan of (Last created floating text) to 4.00 seconds
 
Status
Not open for further replies.
Top