You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:Rp/ActiveCount: Difference between revisions
Jump to navigation
Jump to search
m (fix Rc → Rp) |
(count the factional kill too) |
||
Line 1: | Line 1: | ||
{{#expr: | {{#expr:{{Rp/fk|{{{1}}}|{{{2|}}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|1}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|2}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|3}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|4}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|5}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|6}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|7}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|8}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|9}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|10}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|11}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|12}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|13}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|14}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|15}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|16}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|17}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|18}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|19}}}}{{Rp/ac|{{Rp/rcl|{{{1}}}|20}}}}}}<noinclude>{{Rp/ActiveCount/doc}}</noinclude> |
Latest revision as of 02:23, 28 May 2018
0
|
The {{Rp/ActiveCount}} template takes a role string as argument, and returns the number of different active abilities that that role has. Its main purpose is to allow for correct pluralisation of modifiers that affect the set of active abilities as a whole.
Note that the Mafia's nightkill will count as an active ability, as will those of other similar factions. You can give Nightless
as a second argument if you need to exclude this specific ability from the count.
Examples/tests
Town
- 0
Mafia
- 1
Town/Cop
- 1
Town/Bulletproof
- 0
Mafia/Loyal/Jailkeeper
- 2
Mafia/Bulletproof/Jailkeeper
- 2
Mafia/Multitasking/Jailkeeper
- 2
Mafia/Ninja
- 1
Town/Cop/Doctor
- 2
Town/Bulletproof/Enabler
- 0
Town/Odd Night/Doctor/Enabler
- 0
Town/Bulletproof/Activated
- 1
Town/Ascetic/Bulletproof
- 0
Town/Ascetic/Bulletproof/Enabler
- 0
Town/Cop/Odd Night/Doctor
- 2
Town/Even Night/Cop/Odd Night/Doctor
- 2
Mafia/Ascetic/Multitasking/Even Night/Cop/Odd Night/Doctor
- 3
Town/Loud/Multitasking/Jack of All Trades/Cop/Weak/Doctor/Innocent Child/Activated
- 3
Serial Killer/Even Night/Ascetic/2-shot/Loud/Ninja/Weak/Rolecop/Odd Night/Doctor
- 3