Conditions
Set the conditions when a law module will trigger.
Note that every reference to player
is referring to the person completing the challenge.
All parameters are OPTIONAL
Separate each parameter with a comma
,
No spaces are allowed between each parameter
Conditional parameters
;
are required where statedParameters do not have to be in order
!NOT
conditions have to appear after the parameterLeave empty if there are no parameters
Player or Enemy Class
When you indicate more than 1 class, it means OR.
To indicate as the enemy, add a
!ENEMY
notation behind the parameter. Otherwise, add a!SELF
notation to indicate the player.
Examples
scout!SELF,soldier!SELF,demoman!ENEMY,heavy!ENEMY
means that the player is either a Scout or Soldier, and the enemy is either a Demoman or Heavy.
Parameter | Description |
| is playing as Scout |
| is playing as Soldier |
| is playing as Pyro |
| is playing as Demoman |
| is playing as Heavy |
| is playing as Engineer |
| is playing as Medic |
| is playing as Sniper |
| is playing as Spy |
Player or Enemy Team
When you indicate more than 1 team, it means OR.
To indicate as the enemy, add a
!ENEMY
notation behind the parameter. Otherwise, add a!SELF
notation to indicate the player.
Examples
red!SELF,blue!SELF,red!ENEMY,blue!ENEMY
means that the player is either on the BLUE team or RED team, and the enemy is either on the BLUE team or RED team.red!SELF,blue!ENEMY
means that the player has to be on the RED team and the enemy must be in the BLUE team.
Parameter | Description |
| is in RED team |
| is in BLUE team |
| is in SPECTATOR team |
Enemy Status
Parameter | Description |
| The enemy and victim are the same Examples
|
| A human enemy |
| A non-human enemy Examples
|
| The enemy is on the same team (team kill) [NOT RECOMMENDED] |
| Match the enemy name
|
| How far away the enemy is from the player
If you include multiple distances, it means OR. |
Templates
Description | Parameter List |
| Sentry Busters |
| Giant Robots |
| Giant Medics |
| Super Scouts |
| Extended Buffed Soldiers |
| Bowmans |
| Samurais |
| Deflectors |
| Demoknights |
Team Status
When you indicate more than 1 team, it means AND.
Eg.
redtotal;5,bluetotal;5
means that both BLUE and RED teams have exactly 5 players each.
Parameter | Description |
| The total number of players
|
| The total number of players in red team
|
| The total number of players in blue team
|
| The total number of players alive
|
| The total number of players alive in red team
|
| The total number of players alive in blue team
|
| The total number of players in the player's team
|
| The total number of players in the enemy's team
|
| The total number of players alive in the player's team
|
| The total number of players alive in enemy's team
|
One Chance
Only one parameter is allowed from this category for each challenge.
Parameter | Description |
| Achieved in a single life.
Eg. Deal 500 Damage in One Life [0/5] uses |
| Achieved in a single round.
Eg. Walk 1000m in One Round [0/10] uses |
Timers
Only one parameter is allowed from this category for each challenge.
Parameter | Description |
| A timer run every second.
Examples
|
| A timer run only once in the first x seconds of the round.
Examples
|
Conditions
When you indicate more than 1 condition, it means AND.
Parameter | Description |
| Whether the player is or isn't in a condition.
Examples
|
Weapons
When you indicate more than 1 weapon or weaponclass, it means OR for all the "is using" weapons and AND for all the "is not using" weapons.
The player can use either one of the weapons in the "IS USING" pool, and the player MUST NOT use ANY of the weapons in the "IS NOT USING
!NOT
" pool.Eg.
weapon;1071,weapon;423,weapon;221!NOT,weapon;264!NOT
means the player is either using a Golden Frying Pan or Saxxy but NOT a Holy Mackerel or normal Frying Pan.Eg. If you add
weapon;1071!ENEMY,weapon;423!ENEMY,weapon;221!ENEMY!NOT,weapon;264!ENEMY!NOT
to the above example, it means that BOTH the player and enemy are either using a Golden Frying Pan or Saxxy but NOT a Holy Mackerel or normal Frying Pan.
To indicate as the enemy, add
!ENEMY
behind the parameter.
Parameter | Description |
| The weapon index the player is using. Used for specific weapons.
Examples
|
| The weapon classname the player is using. Used for a broad category of weapon types.
Examples
|
Templates
Description | Parameter List |
Using any of the explosive weapons |
|
Using any melee weapons |
|
Special
These parameters are catered to the respective modules only.
damage / kill (Optional)
damage / kill (Optional)
Parameter | Description |
| The type of damage / kill on the enemy
Examples
|
Type | Type Number |
TF_CUSTOM_HEADSHOT | 1 |
TF_CUSTOM_BACKSTAB | 2 |
TF_CUSTOM_BURNING | 3 |
TF_CUSTOM_WRENCH_FIX | 4 |
TF_CUSTOM_MINIGUN | 5 |
TF_CUSTOM_SUICIDE | 6 |
TF_CUSTOM_TAUNT_HADOUKEN | 7 |
TF_CUSTOM_BURNING_FLARE | 8 |
TF_CUSTOM_TAUNT_HIGH_NOON | 9 |
TF_CUSTOM_TAUNT_GRAND_SLAM | 10 |
TF_CUSTOM_PENETRATE_MY_TEAM | 11 |
TF_CUSTOM_PENETRATE_ALL_PLAYERS | 12 |
TF_CUSTOM_TAUNT_FENCING | 13 |
TF_CUSTOM_PENETRATE_HEADSHOT | 14 |
TF_CUSTOM_TAUNT_ARROW_STAB | 15 |
TF_CUSTOM_TELEFRAG | 16 |
TF_CUSTOM_BURNING_ARROW | 17 |
TF_CUSTOM_FLYINGBURN | 18 |
TF_CUSTOM_PUMPKIN_BOMB | 19 |
TF_CUSTOM_DECAPITATION | 20 |
TF_CUSTOM_TAUNT_GRENADE | 21 |
TF_CUSTOM_BASEBALL | 22 |
TF_CUSTOM_CHARGE_IMPACT | 23 |
TF_CUSTOM_TAUNT_BARBARIAN_SWING | 24 |
TF_CUSTOM_AIR_STICKY_BURST | 25 |
TF_CUSTOM_DEFENSIVE_STICKY | 26 |
TF_CUSTOM_PICKAXE | 27 |
TF_CUSTOM_ROCKET_DIRECTHIT | 28 |
TF_CUSTOM_TAUNT_UBERSLICE | 29 |
TF_CUSTOM_PLAYER_SENTRY | 30 |
TF_CUSTOM_STANDARD_STICKY | 31 |
TF_CUSTOM_SHOTGUN_REVENGE_CRIT | 32 |
TF_CUSTOM_TAUNT_ENGINEER_SMASH | 33 |
TF_CUSTOM_BLEEDING | 34 |
TF_CUSTOM_GOLD_WRENCH | 35 |
TF_CUSTOM_CARRIED_BUILDING | 36 |
TF_CUSTOM_COMBO_PUNCH | 37 |
TF_CUSTOM_TAUNT_ENGINEER_ARM | 38 |
TF_CUSTOM_FISH_KILL | 39 |
TF_CUSTOM_TRIGGER_HURT | 40 |
TF_CUSTOM_DECAPITATION_BOSS | 41 |
TF_CUSTOM_STICKBOMB_EXPLOSION | 42 |
TF_CUSTOM_AEGIS_ROUND | 43 |
TF_CUSTOM_FLARE_EXPLOSION | 44 |
TF_CUSTOM_BOOTS_STOMP | 45 |
TF_CUSTOM_PLASMA | 46 |
TF_CUSTOM_PLASMA_CHARGED | 47 |
TF_CUSTOM_PLASMA_GIB | 48 |
TF_CUSTOM_PRACTICE_STICKY | 49 |
TF_CUSTOM_EYEBALL_ROCKET | 50 |
TF_CUSTOM_HEADSHOT_DECAPITATION | 51 |
TF_CUSTOM_TAUNT_ARMAGEDDON | 52 |
TF_CUSTOM_FLARE_PELLET | 53 |
TF_CUSTOM_CLEAVER | 54 |
TF_CUSTOM_CLEAVER_CRIT | 55 |
TF_CUSTOM_SAPPER_RECORDER_DEATH | 56 |
TF_CUSTOM_MERASMUS_PLAYER_BOMB | 57 |
TF_CUSTOM_MERASMUS_GRENADE | 58 |
TF_CUSTOM_MERASMUS_ZAP | 59 |
TF_CUSTOM_MERASMUS_DECAPITATION | 60 |
TF_CUSTOM_CANNONBALL_PUSH | 61 |
TF_CUSTOM_TAUNT_ALLCLASS_GUITAR_RIFF | 62 |
TF_CUSTOM_THROWABLE | 63 |
TF_CUSTOM_THROWABLE_KILL | 64 |
TF_CUSTOM_SPELL_TELEPORT | 65 |
TF_CUSTOM_SPELL_SKELETON | 66 |
TF_CUSTOM_SPELL_MIRV | 67 |
TF_CUSTOM_SPELL_METEOR | 68 |
TF_CUSTOM_SPELL_LIGHTNING | 69 |
TF_CUSTOM_SPELL_FIREBALL | 70 |
TF_CUSTOM_SPELL_MONOCULUS | 71 |
TF_CUSTOM_SPELL_BLASTJUMP | 72 |
TF_CUSTOM_SPELL_BATS | 73 |
TF_CUSTOM_SPELL_TINY | 74 |
TF_CUSTOM_KART | 75 |
TF_CUSTOM_GIANT_HAMMER | 76 |
TF_CUSTOM_RUNE_REFLECT | 77 |
TF_CUSTOM_DRAGONS_FURY_IGNITE | 78 |
TF_CUSTOM_DRAGONS_FURY_BONUS_BURNING | 79 |
TF_CUSTOM_SLAP_KILL | 80 |
TF_CUSTOM_CROC | 81 |
TF_CUSTOM_TAUNTATK_GASBLAST | 82 |
placement (Required)
placement (Required)
Parameter | Description |
| Be the top X players left alive (usually for arena, no respawn gamemodes)
|
Last updated