Latest revision |
Your text |
Line 1: |
Line 1: |
| [[File:Timers.png|thumb|Both timer templates shown above]] | | [[File:Timers.png|thumb|Both timer templates shown above]] |
| Two 15 minute timer templates that will fail the wave once reaching zero. One is text based while the other utilizes the Halloween boss health bar. Instructions on how to change the countdown time can be found in the template files listed below. | | Two timer templates that can be added to any potato mission. One is text based while the other utilizes the Halloween boss health bar. Both templates can be imported into your mission by using |
|
| |
|
| == How to use == | | == How to use == |
| Both timers are simple to use and can be added into any mission running on our servers.
| | The text-based timer is simple to change and |
| | |
| === Text-Based Timer ===
| |
| | |
| # Add the template to your mission by adding <code>#base reverse_timer_text_v2_simple.pop</code> to the top of your popfile
| |
| #Add this block to WaveSchedule, same place as StartingCurrency<syntaxhighlight lang="javascript">
| |
| PointTemplates
| |
| {
| |
| texttimerv2_setup
| |
| {
| |
| OnSpawnOutput
| |
| {
| |
| Target timerdisplay
| |
| Action runscriptcode
| |
| Param "timer(10,00,0.7,0.9,`0 255 255`)" // timer(minutes,seconds,xpos,ypos,`color`)
| |
| }
| |
| }
| |
| }
| |
| SpawnTemplate texttimerv2_setup [$SIGSEGV]
| |
| </syntaxhighlight>
| |
| # Change the Param if needed for time duration, the timer's position on the hud, and the timer text's color
| |
| Trigger <code>timerpause</code> using a WaveSpawn output such as FirstSpawnOutput to pause or unpause the timer
| |
| | |
| Send a <code>SetValue</code> input on <code>addtime</code> to add or remove time from the current timer (e.g. SetValue 120 with a time 3:25 becomes 5:25)
| |
| | |
| Send a <code>SetValue</code> input on <code>settime</code> to set the desired time (e.g SetValue 600 with a time 3:25 becomes 10:00)
| |
| | |
| === Boss Bar Timer ===
| |
| | |
| # Add the template to your mission by adding <code>#base reverse_timer.pop</code> to the top of your popfile
| |
| # Add <code>SpawnTemplate "timertest" [$SIGSEGV]</code> to WaveSchedule, same place as StartingCurrency
| |
| # Trigger <code>showtimer</code> using a WaveSpawn output such as FirstSpawnOutput to display the bar on the HUD
| |
| # Trigger <code>timer_relay</code> to begin the countdown
| |
| # Send the <code>CancelPending</code> input to <code>timer_relay</code> instead of <code>Trigger</code> to pause the timer, it can be restarted by re-triggering
| |
| | |
| ''Boss bar limitations:''
| |
| | |
| # <small>Only one Tank/Chief boss bar can be present at once without overlapping</small>
| |
| # <small>Overrides Halloween boss bar, meaning a Halloween boss cannot be used alongside this</small>
| |
| # <small>Size of the bar cannot be changed, only the rate it decreases</small>
| |
| | |
| == Templates ==
| |
| Text based timer: https://testing.potato.tf/tf/scripts/population/reverse_timer_text_v2_simple.pop
| |
| | |
| Boss bar timer: https://testing.potato.tf/tf/scripts/population/reverse_timer.pop
| |