You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:Rp/gei

From MafiaWiki
Jump to: navigation, search
Name:
  • Rp/gei
Type:
Sub-Template:
  • Yes
Designer:

The {{Rp/gei}} template finds the indexes of the ends of component groupings within a role string. These indexes are output in slash-separated form, with a trailing slash.

Although you could in theory run this template on an entire role string, it's more common to run it on subsets of the role string so that you can identify what the groupings are meant to correspond to (e.g. passive abilities or active abilities) and to intersperse hardcoded segments of the role PM at appropriate places.

Examples/tests

Town
1/
Mafia
1/
Town/Cop
1/2/
Town/Bulletproof
1/2/
Mafia/Loyal/Jailkeeper
1/3/
Mafia/Bulletproof/Jailkeeper
1/2/3/
Mafia/Multitasking/Jailkeeper
1/2/3/
Mafia/Ninja
1/
Town/Cop/Doctor
1/2/3/
Town/Bulletproof/Enabler
1/3/
Town/Odd Night/Doctor/Enabler
1/4/
Town/Bulletproof/Activated
1/3/
Town/Ascetic/Bulletproof
1/2/3/
Town/Ascetic/Bulletproof/Enabler
1/2/4/
Town/Cop/Odd Night/Doctor
1/2/4/
Town/Even Night/Cop/Odd Night/Doctor
1/3/5/
Mafia/Ascetic/Multitasking/Even Night/Cop/Odd Night/Doctor
1/2/3/5/7/
Town/Loud/Multitasking/Jack of All Trades/Cop/Weak/Doctor/Innocent Child/Activated
1/3/4/5/7/9/
Serial Killer/Even Night/Ascetic/2-shot/Loud/Ninja/Weak/Rolecop/Odd Night/Doctor
1/3/8/10/