I'm confused what you want. Why can't you just count down from 60 instead of up from 60? who cares what the game time is anyway.Is there a simple trigger for counting time? to 60 seconds is 1:00:00 then count +1 next ? because i looked it up but i don't understand the timer filter
There's nothing really simple if you want it to look nice. What exactly is a Timer filter? I don't think that's a thing in Warcraft 3. There's Timer variables, which are basically just stopwatches that execute triggers when they expire. Want something to happen every 2.50 seconds? Use a Timer variable. Then there's Timer Window variables, which are what I'm sure you've seen before in the top right corner of the screen. These can be attached to a Timer variable in order to display it's current time as well as a title like "Enemies spawn in X seconds".
Here's some tutorials:
Game Time
Hello, I want to create GAME TIME to my multiboard but I don't now how. Can somebody help me?And not only seconds,but minutes too.www.hiveworkshop.com
Game Timer
Introduction Ever wanted to make a timer for your game that gets the time played in HOURS, MINUTES, SECONDS only using Countdown timers and timer windows? Then this is the tutorial. It's very simple so here we go. Reason for tutorial: Is for ALiEN95's suggested timer. He he he you're the very...www.hiveworkshop.com
They're a bit dated but the methods haven't really changed over the years.Multiboard Counter
Hi, today we'll do a simple Multiboard counter. (difficulty: 2/10) ----------------------------- We need: medium knowledge about variables an existing multiboard three (six) integer variables GUI That's it. ----------------------------- The Set-up: Open your Triggers-Editor, and click on the...www.hiveworkshop.com
If you're on the latest version of Warcraft 3 I would be willing to help you some more.
Edit: I was bored and already made something like this before. See the attached map for a custom game timer which replaces the Upkeep text. The triggers and code are all setup to run automatically without you needing to do anything. However, you do need to Export the three files in the Asset Manager and import them into your map for the system to work. Make sure their file names stay exactly the same! Also, the system doesn't NEED to replace the Upkeep text, you can disable that part of the code as well as move/adjust the clock icon and time text to wherever you'd like.
could create it by multi board ?I'm confused what you want. Why can't you just count down from 60 instead of up from 60? who cares what the game time is anyway.
If i'm understanding you correctly, you want something like this:
init
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Countdown Timer - Start timer_variable as a One-shot timer that will expire in 60.00 seconds
timer expires count minutes
Events
Time - timer_variable expires
Conditions
Actions
Set VariableSet minutes_variable = (minutes_variable + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
minutes_variable Equal to 60
Then - Actions
Set VariableSet minutes_variable = (minutes_variable + 1)
Set VariableSet hours_variable = (hours_variable + 1)
Else - Actions
Game - Display to (All players) for 30.00 seconds the text: (Game Time: + ((String(hours_variable)) + ( hours + ((String(minutes_variable)) + minutes))))
Countdown Timer - Start timer_variable as a One-shot timer that will expire in 60.00 seconds
library GameTimeFrame initializer InitGTF
globals
framehandle gameTimeText = null
framehandle gameTimeIcon = null
string min = "0"
string sec = "0"
string time = "0"
endglobals
function UpdateGameTimeFrame takes nothing returns nothing
set sec = "0"
set min = "0"
if udg_Game_Time_Seconds >= 10 then
set sec = ""
endif
if udg_Game_Time_Minutes >= 10 then
set min = ""
endif
set time = I2S(udg_Game_Time_Hours) + ":" + min + I2S(udg_Game_Time_Minutes) + ":" + sec + I2S(udg_Game_Time_Seconds)
call BlzFrameSetText(gameTimeText, time)
endfunction
function CreateGameTimeFrame takes nothing returns nothing
local framehandle fh = BlzGetFrameByName("ResourceBarUpkeepText", 0)
// Hides the "Upkeep" info in the resource bar
call BlzFrameClearAllPoints(fh)
call BlzFrameSetAbsPoint(fh, FRAMEPOINT_CENTER, 3, 3)
call BlzFrameSetScale(fh, 0.001)
set gameTimeIcon = BlzCreateSimpleFrame("GTFTexture", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0)
call BlzFrameSetTexture(BlzGetFrameByName("GTFTextureValue", 0), "GTFIcon.dds", 0, true)
call BlzFrameSetAbsPoint(gameTimeIcon, FRAMEPOINT_CENTER, 0.73, 0.589)
call BlzFrameSetSize(gameTimeIcon, 0.018, 0.018)
call BlzFrameSetLevel(gameTimeIcon, 1)
set gameTimeText = BlzCreateFrame("GTFText", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0)
call BlzFrameSetAbsPoint(gameTimeText, FRAMEPOINT_CENTER, 0.775, 0.589)
call BlzFrameSetText(gameTimeText, "0:00:00")
call BlzFrameSetLevel(gameTimeText, 1)
set fh = null
endfunction
function InitGTF takes nothing returns nothing
call BlzLoadTOCFile("war3mapimported\\GTF.toc")
call CreateGameTimeFrame()
endfunction
endlibrary