Game.SetWinner (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a member of Game. This is a static method, invoke it with a dot. |
Usage
void Game.SetWinner(TeamID newWinner, VictoryType newVictory)
Parameters
newWinner: No description available. newVictory: No description available.
Source code samples
Redundant occurences have been removed.
CivsAlive.lua - DLC_01 DLC
DLC/DLC_01/Scenarios/Mongol Scenario/CivsAlive.lua
0049
|
Game.SetWinner(Game.GetActiveTeam(), GameInfo.Victories["VICTORY_DOMINATION"].ID); |
TurnsRemaining.lua - DLC_02 DLC
DLC/DLC_02/Scenarios/NewWorldScenario/TurnsRemaining.lua
0020
|
Game.SetWinner(player:GetTeam(), GameInfo.Victories["VICTORY_DOMINATION"].ID); |
TurnsRemaining.lua - DLC_04 DLC
DLC/DLC_04/Scenarios/1066Scenario/TurnsRemaining.lua
0038
|
Game.SetWinner(Players[Game.GetActivePlayer()]:GetTeam(), GameInfo.Victories["VICTORY_DOMINATION"].ID); |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0108
|
Game.SetWinner(Players[Game.GetActivePlayer()]:GetTeam(), GameInfo.Victories["VICTORY_TIME"].ID); |
TurnsRemaining.lua (G&K)
DLC/Expansion/Scenarios/SteampunkScenario/TurnsRemaining.lua
0124
|
Game.SetWinner(iLeaderTeam, GameInfo.Victories["VICTORY_TIME"].ID); |
The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.