User:Polavux/Technical:Bloons TD 5 (multiplatform)/Weapons: Difference between revisions
No edit summary |
Pymonkibot (talk | contribs) m Text replacement - "[[Category:BMC (mobile)" to "[[Category:BMC (multiplatform)" |
||
| (28 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{TOC | {{horizontal TOC}} | ||
==Base weapon properties== | ==Base weapon properties== | ||
{|class="wikitable sortable" | {|class="wikitable sortable" | ||
| Line 9: | Line 8: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>AllowFiringOnlyOnRoundStart</tt> | ||
|If < | |If <tt>true</tt>, then each round, this weapon's <tt>RemainingAmmo</tt> is refilled to its <tt>TotalAmmo</tt> if this weapon is using the ammo system, and its <tt>CooldownTime</tt> is set to the current round's length, in seconds, divided by this weapon's <tt>TotalAmmo</tt>, ignoring the <tt>CooldownTime</tt> value defined within the weapon file. In Sandbox mode, or if this weapon isn't using the ammo system, <tt>CooldownTime</tt> is set to <tt>0</tt>. | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>false</tt> | ||
|- | |- | ||
|< | |<tt>AnimatesTower</tt> | ||
|Exclusive to ''Bloons TD Battles''. | |Exclusive to ''Bloons TD Battles''. | ||
| | | | ||
| Line 21: | Line 20: | ||
| | | | ||
|- | |- | ||
|< | |<tt>CanFireWithNoTargetsAndRoundInProgress</tt> | ||
|If < | |If <tt>true</tt>, during rounds, this weapon will fire without requiring a valid target. | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>false</tt> | ||
|- | |- | ||
|< | |<tt>CanSelfTargetCamo</tt> | ||
|If < | |If <tt>true</tt>, this weapon can target and hit Camo bloons, even if the tower itself lacks Camo detection. | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>false</tt> | ||
|- | |- | ||
|< | |<tt>CanSpotFromOtherTowers</tt> | ||
|If < | |If <tt>true</tt>, this weapon can target and hit bloons within other towers' range circles, including any Camo bloons within the range circles of towers that can detect Camo, but excluding towers who have <tt>CanSpotForTowers</tt> set to <tt>false.</tt> | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>false</tt> | ||
|- | |- | ||
|< | |<tt>CanTargetUnderground</tt> | ||
|If < | |If <tt>true</tt>, this weapon can target and hit bloons inside of path segments flagged as tunnels, as if they were not in a tunnel. | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>false</tt> | ||
|- | |- | ||
|< | |<tt>CooldownTime</tt> | ||
|An amount of time in seconds. Determines the attack cooldown for attacks, during which the weapon will remain idle even if a target is in range. Determines the ability cooldown for [[Activated Ability|Activated Abilities]]. | |An amount of time in seconds, minimum of 1 frame. Determines the attack cooldown for attacks, during which the weapon will remain idle even if a target is in range. Determines the ability cooldown for [[Activated Ability|Activated Abilities]]. | ||
|Number | |Number | ||
|{{y}} | |{{y}} | ||
|Weapon functionally stops existing | |Weapon functionally stops existing | ||
|- | |- | ||
|< | |<tt>CooldownTimeMultiplier</tt> | ||
| | | | ||
| | | | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>1</tt> | ||
|- | |- | ||
|< | |<tt>CostToFire</tt> | ||
|In ''Bloons Monkey City'', determines the cash cost of using an [[Activated Ability]]. The Premium Tower Order and Boss Ability buttons are hardcoded to treat this as a Bloonstone cost rather than a cash cost. | |In ''Bloons Monkey City'', determines the cash cost of using an [[Activated Ability]]. The Premium Tower Order and Boss Ability buttons are hardcoded to treat this as a Bloonstone cost rather than a cash cost. | ||
| Line 63: | Line 62: | ||
|Number | |Number | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>0</tt> | ||
|- | |- | ||
|< | |<tt>DisabledOnTargetModes</tt> | ||
|The weapon disables itself if the tower's targeting mode is set to any of the targeting modes in this array (i.e. Submerge and Support behavior). | |The weapon disables itself if the tower's targeting mode is set to any of the targeting modes in this array (i.e. Submerge and Support behavior). | ||
|Array of strings | |Array of strings | ||
| Line 71: | Line 70: | ||
|Weapon does not disable based on target mode. | |Weapon does not disable based on target mode. | ||
|- | |- | ||
|< | |<tt>DisableSlotWhenOutOfAmmo</tt> | ||
|If < | |If <tt>true</tt>, this weapon disables itself when its <tt>RemainingAmmo</tt> is at 0. It does not re-enable itself. | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>false</tt> | ||
|- | |- | ||
|< | |<tt>DrawWhenOutOfAmmo</tt> | ||
|If < | |If <tt>true</tt>, this weapon will remain visible when its <tt>RemainingAmmo</tt> is at 0, otherwise it will stop being visible when <tt>RemainingAmmo</tt> is 0, becoming visible again when <tt>RemainingAmmo</tt> is not zero. | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>true</tt> | ||
|- | |- | ||
|< | |<tt>FireDelayTime</tt> | ||
|An amount of time in seconds. Determines the delay between a weapon firing and its tasks executing, during which the weapon will continually update its target. This plus a weapon's < | |An amount of time in seconds, minimum of 1 frame. Determines the delay between a weapon firing and its tasks executing, during which the weapon will continually update its target. This plus a weapon's <tt>CooldownTime</tt> determines its [[attack speed]], as <tt>CooldownTime</tt> will not count down until the <tt>FireDelayTime</tt> has run out. [[Activated Ability|Activated Abilities]] will resume counting down their <tt>CooldownTime</tt> even if the <tt>FireDelayTime</tt> has not yet expired. | ||
|Number | |Number | ||
|{{y}} | |{{y}} | ||
|Weapon functionally stops existing | |Weapon functionally stops existing | ||
|- | |- | ||
|< | |<tt>FireDelayTimeMultiplier</tt> | ||
| | | | ||
| | | | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>1</tt> | ||
|- | |- | ||
|< | |<tt>FiresOnRoundEnd</tt> | ||
| | | | ||
|Boolean | |Boolean | ||
| Line 101: | Line 100: | ||
| | | | ||
|- | |- | ||
|< | |<tt>ForceTargetWeaponOrigin</tt> | ||
|If < | |If <tt>true</tt>, then it forces the weapon to spawn from the target regardless of if <tt>TargetIsWeaponOrigin</tt> is on for the tower. | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>false</tt> | ||
|- | |- | ||
|< | |<tt>ForwardFiring</tt> | ||
| | | | ||
| | | | ||
| Line 113: | Line 112: | ||
| | | | ||
|- | |- | ||
|< | |<tt>InterestMultiplier</tt> | ||
| | | | ||
|Number | |Number | ||
| Line 119: | Line 118: | ||
| | | | ||
|- | |- | ||
|< | |<tt>ManuallyFired</tt> | ||
|If < | |If <tt>true</tt>, this weapon is treated as an [[Activated Ability]]. | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>false</tt> | ||
|- | |- | ||
|< | |<tt>MaxMoney</tt> | ||
| | | | ||
|Number | |Number | ||
| Line 131: | Line 130: | ||
| | | | ||
|- | |- | ||
|< | |<tt>MaxShots</tt> | ||
| | | | ||
|Number | |Number | ||
| Line 137: | Line 136: | ||
| | | | ||
|- | |- | ||
|< | |<tt>NumberOfRoundsBetweenShots</tt> | ||
| | | | ||
|Number | |Number | ||
| Line 143: | Line 142: | ||
| | | | ||
|- | |- | ||
|< | |<tt>ReloadOnRoundStart</tt> | ||
|Exclusive to ''Bloons TD Battles''. | |Exclusive to ''Bloons TD Battles''. | ||
| | | | ||
| Line 149: | Line 148: | ||
| | | | ||
|- | |- | ||
|< | |<tt>RemainingAmmo</tt> | ||
| | | | ||
|Number | |Number | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>0</tt> | ||
|- | |- | ||
|< | |<tt>RequiresTargetToFire</tt> | ||
|If < | |If <tt>true</tt>, this weapon can only fire if it has a valid target. | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>true</tt> | ||
|- | |- | ||
|< | |<tt>SelfTargetMode</tt> | ||
|Locks this weapon to the defined targeting priority, ignoring the targeting priority of its tower. | |Locks this weapon to the defined targeting priority, ignoring the targeting priority of its tower. | ||
|String | |String | ||
| Line 167: | Line 166: | ||
|The weapon uses its tower's targeting priority. | |The weapon uses its tower's targeting priority. | ||
|- | |- | ||
|< | |<tt>ShowRange</tt> | ||
|If < | |If <tt>false</tt>, this weapon will not draw a range circle. <tt>CanSpotFromOtherTowers</tt>-enabled weapons possessed by other towers will not be able to target bloons using this weapon's range. Otherwise, this is just visual. | ||
[[Activated Ability|Activated Abilities]] are unaffected by this property. | [[Activated Ability|Activated Abilities]] are unaffected by this property. | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>true</tt> | ||
|- | |- | ||
|< | |<tt>SpreadCooldownOverRound</tt> | ||
|Exclusive to ''Bloons TD Battles''. | |Exclusive to ''Bloons TD Battles''. | ||
| | | | ||
| Line 180: | Line 179: | ||
| | | | ||
|- | |- | ||
|< | |<tt>StartsOnCooldown</tt> | ||
| | | | ||
|Boolean | |Boolean | ||
| Line 186: | Line 185: | ||
| | | | ||
|- | |- | ||
|< | |<tt>TargetingArc</tt> | ||
| | | | ||
| | | | ||
| Line 192: | Line 191: | ||
| | | | ||
|- | |- | ||
|< | |<tt>TargetingFilter</tt> | ||
| | | | ||
| | | | ||
| Line 198: | Line 197: | ||
| | | | ||
|- | |- | ||
|< | |<tt>TargetRange</tt> | ||
| | | | ||
|Number | |Number | ||
| Line 204: | Line 203: | ||
| | | | ||
|- | |- | ||
|< | |<tt>TargetsIndependently</tt> | ||
| | | | ||
|Boolean | |Boolean | ||
| Line 210: | Line 209: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
|A list of tasks the weapon executes each time it fires. | |A list of tasks the weapon executes each time it fires. | ||
|Array of objects | |Array of objects | ||
| Line 216: | Line 215: | ||
|Weapon functionally stops existing | |Weapon functionally stops existing | ||
|- | |- | ||
|< | |<tt>TotalAmmo</tt> | ||
| | | | ||
|Number | |Number | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>0</tt> | ||
|- | |- | ||
|< | |<tt>Type</tt> | ||
| | | | ||
|String | |String | ||
| Line 228: | Line 227: | ||
| | | | ||
|- | |- | ||
|< | |<tt>UseBloonStore</tt> | ||
| | | | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>false</tt> | ||
|} | |} | ||
== Tasks == | == Tasks == | ||
A < | A <tt>Task</tt> is a process that executes when a weapon fires. An array of tasks is executed in its array order, lowest index first. Some tasks, such as <tt>Projectile</tt>, <tt>AreaOfEffect</tt>, and <tt>Effect</tt> tasks, can also have tasks, which are referred to as "sub-tasks" and execute under different conditions. The <tt>Type</tt> of a task determines what the task is and what parameters it allows. | ||
===AddCashMult=== | ===AddCashMult=== | ||
| Line 252: | Line 251: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>CanHitLead</tt> | ||
| | |Determines if an AoE can hit Lead bloons or not. | ||
|Boolean | |Boolean | ||
| | |{{n}} | ||
| | |Defaults to <tt>true</tt> | ||
|- | |- | ||
|< | |<tt>DisabledTasks</tt> | ||
| | | | ||
|Array of numbers | |Array of numbers | ||
| Line 264: | Line 263: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Duration</tt> | ||
| | | | ||
|Number | |Number | ||
| Line 270: | Line 269: | ||
| | | | ||
|- | |- | ||
|< | |<tt>MaxTargets</tt> | ||
|The pierce of the area of effect. One pierce is consumed per collision. | |The pierce of the area of effect. One pierce is consumed per collision. | ||
|Number | |Number | ||
| Line 276: | Line 275: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Range</tt> | ||
|The radius of the area of effect. | |The radius of the area of effect. | ||
|Number | |Number | ||
| Line 282: | Line 281: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Sort</tt> | ||
| | | | ||
| | | | ||
| Line 288: | Line 287: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
|A list of tasks the area of effect executes on each Bloon it hits. | |A list of tasks the area of effect executes on each Bloon it hits. | ||
|Array of objects | |Array of objects | ||
| Line 294: | Line 293: | ||
| | | | ||
|- | |- | ||
|< | |<tt>UseRangeModifier</tt> | ||
|If < | |If <tt>true</tt>, the range scales with range modifiers. Exclusive to ''Bloons TD Battles''. | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
| Line 312: | Line 311: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>Duration</tt> | ||
|How long the event lasts for. | |How long the event lasts for. | ||
|Number | |Number | ||
| Line 318: | Line 317: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
| | | | ||
|Array of objects | |Array of objects | ||
| Line 335: | Line 334: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>CutOffDistance</tt> | ||
| | | | ||
| | | | ||
| Line 341: | Line 340: | ||
| | | | ||
|- | |- | ||
|< | |<tt>NumJumps</tt> | ||
| | |How times a branch of lightning will bounce. | ||
| | |Number | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>NumPersists</tt> | ||
| | | | ||
|Number | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
| | | | ||
| | | | ||
| Line 368: | Line 367: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>ToDisable</tt> | ||
| | | | ||
|Array of numbers | |Array of numbers | ||
| Line 374: | Line 373: | ||
| | | | ||
|- | |- | ||
|< | |<tt>ToEnable</tt> | ||
| | | | ||
|Array of numbers | |Array of numbers | ||
| Line 389: | Line 388: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>Area</tt> | ||
|Defines the area as a rectangle. The first number determines the width, the second number determines the height. | |Defines the area as a rectangle. The first number determines the width, the second number determines the height. | ||
|Array of numbers | |Array of numbers | ||
| Line 395: | Line 394: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Mask</tt> | ||
|Determines the kind(s) of terrain this area is treated as. If empty, this is treated as land (i.e. Pontoon behavior). | |Determines the kind(s) of terrain this area is treated as. If empty, this is treated as land (i.e. Pontoon behavior). | ||
*< | *<tt>"Water"</tt> | ||
*< | *<tt>"BlockTower"</tt> (unused) | ||
*< | *<tt>"PathTower"</tt> (unused) | ||
|Array of strings | |Array of strings | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>Radius</tt> | ||
|Defines the area as a circle. The value determines the radius. | |Defines the area as a circle. The value determines the radius. | ||
|Number | |Number | ||
| Line 419: | Line 418: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>AutoCollect</tt> | ||
| | | | ||
| | | | ||
| Line 425: | Line 424: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Bank</tt> | ||
| | | | ||
|Boolean | |Boolean | ||
| Line 431: | Line 430: | ||
| | | | ||
|- | |- | ||
|< | |<tt>BonusMultiplierForManualCollection</tt> | ||
| | | | ||
|Number | |Number | ||
| Line 437: | Line 436: | ||
| | | | ||
|- | |- | ||
|< | |<tt>ClickOnly</tt> | ||
| | | | ||
| | | | ||
| Line 443: | Line 442: | ||
| | | | ||
|- | |- | ||
|< | |<tt>CollectionRadius</tt> | ||
|The radius in which the collectable can be collected from. | |The radius in which the collectable can be collected from. | ||
|Number | |Number | ||
| Line 449: | Line 448: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Duration</tt> | ||
|How long the collectable lasts for. | |How long the collectable lasts for. | ||
|Number | |Number | ||
| Line 455: | Line 454: | ||
| | | | ||
|- | |- | ||
|< | |<tt>GivesCashWhenExpired</tt> | ||
| | | | ||
| | | | ||
| Line 461: | Line 460: | ||
| | | | ||
|- | |- | ||
|< | |<tt>GraphicName</tt> | ||
| | | | ||
| | | | ||
| Line 467: | Line 466: | ||
| | | | ||
|- | |- | ||
|< | |<tt>LimitHealth</tt> | ||
| | | | ||
| | | | ||
| Line 473: | Line 472: | ||
| | | | ||
|- | |- | ||
|< | |<tt>LivesMultiplier</tt> | ||
|The multiplier for how many lives are given, the total lives given is <math>\text{Lives Range} \times \text{LivesMultiplier}</math>. | |The multiplier for how many lives are given, the total lives given is <math>\text{Lives Range} \times \text{LivesMultiplier}</math>. | ||
|Number | |Number | ||
| Line 479: | Line 478: | ||
| | | | ||
|- | |- | ||
|< | |<tt>LivesRange</tt> | ||
|The minimum and maximum number of lives the collectable at base gives. | |The minimum and maximum number of lives the collectable at base gives. | ||
|Array of numbers | |Array of numbers | ||
| Line 485: | Line 484: | ||
| | | | ||
|- | |- | ||
|< | |<tt>LoopAnimation</tt> | ||
| | | | ||
| | | | ||
| Line 491: | Line 490: | ||
| | | | ||
|- | |- | ||
|< | |<tt>MoneyMultiplier</tt> | ||
|The multiplier for how much cash is given, the total cash given is <math>\text{Money Range} \times \text{MoneyMultiplier}</math>. | |The multiplier for how much cash is given, the total cash given is <math>\text{Money Range} \times \text{MoneyMultiplier}</math>. | ||
|Number | |Number | ||
| Line 497: | Line 496: | ||
| | | | ||
|- | |- | ||
|< | |<tt>MoneyRange</tt> | ||
|The minimum and maximum number of cash the collectable at base gives. | |The minimum and maximum number of cash the collectable at base gives. | ||
|Array of numbers | |Array of numbers | ||
| Line 503: | Line 502: | ||
| | | | ||
|- | |- | ||
|< | |<tt>MoneyRangeIncreasePerRound</tt> | ||
| | | | ||
| | | | ||
| Line 509: | Line 508: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Movement</tt> | ||
|The [[#Movement|movement]] of the collectable. | |The [[#Movement|movement]] of the collectable. | ||
|Object | |Object | ||
| Line 515: | Line 514: | ||
| | | | ||
|- | |- | ||
|< | |<tt>SpriteFile</tt> | ||
| | | | ||
| | | | ||
| Line 521: | Line 520: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
| | | | ||
| | | | ||
| Line 537: | Line 536: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>AnimateOnCollection</tt> | ||
| | | | ||
|Boolean | |Boolean | ||
| Line 543: | Line 542: | ||
| | | | ||
|- | |- | ||
|< | |<tt>CollectionDelay</tt> | ||
| | | | ||
|Number | |Number | ||
| Line 549: | Line 548: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Range</tt> | ||
| | | | ||
|Number | |Number | ||
| Line 555: | Line 554: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Speed</tt> | ||
| | | | ||
|Number | |Number | ||
| Line 565: | Line 564: | ||
===CreateTower=== | ===CreateTower=== | ||
Creates a tower. | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
!Key | !Key | ||
| Line 575: | Line 572: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>TowerType</tt> | ||
|The | |The type of tower that is being created. | ||
|String | |||
|{{y}} | |||
|Creates an invalid tower | |||
|- | |||
|<tt>TowerLifetime</tt> | |||
|How long the created tower lasts. | |||
|Number | |Number | ||
| | |{{n}} | ||
| | |The created tower lasts infinitely | ||
|- | |||
|<tt>TowerColour</tt> | |||
|Applies a RGBA multiply colour on top of the created tower. First number controls the red channel, second controls the green channel, third controls the blue channel, the fourth is suppose to control the alpha channel but it doesn't work. | |||
|Array of Numbers | |||
|{{n}} | |||
|Defaults to <tt>[ 255, 255, 255, 255 ]</tt> | |||
|- | |- | ||
|< | |<tt>HasParentTower</tt> | ||
| | |Determines if the created tower also gets destroyed if its "parent" tower get sold. | ||
|Boolean | |||
|{{n}} | |||
|Defaults to <tt>false</tt> | |||
|- | |- | ||
|< | |<tt>UseParentTowerUpgradeLevel</tt> | ||
| | |Determines whether the created tower should copy the upgrade layout from the 'parent' tower that created it. | ||
| | |Boolean | ||
| | |{{n}} | ||
| | |Defaults to <tt>false</tt> | ||
|} | |} | ||
=== | ===Damage=== | ||
Deals damage to Bloons. For weapons, this deals damage to its target directly (i.e. Sniper Monkey behavior). For tasks that collide with Bloons (projectiles, areas of effect, etc), this deals damage on collision. | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
!Key | !Key | ||
| Line 611: | Line 612: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>Amount</tt> | ||
| | |The amount of damage dealt. (If this weapon/projectile's task list does not have a <tt>MultiLayerDamage</tt> status below it, the damage will not pass through layers.) | ||
|Number | |Number | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>BlimpModifier</tt> | ||
| | |Exclusive to ''Bloons Monkey City''. | ||
| | |Number | ||
| | |{{n}} | ||
| | |Defaults to <tt>1</tt> | ||
|- | |||
|<tt>BossDamageMod</tt> | |||
|Excluded from ''Bloons TD Battles''. | |||
|Number | |||
|{{n}} | |||
|Defaults to <tt>1</tt> | |||
|- | |- | ||
|< | |<tt>CeramicModifier</tt> | ||
| | |Exclusive to ''Bloons Monkey City''. | ||
|Number | |Number | ||
|{{n}} | |||
|Defaults to <tt>1</tt> | |||
|- | |||
|<tt>DamageType</tt> | |||
|Bloons with a matching string in their <tt>DamageImmunity</tt> property will not take damage. Some damage types have hardcoded properties. | |||
*<tt>"Piercing"</tt>: The projectile that dealt this damage plays a sound and terminates when it hits a Lead or frozen bloon. | |||
*<tt>"Fire"</tt>: The projectile that dealt this damage plays a sound and terminates when it hits a Lead bloon. | |||
*<tt>"Explosive"</tt> | |||
*<tt>"Plasma"</tt> | |||
*<tt>"Ice"</tt> | |||
*<tt>"Juggernaut"</tt> | |||
*<tt>"MOABMauler"</tt> | |||
*<tt>"Foam"</tt> | |||
*<tt>"IceViral"</tt>: Exclusive to ''Bloons TD Battles''. | |||
|String | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>InformDamageFromParentTask</tt> | ||
| | | | ||
| | | | ||
|{{n}} | |||
| | | | ||
|} | |} | ||
=== | ===DamageSpread=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
!Key | !Key | ||
| Line 646: | Line 666: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>Amount</tt> | ||
| | | | ||
|Number | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>BlimpModifier</tt> | ||
| | |Exclusive to ''Bloons Monkey City''. | ||
| | |Number | ||
| | |{{n}} | ||
| | |Defaults to <tt>1</tt> | ||
|- | |- | ||
|< | |<tt>BossDamageMod</tt> | ||
| | |Excluded from ''Bloons TD Battles''. | ||
| | |Number | ||
| | |{{n}} | ||
| | |Defaults to <tt>1</tt> | ||
|- | |- | ||
|< | |<tt>CeramicModifier</tt> | ||
| | |Exclusive to ''Bloons Monkey City''. | ||
| | |Number | ||
| | |{{n}} | ||
| | |Defaults to <tt>1</tt> | ||
|- | |- | ||
|< | |<tt>DamageType</tt> | ||
| | | | ||
|String | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>MaxTargets</tt> | ||
| | | | ||
|Number | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>Range</tt> | ||
| | | | ||
|Number | |||
| | | | ||
| | | | ||
|} | |||
===DisableUIFeature=== | |||
===Effect=== | |||
{| class="wikitable sortable" | |||
!Key | |||
!Description | |||
!Type | |||
!Required? | |||
!Behavior when absent | |||
|- | |- | ||
|< | |<tt>AppliedToTower</tt> | ||
| | | | ||
| | | | ||
| Line 694: | Line 725: | ||
| | | | ||
|- | |- | ||
|< | |<tt>ApplyLinearDodge</tt> | ||
| | | | ||
| | | | ||
| Line 700: | Line 731: | ||
| | | | ||
|- | |- | ||
|< | |<tt>ApplyToTarget</tt> | ||
| | | | ||
| | | | ||
| Line 706: | Line 737: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Audio</tt> | ||
| | | | ||
| | | | ||
| Line 712: | Line 743: | ||
| | | | ||
|- | |- | ||
|< | |<tt>DrawLayer</tt> | ||
| | | | ||
| | | | ||
| Line 718: | Line 749: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Duration</tt> | ||
| | | | ||
| | | | ||
| Line 724: | Line 755: | ||
| | | | ||
|- | |- | ||
|< | |<tt>FlipLeft</tt> | ||
| | | | ||
| | | | ||
| Line 730: | Line 761: | ||
| | | | ||
|- | |- | ||
|< | |<tt>FlipRight</tt> | ||
| | | | ||
| | | | ||
| Line 736: | Line 767: | ||
| | | | ||
|- | |- | ||
|< | |<tt>FollowTarget</tt> | ||
| | | | ||
| | | | ||
| Line 742: | Line 773: | ||
| | | | ||
|- | |- | ||
|< | |<tt>IgnoreAircraft</tt> | ||
| | | | ||
| | | | ||
| Line 748: | Line 779: | ||
| | | | ||
|- | |- | ||
|< | |<tt>LinkScaleWithAreaOfEffectRange</tt> | ||
| | | | ||
| | | | ||
| Line 754: | Line 785: | ||
| | | | ||
|- | |- | ||
|< | |<tt>LoopCount</tt> | ||
| | | | ||
| | | | ||
| Line 760: | Line 791: | ||
| | | | ||
|- | |- | ||
|< | |<tt>LoopForever</tt> | ||
| | | | ||
| | | | ||
| Line 766: | Line 797: | ||
| | | | ||
|- | |- | ||
|< | |<tt>PlaySpeed</tt> | ||
| | | | ||
| | | | ||
| Line 772: | Line 803: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Position</tt> | ||
| | | | ||
| | | | ||
| Line 778: | Line 809: | ||
| | | | ||
|- | |- | ||
|< | |<tt>PositionLeft</tt> | ||
| | | | ||
| | | | ||
| Line 784: | Line 815: | ||
| | | | ||
|- | |- | ||
|< | |<tt>PositionRight</tt> | ||
| | |||
| | |||
| | |||
| | |||
|- | |||
|<tt>RoundDuration</tt> | |||
| | |||
| | |||
| | |||
| | |||
|- | |||
|<tt>Scale</tt> | |||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>SpriteFile</tt> | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
| | | | ||
| | | | ||
| | |||
| | | | ||
|- | |||
|<tt>TerminateWithParent</tt> | |||
|- | |||
|< | |||
| | | | ||
| | | | ||
| Line 846: | Line 851: | ||
| | | | ||
|- | |- | ||
|< | |<tt>UseDirection</tt> | ||
| | | | ||
| | | | ||
| Line 852: | Line 857: | ||
| | | | ||
|- | |- | ||
|< | |<tt>UseDuration</tt> | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|} | |||
===EnableWeaponSlot=== | |||
{| class="wikitable sortable" | |||
!Key | |||
!Description | |||
!Type | |||
!Required? | |||
!Behavior when absent | |||
|- | |- | ||
|< | |<tt>Slot</tt> | ||
| | | | ||
|Number | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>Enable</tt> | ||
| | |Whether to enable/disable slot | ||
| | |String | ||
| | |{{n}} | ||
| | |Defaults to <tt>true</tt> | ||
|} | |||
| | ===FireOverTime=== | ||
| | |||
| | ===FireTaskAtLocation=== | ||
Unused. Properties are unknown, and the task existing in a weapon file causes the game to crash on the title screen as if an essential task property were missing from it, confirming that the task is valid in some form. | |||
|- | |||
|< | ===ForceSellTower=== | ||
===GiveCashForLeaks=== | |||
===GrantCashPerPop=== | |||
Causes all Bloons to generate cash per layer popped for a limited time. This is exclusive to ''Bloons TD Battles'' and is only used by [[Rubber to Gold (Battles)|Rubber to Gold]] and [[Bounty]]. | |||
{| class="wikitable sortable" | |||
!Key | |||
!Description | |||
!Type | |||
!Required? | |||
!Behavior when absent | |||
|- | |||
|<tt>Amount</tt> | |||
|The amount of cash generated per pop. Has a hardcoded cap of $50,000 per activation. | |||
|Number | |||
| | | | ||
| | | | ||
|- | |||
|<tt>Duration</tt> | |||
|The duration, in seconds. | |||
|Number | |||
| | | | ||
| | | | ||
|} | |} | ||
=== | ===Harpoon=== | ||
===IncomeChange=== | |||
===IncomeOverTime=== | |||
===IncomeTax=== | |||
=== | ===LaunchAircraft=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
!Key | !Key | ||
| Line 894: | Line 932: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>Aircraft</tt> | ||
|The aircraft that will be launched. | |||
|String | |||
| | | | ||
| | |||
|- | |||
|<tt>MaxAircraft</tt> | |||
|How many will be launched. | |||
|Number | |||
|{{n}} | |||
|Defaults to <tt>1</tt> | |||
|- | |||
|<tt>Path</tt> | |||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>Path</tt> | ||
| | | | ||
| | | | ||
| Line 924: | Line 956: | ||
| | | | ||
|- | |- | ||
|< | |<tt>PathIndex</tt> | ||
|The | |The Flight Path the aircraft will use. | ||
* <tt>0</tt> = Figure 8 | |||
* <tt>1</tt> = Figure ∞ | |||
* <tt>2</tt> = Circle | |||
|Number | |Number | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>PathOrigin</tt> | ||
| | |Defines the location of the origin of the path the aircraft will fly in. The first number controls the X coordinate, the second number controls the Y coordinate. | ||
|Array of numbers | |||
| | |||
|{{n}} | |{{n}} | ||
| | | | ||
|- | |- | ||
|< | |<tt>UseTargetPath</tt> | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
| | |} | ||
===MoneyChange=== | |||
=== | === MultiFire === | ||
Used to shoot more than 1 projectile. All angles are in degrees. | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
!Key | !Key | ||
| Line 975: | Line 992: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>AcquireTarget</tt> | ||
| | |||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>AimAtTarget</tt> | ||
|If < | |If <tt>true</tt>, then the angles of the projectiles are offset by the angle of the shot. | ||
|Boolean | |||
| | |||
| | |||
|- | |||
|<tt>AimOffsetsAtTarget</tt> | |||
|Unused; only appears in the unused <tt>RoboMonkey.weapon</tt> file (<tt>RoboMonkeyLeft.weapon</tt> and <tt>RoboMonkeyRight.weapon</tt> are used instead). If <tt>true</tt>, the projectiles are angled towards the target. | |||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>false</tt> | ||
|- | |- | ||
|< | |<tt>AngleIncrement</tt> | ||
| | |The change in angle from the first projectile for all subsequent projectiles. | ||
|Number | |||
| | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>DisabledTasks</tt> | ||
| | |||
| | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>FireCount</tt> | ||
|The number of times each subtask executes when this executes. If set to <tt>0</tt>, this task does not execute any subtasks. | |||
|Number | |||
| | | | ||
| | |||
|- | |||
|<tt>InitialOffset</tt> | |||
|The angle of the "first" projectile. | |||
|Number | |Number | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>MarkIDForProjectiles</tt> | ||
|If true, the | |If <tt>true</tt>, Bloons hit by the MultiFire's parent task cannot be hit by the MultiFire's subtasks. (This is used by Frag Bombs to make it so Bloons hit by the initial bomb (not the explosion) can't also be hit by the frags.) | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
| | | | ||
|- | |- | ||
|< | |<tt>Offsets</tt> | ||
| | |The positional offsets of each projectile. | ||
| | |Array of objects | ||
| | |{{n}} | ||
| | | | ||
|- | |- | ||
|< | |<tt>Radius</tt> | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>ShotDelay</tt> | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
|A list of tasks to execute when this task executes. | |||
|Array of objects | |||
| | | | ||
| | | | ||
| | |} | ||
| | |||
===OverclockTask=== | |||
{| class="wikitable sortable" | |||
!Key | |||
!Description | |||
!Type | |||
!Required? | |||
!Behavior when absent | |||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
| | | | ||
|Array of objects | |||
| | | | ||
| | | | ||
|} | |||
===ParticleEffect=== | |||
===PlayerDamage=== | |||
=== Projectile === | |||
{| class="wikitable sortable" | |||
!Key | |||
!Description | |||
!Type | |||
!Required? | |||
!Behavior when absent | |||
|- | |- | ||
|< | |<tt>CollidesOnlyWithTarget</tt> | ||
|If <tt>true</tt>, this projectile will pass through any Bloons that are not the target. | |||
|Boolean | |||
|{{n}} | |||
|Defaults to <tt>false</tt> | |||
|- | |||
|<tt>CollisionType</tt> | |||
|Determines how the projectile handles collision with Bloons. | |||
*<tt>"Once"</tt>: can only collide with the same Bloon or its children once. | |||
*<tt>"Continual"</tt>: can collide with any Bloon once per frame, even ones it has already hit. | |||
*<tt>"None"</tt>: cannot collide with Bloons. | |||
|String | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>DisabledTasks</tt> | ||
| | | | ||
|Array of numbers | |||
|{{n}} | |{{n}} | ||
| | | | ||
|- | |- | ||
|< | |<tt>DrawLayer</tt> | ||
| | | | ||
|Number | |||
|{{n}} | |||
| | | | ||
|- | |- | ||
|< | |<tt>ForcePersists</tt> | ||
| | |If true, the projectile's pierce is unaffected by pierce modifiers. | ||
| | |Boolean | ||
|{{n}} | |||
|Defaults to <tt>false</tt> | |||
|- | |||
|<tt>GraphicName</tt> | |||
| | |||
|String | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>GraphicsAtPierceLevels</tt> | ||
| | |||
| | | | ||
|{{n}} | |{{n}} | ||
| | | | ||
|- | |- | ||
|< | |<tt>HasFixedAngle</tt> | ||
| | | | ||
| | |Boolean | ||
|{{n}} | |{{n}} | ||
| | |Defaults to <tt>false</tt> | ||
|- | |- | ||
|< | |<tt>HasLimitedDuration</tt> | ||
| | | | ||
|Boolean | |||
|{{n}} | |{{n}} | ||
| | | | ||
|- | |- | ||
|< | |<tt>HasRandomOrientation</tt> | ||
| | | | ||
|Boolean | |Boolean | ||
| Line 1,117: | Line 1,155: | ||
| | | | ||
|- | |- | ||
|< | |<tt>IgnoreStatusEffect</tt> | ||
| | | | ||
| | | | ||
| Line 1,123: | Line 1,161: | ||
| | | | ||
|- | |- | ||
|< | |<tt>LimitedDuration</tt> | ||
| | | | ||
| | | | ||
|{{n}} | |||
| | | | ||
|- | |- | ||
|< | |<tt>LoopAnimation</tt> | ||
| | | | ||
| | | | ||
| Line 1,135: | Line 1,173: | ||
| | | | ||
|- | |- | ||
|< | |<tt>LoopForever</tt> | ||
| | | | ||
| | |||
|{{n}} | |||
| | | | ||
|- | |- | ||
|< | |<tt>Movement</tt> | ||
|The [[#Movement|movement]] of the projectile. | |||
|Object | |||
| | | | ||
| | | | ||
|- | |||
|<tt>NumPersists</tt> | |||
|The pierce of the projectile. One pierce is consumed per collision. | |||
|Number | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>OnlyCollidePastCutOff</tt> | ||
| | | | ||
|Boolean | |||
|{{n}} | |||
| | | | ||
|- | |||
|<tt>Radius</tt> | |||
| | | | ||
|Number | |||
|{{n}} | |||
|Uses the sprite's bounding box as a collision box | |||
|- | |||
|<tt>RemoveAfterRoundStart</tt> | |||
| | | | ||
| | | | ||
|{{n}} | |||
| | | | ||
|- | |- | ||
|< | |<tt>RemoveOnRoundEnd</tt> | ||
| | | | ||
|Boolean | |Boolean | ||
| | |{{n}} | ||
| | | | ||
|- | |- | ||
|< | |<tt>SpinRate</tt> | ||
| | | | ||
| | | | ||
|{{n}} | |||
| | | | ||
|- | |||
|<tt>SpriteFile</tt> | |||
| | | | ||
| | |String | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>StopAtEndOfCurves</tt> | ||
| | | | ||
| | | | ||
|{{n}} | |||
| | | | ||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
|A list of tasks. <tt>TasksToProcessOnCollision</tt> and <tt>TasksToProcessOnTerminate</tt> determine which tasks execute on collision and which tasks execute when the projectile expires. | |||
|Array of objects | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>TasksToProcessOnCollision</tt> | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>TasksToProcessOnTerminate</tt> | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>TerminateOnTowerRemoved</tt> | ||
| | |If <tt>true</tt>, the projectile expires when the tower that fired it is destroyed. | ||
|Boolean | |Boolean | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>TerminateOnZeroPersists</tt> | ||
| | |If <tt>true</tt>, the projectile expires when all pierce is consumed. | ||
| | |Boolean | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>TerminatePastCutoff</tt> | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|} | |||
===RandomFire=== | |||
Targets a random point within a specified radius. | |||
|} | |||
=== | |||
{| class="wikitable" | {| class="wikitable" | ||
!Key | !Key | ||
| Line 1,269: | Line 1,279: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>FireFullRange</tt> | ||
| | |If <tt>true</tt>, this can only target points at the full extent of the range. Ignored if <tt>OnlyTargetPathLocations</tt> is set to <tt>true</tt>. | ||
| | |Boolean | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>FollowTarget</tt> | ||
| | | | ||
|Boolean | |||
| | | | ||
| | | | ||
|- | |||
|<tt>HasRandomOrientation</tt> | |||
| | |||
|Boolean | |||
|{{n}} | |||
| | | | ||
|- | |- | ||
|< | |<tt>MinimumRange</tt> | ||
|The | |The minimum targeting radius. | ||
|Number | |Number | ||
| | |{{n}} | ||
| | | | ||
|- | |- | ||
|< | |<tt>OnlyTargetPathLocations</tt> | ||
|If < | |If <tt>true</tt>, this can only target points on a path within range (i.e. Spike Factory behavior). | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>false</tt> | ||
|- | |- | ||
|< | |<tt>OnlyTargetPlacementLocations</tt> | ||
| | | | ||
|Boolean | |||
|{{n}} | |||
|Defaults to <tt>false</tt> | |||
|- | |||
|<tt>PlacementTowerType</tt> | |||
| | | | ||
| | |String | ||
|{{n}} | |{{n}} | ||
| | | | ||
|- | |- | ||
|< | |<tt>Range</tt> | ||
|The maximum targeting radius. | |||
|Number | |||
| | | | ||
| | | | ||
|- | |||
|<tt>TargetIsWeaponTaskOrigin</tt> | |||
| | |||
|Boolean | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
|A list of tasks to execute when this task executes. | |||
|Array of objects | |||
| | |||
| | | | ||
|- | |||
|<tt>TerminateOnZeroPersists</tt> | |||
| | | | ||
| | | | ||
| | |||
| | |||
|- | |||
|<tt>UseRangeModifier</tt> | |||
|If <tt>true</tt>, the targeting range scales with range modifiers. Exclusive to ''Bloons TD Battles''. | |||
|Boolean | |||
|{{n}} | |||
|Defaults to <tt>false</tt> | |||
|- | |||
|<tt>WaitTimeRange</tt> | |||
| | |||
|Array of numbers | |||
|{{n}} | |||
| | | | ||
|} | |} | ||
=== | ===RayIntersect=== | ||
Creates a beam that collides with every Bloon that touches the sprite's bounding box on each frame. | |||
{| class="wikitable | {| class="wikitable" | ||
!Key | !Key | ||
!Description | !Description | ||
| Line 1,357: | Line 1,367: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
| | |A list of tasks the ray executes on each Bloon it touches. | ||
|Array of objects | |Array of objects | ||
| | | | ||
| Line 1,382: | Line 1,374: | ||
|} | |} | ||
=== | ===RBEProjectile=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
!Key | !Key | ||
| Line 1,393: | Line 1,382: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>CollisionType</tt> | ||
| | |Determines how the projectile handles collision with Bloons. | ||
*<tt>"Once"</tt>: can only collide with the same Bloon or its children once. | |||
*<tt>"Continual"</tt>: can collide with any Bloon once per frame, even ones it has already hit. | |||
*<tt>"None"</tt>: cannot collide with Bloons. | |||
|String | |String | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>GraphicName</tt> | ||
| | | | ||
| | |String | ||
| | |||
| | |||
|- | |||
|<tt>MaxRBE</tt> | |||
| | |||
|Number | |||
| | |||
| | |||
|- | |||
|<tt>SpriteFile</tt> | |||
| | |||
|String | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>HasRandomOrientation</tt> | ||
| | | | ||
|Boolean | |||
| | |||
|{{n}} | |{{n}} | ||
| | | | ||
|- | |- | ||
|< | |<tt>NumPersists</tt> | ||
| | |||
|Number | |||
| | |||
| | |||
|- | |||
|<tt>RemoveOnRoundEnd</tt> | |||
| | |||
|Boolean | |||
|{{n}} | |||
| | |||
|- | |||
|<tt>Tasks</tt> | |||
|A list of tasks. <tt>TasksToProcessOnCollision</tt> and <tt>TasksToProcessOnTerminate</tt> determine which tasks execute on collision and which tasks execute when the projectile expires. | |||
|Array of objects | |||
| | |||
| | |||
|- | |||
|<tt>TasksToProcessOnCollision</tt> | |||
| | | | ||
| | | | ||
| | | | ||
|} | | | ||
|- | |||
|<tt>TasksToProcessOnTerminate</tt> | |||
| | |||
| | |||
| | |||
| | |||
|- | |||
|<tt>TerminateOnZeroPersists</tt> | |||
|If <tt>true</tt>, the projectile expires when all pierce is consumed. | |||
|Boolean | |||
| | |||
| | |||
|} | |||
==== | ===RemoveStatusEffect=== | ||
{| class="wikitable" | {| class="wikitable" | ||
!Key | !Key | ||
| Line 1,494: | Line 1,460: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>Status</tt> | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|} | |} | ||
=== | === RestoreAmmo === | ||
Adds ammo to the weapon. | |||
Adds | |||
{| class="wikitable" | {| class="wikitable" | ||
!Key | !Key | ||
| Line 1,540: | Line 1,476: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>Amount</tt> | ||
| | |The amount of ammo to restore to the weapon. | ||
| | |Number | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>Proxied</tt> | ||
| | |If <tt>true</tt>, also restore ammo to the weapon that spawned this aircraft. | ||
| | |Boolean | ||
|{{n}} | |{{n}} | ||
| | |Defaults to <tt>false</tt> | ||
|- | |- | ||
|< | |<tt>RoundRobin</tt> | ||
| | |🎠 wheeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee idfk but it make da glaive lord work | ||
| | |Number | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>SlotIndex</tt> | ||
| | |The slot index of the weapon that ammo is being restored to. | ||
|Number | |Number | ||
| | |{{n}} | ||
| | | | ||
|} | |} | ||
=== | ===Sacrifice=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
!Key | !Key | ||
| Line 1,591: | Line 1,509: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>SpriteFile</tt> | ||
| | | | ||
| | | | ||
| Line 1,597: | Line 1,515: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
| | | | ||
| | | | ||
| | | | ||
| | | | ||
|} | |||
===ScreenWipe=== | |||
Exclusive to ''Bloons TD Battles''. | |||
{| class="wikitable sortable" | |||
!Key | |||
!Description | |||
!Type | |||
!Required? | |||
!Behavior when absent | |||
|- | |- | ||
|< | |<tt>Count</tt> | ||
| | | | ||
|Number | |Number | ||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>Duration</tt> | ||
| | | | ||
|Number | |||
| | | | ||
| | | | ||
|- | |- | ||
|< | |<tt>SpeedMultiplierRange</tt> | ||
| | | | ||
|Array of numbers | |||
| | |||
| | |||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
|The cooldown time of the tower, does not affect [[Activated Ability|activated abilities]]. | | | ||
|- | |Array of objects | ||
|< | | | ||
|The fire delay time of the tower. | | | ||
|- | |} | ||
|< | |||
|The amount of money given per pop by the tower. | ===StatusEffect=== | ||
|- | {{main|Technical:Bloons TD 5 (mobile)/Status effects}} | ||
|< | Applies a modifier to the target Bloon. This task supports a lot of properties, but most are only used by certain types of statuses and are ignored by others. Some statuses cannot be inflicted by tasks, only by hardcoded game mechanics, but they can still be used for filters, and can still be removed with <tt>RemoveStatusEffect</tt>, and Bloons can be made immune to them. | ||
|The cooldown of the [[Activated Ability|activated ability]]. | |||
|- | This table lists properties that are common to all statuses. | ||
|< | {| class="wikitable sortable" | ||
|The pierce of the tower. Affects both < | !Key | ||
|- | !Description | ||
|< | !Type | ||
|The ability of the tower to pop camo bloons. (Boolean) | !Required? | ||
|- | !Behavior when absent | ||
|< | |- | ||
|The ability of the tower's damage type to ignore bloon immunities. (Boolean) | |<tt>Status</tt> | ||
|- | |The type of status. This can also be set to an empty string, in which case it will do nothing until a <tt>TaskUpgrade</tt> changes it. | ||
|< | |String | ||
|The amount of damage the tower does. | | | ||
|} | | | ||
|Object | |- | ||
| | |<tt>TargetingFilter</tt> | ||
| | |||
|Object | |||
| | |||
| | |||
|- | |||
|<tt>FireMode</tt> | |||
|A list of flags specifying something idk | |||
*<tt>"FireNormal"</tt> (unused) | |||
*<tt>"FireOnApply"</tt> | |||
*<tt>"FireOnCommand"</tt> (unused) | |||
*<tt>"FireOnLastPop"</tt> (unused) | |||
*<tt>"FireOnPop"</tt> (unused) | |||
*<tt>"FireOnRemove"</tt> (unused) | |||
*<tt>"RemoveOnLastApply"</tt> | |||
|Array of strings | |||
|{{n}} | |||
| | |||
|} | |||
===TargetAlLBloonsInRange=== | |||
Exclusive to ''Bloons TD Battles''. (No, that is not a typo, it has to be capitalized that way for it to work properly.) | |||
===TextEffect=== | |||
===TimerFire=== | |||
Executes its subtasks after a delay. | |||
{| class="wikitable" | |||
!Key | |||
!Description | |||
!Type | |||
!Required? | |||
!Behavior when absent | |||
|- | |||
|<tt>CompoundSprite</tt> | |||
| | |||
|String | |||
| | |||
| | |||
|- | |||
|<tt>InitialTime</tt> | |||
|The initial timer to delay the first execution of a looping TimerFire. | |||
|Number | |||
|{{n}} | |||
| | |||
|- | |||
|<tt>Loops</tt> | |||
|Determines if a TimerFire will loop. | |||
|Boolean | |||
|{{n}} | |||
|Defaults to <tt>false</tt> | |||
|- | |||
|<tt>NumLoops</tt> | |||
|Used in conjunction with the former, how many times will it loop. If <tt>Loops</tt> is not present or false, it won't loop. | |||
|Number | |||
|{{n}} | |||
|Doesn't loop | |||
|- | |||
|<tt>SpriteList</tt> | |||
| | |||
|Array of strings | |||
| | |||
| | |||
|- | |||
|<tt>Tasks</tt> | |||
|A list of tasks to execute when the time is up. | |||
|Array of objects | |||
| | |||
| | |||
|- | |||
|<tt>TimeDelay</tt> | |||
|The delay, in seconds. | |||
|Number | |||
| | |||
| | |||
|} | |||
=== TowerModifier === | |||
{| class="wikitable sortable" | |||
!Key | |||
!Description | |||
!Type | |||
!Required? | |||
!Behavior when absent | |||
|- | |||
|<tt>ApplyToUserTower</tt> | |||
| | |||
| | |||
| | |||
| | |||
|- | |||
|<tt>CanApplyToUserTower</tt> | |||
| | |||
| | |||
| | |||
| | |||
|- | |||
|<tt>Duration</tt> | |||
|How long the modifier is active for. | |||
|Number | |||
|{{n}} | |||
|Defaults to <tt>-1</tt> | |||
|- | |||
|<tt>Modifier</tt> | |||
|The modifier applied. Each modifier can either be additive or multiplicative. | |||
{| class="wikitable" | |||
|<tt>Cost</tt> | |||
|The price of the tower/upgrades. | |||
|- | |||
|<tt>TargetRange</tt> | |||
|The range of the tower. | |||
|- | |||
|<tt>Cooldown</tt> | |||
|The cooldown time of the tower, does not affect [[Activated Ability|activated abilities]]. | |||
|- | |||
|<tt>FireDelay</tt> | |||
|The fire delay time of the tower. | |||
|- | |||
|<tt>CashPerPop</tt> | |||
|The amount of money given per pop by the tower. | |||
|- | |||
|<tt>AbilityCooldown</tt> | |||
|The cooldown of the [[Activated Ability|activated ability]]. | |||
|- | |||
|<tt>PoppingPower</tt> | |||
|The pierce of the tower. Affects both <tt>Projectile</tt> and <tt>AreaOfEffect</tt> tasks. | |||
|- | |||
|<tt>CanPopCamo</tt> | |||
|The ability of the tower to pop camo bloons. (Boolean) | |||
|- | |||
|<tt>CanPopAllBloons</tt> | |||
|The ability of the tower's damage type to ignore bloon immunities. (Boolean) | |||
|- | |||
|<tt>Damage</tt> | |||
|The amount of damage the tower does. | |||
|} | |||
|Object | |||
| | |||
| | | | ||
|- | |- | ||
|< | |<tt>ModifyMovingTowers</tt> | ||
| | | | ||
| | | | ||
| Line 1,652: | Line 1,720: | ||
| | | | ||
|- | |- | ||
|< | |<tt>ModifyNewlySpawnedTowers</tt> | ||
| | | | ||
| | | | ||
| Line 1,658: | Line 1,726: | ||
| | | | ||
|- | |- | ||
|< | |<tt>NumPersists</tt> | ||
| | |How many towers will be affected. If ApplyToUserTower is on, a "pierce" will be used on itself. | ||
|Number | |Number | ||
| | |{{n}} | ||
| | |Defaults to <tt>-1</tt> | ||
|- | |- | ||
|< | |<tt>PriorityLevel</tt> | ||
| | | | ||
|Number | |Number | ||
| Line 1,676: | Line 1,738: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Range</tt> | ||
|Range of the modifier. | |Range of the modifier. | ||
|Number | |Number | ||
| Line 1,682: | Line 1,744: | ||
| | | | ||
|- | |- | ||
|< | |<tt>ReplacesPriorityLevel</tt> | ||
| | | | ||
| | | | ||
| Line 1,688: | Line 1,750: | ||
| | | | ||
|- | |- | ||
|< | |<tt>RequiresEmptyPriorityLevel</tt> | ||
|If true, the modifier's priority level must be empty for it to work, else, it can stack with other modifiers of that priority level | |If true, the modifier's priority level must be empty for it to work, else, it can stack with other modifiers of that priority level | ||
|Boolean | |Boolean | ||
| Line 1,694: | Line 1,756: | ||
| | | | ||
|- | |- | ||
|< | |<tt>RoundDuration</tt> | ||
| | | | ||
| | | | ||
| Line 1,700: | Line 1,762: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Stackable</tt> | ||
| | | | ||
| | | | ||
| Line 1,706: | Line 1,768: | ||
| | | | ||
|- | |- | ||
|< | |<tt>TargetIsWeaponTaskOrigin</tt> | ||
| | | | ||
| | | | ||
| Line 1,712: | Line 1,774: | ||
| | | | ||
|- | |- | ||
|< | |<tt>TargetingFilter</tt> | ||
|What the modifier targets. | |What the modifier targets. | ||
|Array of objects | |Array of objects | ||
| Line 1,718: | Line 1,780: | ||
| | | | ||
|- | |- | ||
|< | |<tt>TaskPersistsWithDuration</tt> | ||
| | | | ||
| | | | ||
| Line 1,724: | Line 1,786: | ||
| | | | ||
|- | |- | ||
|< | |<tt>Tasks</tt> | ||
| | | | ||
| | | | ||
| Line 1,730: | Line 1,792: | ||
| | | | ||
|- | |- | ||
|< | |<tt>TerminateOnUserTargetChange</tt> | ||
| | | | ||
| | | | ||
| Line 1,736: | Line 1,798: | ||
| | | | ||
|- | |- | ||
|< | |<tt>TerminateOnUserUpgrade</tt> | ||
| | | | ||
|Boolean | |Boolean | ||
| Line 1,742: | Line 1,804: | ||
| | | | ||
|- | |- | ||
|< | |<tt>WeaponSlotIndex</tt> | ||
|The slot index of the weapon the modifier is applied to. | |The slot index of the weapon the modifier is applied to. | ||
|Number | |Number | ||
| Line 1,758: | Line 1,820: | ||
==Movement == | ==Movement == | ||
< | <tt>Movement</tt> is a property shared by Projectiles, Collectables, and TextEffects. The <tt>Type</tt> determines how it moves and what sub-properties are allowed. | ||
===Forward=== | ===Forward=== | ||
| Line 1,769: | Line 1,831: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>Speed</tt> | ||
|How fast the object moves. | |How fast the object moves. | ||
|Number | |Number | ||
|{{ | |{{n}} | ||
|Weapon | |Weapon effectively stops moving | ||
|- | |- | ||
|< | |<tt>CutOffDistance</tt> | ||
|The distance at which the object expires. | |The distance at which the object expires. | ||
|Number | |Number | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>-1</tt> | ||
|- | |- | ||
|< | |<tt>SpeedDecay</tt> | ||
| | | | ||
|Number | |Number | ||
| Line 1,797: | Line 1,859: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>Speed</tt> | ||
|How fast the object moves. | |How fast the object moves. | ||
|Number | |Number | ||
|{{ | |{{n}} | ||
|Weapon | |Weapon effectively stops moving | ||
|- | |- | ||
|< | |<tt>CutOffDistance</tt> | ||
|The distance at which the object expires. | |The distance at which the object expires. | ||
|Number | |Number | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>-1</tt> | ||
|- | |- | ||
|< | |<tt>NextTargetRange</tt> | ||
|The radius at which the object can target. | |The radius at which the object can target. | ||
|Number | |Number | ||
| Line 1,815: | Line 1,877: | ||
| | | | ||
|- | |- | ||
|< | |<tt>DestroyWhenNoTarget</tt> | ||
|If < | |If <tt>true</tt>, the object terminates itself if there are no targets in its range. | ||
|Boolean | |Boolean | ||
| | | | ||
| Line 1,823: | Line 1,885: | ||
===MotionCurve=== | ===MotionCurve=== | ||
Follows a path defined by a [[wp:Bézier curve|cubic Bézier curve]]. (An easy way to visualize it is with [https://www.desmos.com/calculator/fblkj0psxe this calculator].) | Follows a path defined by a set of [[wp:Bézier curve|cubic Bézier curve(s)]]. (An easy way to visualize it is with [https://www.desmos.com/calculator/fblkj0psxe this calculator].) | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
!Key | !Key | ||
| Line 1,831: | Line 1,893: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>Speed</tt> | ||
|How fast the object moves. | |How fast the object moves. | ||
|Number | |Number | ||
|{{ | |{{n}} | ||
|Weapon | |Weapon effectively stops moving | ||
|- | |- | ||
|< | |<tt>CutOffDistance</tt> | ||
|The distance at which the object expires. | |The distance at which the object expires. | ||
|Number | |Number | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>-1</tt> | ||
|- | |- | ||
|< | |<tt>Curves</tt> | ||
|The control points of the Bézier curve. The first number of each sub-array is the X-position, and the second number is the Y-position. | |The control points of the Bézier curve. The first number of each sub-array is the X-position, and the second number is the Y-position. | ||
|Array of array of numbers | |Array of array of numbers | ||
| Line 1,849: | Line 1,911: | ||
| | | | ||
|- | |- | ||
|< | |<tt>AngleOffset</tt> | ||
| | | | ||
|Number | |Number | ||
| Line 1,855: | Line 1,917: | ||
| | | | ||
|- | |- | ||
|< | |<tt>TerminateAtEndOfCurve</tt> | ||
|If < | |If <tt>true</tt>, the object expires when it reaches the end of the path. | ||
|Boolean | |Boolean | ||
| | | | ||
| Line 1,873: | Line 1,935: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>Speed</tt> | ||
|Determines the object's speed when moving towards the target. | |Determines the object's speed when moving towards the target. | ||
|Number | |Number | ||
| Line 1,879: | Line 1,941: | ||
| | | | ||
|- | |- | ||
|< | |<tt>ReturnSpeed</tt> | ||
|Determines the object's speed when returning to its sender. | |Determines the object's speed when returning to its sender. | ||
|Number | |Number | ||
| Line 1,885: | Line 1,947: | ||
| | | | ||
|- | |- | ||
|< | |<tt>TargetShouldFaceWeapon</tt> | ||
| | | | ||
|Boolean | |Boolean | ||
| Line 1,891: | Line 1,953: | ||
| | | | ||
|- | |- | ||
|< | |<tt>StartOnTarget</tt> | ||
|If < | |If <tt>true</tt>, the object starts at the target and returns to the sender, skipping the phase of traveling to the target first. <tt>Speed</tt> is ignored. | ||
|Boolean | |Boolean | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>false</tt> | ||
|} | |} | ||
| Line 1,909: | Line 1,971: | ||
!Behavior when absent | !Behavior when absent | ||
|- | |- | ||
|< | |<tt>Speed</tt> | ||
|How fast the object moves. | |How fast the object moves. | ||
|Number | |Number | ||
|{{ | |{{n}} | ||
|Weapon | |Weapon effectively stops moving | ||
|- | |- | ||
|< | |<tt>CutOffDistance</tt> | ||
|The distance at which the object expires. | |The distance at which the object expires. | ||
|Number | |Number | ||
|{{n}} | |{{n}} | ||
|Defaults to < | |Defaults to <tt>-1</tt> | ||
|- | |- | ||
|< | |<tt>SeekAngle</tt> | ||
|The angle at which the object can target from. | |The angle at which the object can target from. | ||
|Number | |Number | ||
| Line 1,927: | Line 1,989: | ||
| | | | ||
|- | |- | ||
|< | |<tt>TurnSpeed</tt> | ||
|How quickly the object can rotate towards its target, in degrees per second. | |How quickly the object can rotate towards its target, in degrees per second. | ||
|Number | |Number | ||
| Line 1,933: | Line 1,995: | ||
| | | | ||
|- | |- | ||
|< | |<tt>TargetRange</tt> | ||
|The radius at which the object can target. | |The radius at which the object can target. | ||
|Number | |Number | ||
| Line 1,939: | Line 2,001: | ||
| | | | ||
|- | |- | ||
|< | |<tt>ActivateCutOffFromSpotter</tt> | ||
| | | | ||
|Boolean | |Boolean | ||
| Line 1,945: | Line 2,007: | ||
| | | | ||
|} | |} | ||
<!--==Navigation== | |||
{{technical nav}} | |||
[[Category:BTD5 (mobile) technical information]][[Category:Battles (multiplatform) technical information]][[Category:BMC (multiplatform) technical information]]--> | |||