Editing Timers

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

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
Please note that all contributions to SigMod are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see SigMod:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)