-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
For maps with timers and wave these seem vital:
- CreateTimer
- StartTimerBJ
- PauseTimerBJ
- TimerGetRemaining
- TimerGetElapsed
- TriggerRegisterTimerExpireEventBJ
- CreateTimerDialogBJ
- TimerDialogDisplayBJ
- TimerDialogSetTitleBJ
Edit: It’s of course about https://www.hiveworkshop.com/threads/simple-tower-defense-v3.80868/ like always.
I got a workaround to show lives and waves via messages. But I don’t see a good way to replace the count down.
diff -C3 war3map{_ori,}.j
*** war3map_ori.j 2007-09-05 03:07:12.000000000 +0200
--- war3map.j 2025-11-22 05:00:59.290629599 +0100
***************
*** 1040,1049 ****
--- 1040,1054 ----
return true
endfunction
+ function PlayerStatPrint takes nothing returns nothing
+ call DisplayTimedTextToPlayer( GetEnumPlayer(), 0, 0, 3, "Wave " + I2S(udg_Waves) + "... (" + udg_LivesInteger[GetConvertedPlayerId(GetEnumPlayer())] + " Lives)" )
+ endfunction
+
function Trig_TimerLimit_and_Spawn_Actions takes nothing returns nothing
call TimerDialogSetTitleBJ( udg_CreepSpawnTimerWindow, ( "Wave " + I2S(udg_Waves) ) )
call ForForce( udg_PlayerPlayers, function Trig_TimerLimit_and_Spawn_Func002A )
call TriggerSleepAction( 2 )
+ call ForForce( udg_PlayerPlayers, function PlayerStatPrint )
loop
exitwhen ( Trig_TimerLimit_and_Spawn_Func004001() )
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL, 0.50))
Edit2: Only the TimerDialog stuff is miss, otherwise it wouldn’t work at all. There seems to already be some core/src/com/etheller/warsmash/viewer5/handlers/w3x/ui/dialog/CTimerDialog.java
Metadata
Metadata
Assignees
Labels
No labels