Game End triggers? NEW Question!

Game End triggers? NEW Question!

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Game End triggers? NEW Question!

Post by bobthedinosaur »

When will the end game triggers (lua wise) be redone and what will they look like?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Game End triggers? NEW Question!

Post by knorke »

http://springrts.com/wiki/Lua_SyncedCtrl#Game_End

why in Game & Module Development Tutorials & Resources?
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Re: Game End triggers? NEW Question!

Post by bobthedinosaur »

I believe this pertains to mods/ and tutorials for modding, even though it may be in lua.

How would you set up this:
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
Or has none of this been decided yet?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Game End triggers? NEW Question!

Post by knorke »

but isnt this subforum the archive?

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
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:

Code: Select all

gadget:GameFrame (frame)
if (frame == 5*60*30) then
  winner = Spring.GetUnitTeam (unitID_of_Flag)
  Spring.GameOver (winner)
end
It says New in version 0.83.x so it is probally some months away.
McLoud
Posts: 36
Joined: 03 Sep 2006, 22:31

Re: Game End triggers? NEW Question!

Post by McLoud »

Lack of any construction-able units would be a factor I think
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Game End triggers? NEW Question!

Post by knorke »

knorke wrote:http://springrts.com/wiki/Lua_SyncedCtrl#Game_End

why in Game & Module Development Tutorials & Resources?
why is this thread still in "Game & Module Development Tutorials & Resources"? Its not a tutorial & not a resource of any kind.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Game End triggers? NEW Question!

Post by Tobi »

moved
Post Reply

Return to “Game Development”