Game End triggers? NEW Question!
Posted: 17 Mar 2011, 02:19
When will the end game triggers (lua wise) be redone and what will they look like?
Open Source Realtime Strategy Game Engine
https://springrts.com/phpbb/
Or has none of this been decided yet?will declare game over, a list of winning allyteams can be passed, if undecided ( like when dropped from the host ) it should be empty ( no winner ), in the case of a draw with multiple winners, all should be listed
Code: Select all
table.insert (winners, 0) --add team 0 to winners list
table.insert (winners, 2) --add team 2 to winners list
Spring.GameOver (winners) --now the game ends and team 0+2 have won
Code: Select all
gadget:GameFrame (frame)
if (frame == 5*60*30) then
winner = Spring.GetUnitTeam (unitID_of_Flag)
Spring.GameOver (winner)
end
why is this thread still in "Game & Module Development Tutorials & Resources"? Its not a tutorial & not a resource of any kind.knorke wrote:http://springrts.com/wiki/Lua_SyncedCtrl#Game_End
why in Game & Module Development Tutorials & Resources?