Game End triggers? NEW Question!
Moderator: Moderators
- bobthedinosaur
- Blood & Steel Developer
- Posts: 2702
- Joined: 25 Aug 2004, 13:31
Game End triggers? NEW Question!
When will the end game triggers (lua wise) be redone and what will they look like?
Re: Game End triggers? NEW Question!
http://springrts.com/wiki/Lua_SyncedCtrl#Game_End
why in Game & Module Development Tutorials & Resources?
why in Game & Module Development Tutorials & Resources?
- bobthedinosaur
- Blood & Steel Developer
- Posts: 2702
- Joined: 25 Aug 2004, 13:31
Re: Game End triggers? NEW Question!
I believe this pertains to mods/ and tutorials for modding, even though it may be in lua.
How would you set up this:
How would you set up this:
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
Re: Game End triggers? NEW Question!
but isnt this subforum the archive?
anyway, use like this:
Or say you where you have a neutral flag in the middle of the map and players can capture it. And whoever controlls it after 5 minutes wins.
Then you could do:
It says New in version 0.83.x so it is probally some months away.
anyway, use like this:
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
Then you could do:
Code: Select all
gadget:GameFrame (frame)
if (frame == 5*60*30) then
winner = Spring.GetUnitTeam (unitID_of_Flag)
Spring.GameOver (winner)
end
Re: Game End triggers? NEW Question!
Lack of any construction-able units would be a factor I think
Re: Game End triggers? NEW Question!
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?