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
No edit summary
(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))
Line 1: Line 1:
<noinclude>{{Template |Designer=Mathdino |Name={{PAGENAME}} |Type=Utility |Sub=No}}</noinclude>{{#ifeq:{{{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.|}}{{#ifeq:{{{1|}}}|Town2|You win if all mafia members are eliminated and at least one town-aligned player is alive.|}}{{#ifeq:{{{1|}}}|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.|}}{{#ifeq:{{{1|}}}|TownBlackFlag|You win if the mafia are reduced to one member before the town is reduced to three members.|}}{{#ifeq:{{{1|}}}|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).|}}{{#ifeq:{{{1|}}}|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).|}}{{#ifeq:{{{1|}}}|Scum2|You win if your group controls at least half of the living players (or if nothing can prevent the same).|}}{{#ifeq:{{{1|}}}|Scum3|You win if all members of the town are eliminated (or if nothing can prevent the same).|}}{{#ifeq:{{{1|}}}|Mafia|You win if at least one mafia member is alive and all other players are dead (or if nothing can prevent the same).|}}{{#ifeq:{{{1|}}}|Mafia1|You win if at least one mafia member is alive and all other players are dead (or if nothing can prevent the same).|}}{{#ifeq:{{{1|}}}|Mafia2|You win if at least half of the living players are mafia (or if nothing can prevent the same).|}}{{#ifeq:{{{1|}}}|Mafia3|You win if all members of the town are eliminated (or if nothing can prevent the same).|}}{{#ifeq:{{{1|}}}|Werewolf|You win if at least one werewolf is alive and all other players are dead (or if nothing can prevent the same).|}}{{#ifeq:{{{1|}}}|Werewolf1|You win if at least one werewolf is alive and all other players are dead (or if nothing can prevent the same).|}}{{#ifeq:{{{1|}}}|Werewolf2|You win if at least half of the living players are werewolves (or if nothing can prevent the same).|}}{{#ifeq:{{{1|}}}|Werewolf3|You win if all members of the town are eliminated (or if nothing can prevent the same).|}}{{#ifeq:{{{1|}}}|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).|}}{{#ifeq:{{{1|}}}|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).|}}{{#ifeq:{{{1|}}}|SerialKiller|You win if you are the last player alive (or if nothing can prevent the same).|}}{{#ifeq:{{{1|}}}|SerialKiller1|You win if you are the last player alive (or if nothing can prevent the same).|}}{{#ifeq:{{{1|}}}|SerialKiller2|You win if you control at least half of the living players (or if nothing can prevent the same).|}}{{#ifeq:{{{1|}}}|Survivor|You win if you are alive when the game ends.|}}{{#ifeq:{{{1|}}}|Jester|You win if you are lynched at any time.|}}{{#ifeq:{{{1|}}}|Jester1|You win if you are lynched at any time.|}}{{#ifeq:{{{1|}}}|Jester2|You win if you are lynched at any time. You lose if you die by any other means.|}}{{#ifeq:{{{1|}}}|Mime|You win if all members of your group are lynched.|}}{{#ifeq:{{{1|}}}|Mime1|You win if all members of your group are lynched.|}}{{#ifeq:{{{1|}}}|Mime2|You win if all members of your group are dead.|}}{{#ifeq:{{{1|}}}|Lyncher|[Player] is your lynchee. You win if you are alive and [Player] is lynched at any time.|}}{{#ifeq:{{{1|}}}|Lyncher1|[Player] is your lynchee. You win if you are alive and [Player] is lynched at any time.|}}{{#ifeq:{{{1|}}}|Lyncher2|[Player] is your lynchee. You win if [Player] is lynched at any time.|}}{{#ifeq:{{{1|}}}|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.|}}{{#ifeq:{{{1|}}}|Custom|You win if {{{2|}}}|}}<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.|}}{{#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.


==Syntax==
==Syntax==

Revision as of 02:04, 19 May 2018

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

Town2=You win if all mafia members are eliminated 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.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).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