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

Template:WinCon: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(code optimisation (#switch is much more efficient than #if); use the win condition name itself as a final fallback (in case of, e.g., win conditions with multiple bullet points))
m (I missed some)
Line 1: Line 1:
<noinclude>{{Template |Designer=Mathdino |Name={{PAGENAME}} |Type=Utility |Sub=No}}</noinclude>{{#switch:{{{1|}}}|Town=You win if all threats to the town are eliminated and at least one town-aligned player is alive.|}}{{#ifeq:{{{1|}}}|Town1|You win if all threats to the town are eliminated and at least one town-aligned player is alive.|Town2=You win if all mafia members are eliminated and at least one town-aligned player is alive.|Town3=You win if all threats to the town are eliminated.|}}{{#ifeq:{{{1|}}}|TownWhiteFlag|You win if one or fewer mafia members remain and at least one town-aligned player is alive.|TownBlackFlag=You win if the mafia are reduced to one member before the town is reduced to three members.|TownRedFlag=You win if two mafia are lynched or if all mafia are dead.|}}{{#ifeq:{{{1|}}}|Scum|You win if at least one member of your group is alive and all other players are dead (or if nothing can prevent the same).|Scum1=You win if at least one member of your group is alive and all other players are dead (or if nothing can prevent the same).|Scum2=You win if your group controls at least half of the living players (or if nothing can prevent the same).|Scum3=You win if all members of the town are eliminated (or if nothing can prevent the same).|Mafia=You win if at least one mafia member is alive and all other players are dead (or if nothing can prevent the same).|Mafia1=You win if at least one mafia member is alive and all other players are dead (or if nothing can prevent the same).|Mafia2=You win if at least half of the living players are mafia (or if nothing can prevent the same).|Mafia3=You win if all members of the town are eliminated (or if nothing can prevent the same).|Werewolf=You win if at least one werewolf is alive and all other players are dead (or if nothing can prevent the same).|Werewolf1=You win if at least one werewolf is alive and all other players are dead (or if nothing can prevent the same).|Werewolf2=You win if at least half of the living players are werewolves (or if nothing can prevent the same).|Werewolf3=You win if all members of the town are eliminated (or if nothing can prevent the same).|Multiball=You win when the other scum team is eliminated and you control at least half of the living players (or if nothing can prevent the same).|Multiball1=You win when the other scum team is eliminated and you control at least half of the living players (or if nothing can prevent the same).|SerialKiller=You win if you are the last player alive (or if nothing can prevent the same).|SerialKiller1=You win if you are the last player alive (or if nothing can prevent the same).|SerialKiller2=You win if you control at least half of the living players (or if nothing can prevent the same).|Survivor=You win if you are alive when the game ends.|Jester=You win if you are lynched at any time.|Jester1=You win if you are lynched at any time.|Jester2=You win if you are lynched at any time. You lose if you die by any other means.|Mime=You win if all members of your group are lynched.|Mime1=You win if all members of your group are lynched.|Mime2=You win if all members of your group are dead.|Lyncher=[Player] is your lynchee. You win if you are alive and [Player] is lynched at any time.|Lyncher1=[Player] is your lynchee. You win if you are alive and [Player] is lynched at any time.|Lyncher2=[Player] is your lynchee. You win if [Player] is lynched at any time.|Lyncher3=[Player] is your lynchee. You win if you are alive and [Player] is lynched at any time. You lose if [Player] dies by other means.|Custom=You win if {{{2|}}}|{{{1}}}}}<noinclude>This template is for inserting standardized win conditions into role PMs.
<noinclude>{{Template |Designer=Mathdino |Name={{PAGENAME}} |Type=Utility |Sub=No}}</noinclude>{{#switch:{{{1|}}}|Town=You win if all threats to the town are eliminated and at least one town-aligned player is alive.|Town1=You win if all threats to the town are eliminated and at least one town-aligned player is alive.|Town2=You win if all mafia members are eliminated and at least one town-aligned player is alive.|Town3=You win if all threats to the town are eliminated.|TownWhiteFlag=You win if one or fewer mafia members remain and at least one town-aligned player is alive.|TownBlackFlag=You win if the mafia are reduced to one member before the town is reduced to three members.|TownRedFlag=You win if two mafia are lynched or if all mafia are dead.|Scum=You win if at least one member of your group is alive and all other players are dead (or if nothing can prevent the same).|Scum1=You win if at least one member of your group is alive and all other players are dead (or if nothing can prevent the same).|Scum2=You win if your group controls at least half of the living players (or if nothing can prevent the same).|Scum3=You win if all members of the town are eliminated (or if nothing can prevent the same).|Mafia=You win if at least one mafia member is alive and all other players are dead (or if nothing can prevent the same).|Mafia1=You win if at least one mafia member is alive and all other players are dead (or if nothing can prevent the same).|Mafia2=You win if at least half of the living players are mafia (or if nothing can prevent the same).|Mafia3=You win if all members of the town are eliminated (or if nothing can prevent the same).|Werewolf=You win if at least one werewolf is alive and all other players are dead (or if nothing can prevent the same).|Werewolf1=You win if at least one werewolf is alive and all other players are dead (or if nothing can prevent the same).|Werewolf2=You win if at least half of the living players are werewolves (or if nothing can prevent the same).|Werewolf3=You win if all members of the town are eliminated (or if nothing can prevent the same).|Multiball=You win when the other scum team is eliminated and you control at least half of the living players (or if nothing can prevent the same).|Multiball1=You win when the other scum team is eliminated and you control at least half of the living players (or if nothing can prevent the same).|SerialKiller=You win if you are the last player alive (or if nothing can prevent the same).|SerialKiller1=You win if you are the last player alive (or if nothing can prevent the same).|SerialKiller2=You win if you control at least half of the living players (or if nothing can prevent the same).|Survivor=You win if you are alive when the game ends.|Jester=You win if you are lynched at any time.|Jester1=You win if you are lynched at any time.|Jester2=You win if you are lynched at any time. You lose if you die by any other means.|Mime=You win if all members of your group are lynched.|Mime1=You win if all members of your group are lynched.|Mime2=You win if all members of your group are dead.|Lyncher=[Player] is your lynchee. You win if you are alive and [Player] is lynched at any time.|Lyncher1=[Player] is your lynchee. You win if you are alive and [Player] is lynched at any time.|Lyncher2=[Player] is your lynchee. You win if [Player] is lynched at any time.|Lyncher3=[Player] is your lynchee. You win if you are alive and [Player] is lynched at any time. You lose if [Player] dies by other means.|Custom=You win if {{{2|}}}|{{{1}}}}}<noinclude>This template is for inserting standardized win conditions into role PMs.


==Syntax==
==Syntax==

Revision as of 02:06, 19 May 2018

Name:
  • WinCon
Type:
Sub-Template:
  • No
Designer:

{{{1}}}This template is for inserting standardized win conditions into role PMs.

Syntax

For existing win conditions:

{{WinCon |(Faction Name)}}

For custom role PM's:

{{WinCon |Custom |(Win Conditions)}}

Catalog

See Template:WinCon/Catalog