victory condition depend on targeted metal resource

victory condition depend on targeted metal resource

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
alfianjoe
Posts: 3
Joined: 14 Feb 2013, 09:07

victory condition depend on targeted metal resource

Post by alfianjoe »

:-) excuse me im a newbie in spring and programming
I want to know if there are any games that use the victory point based on amount of metal resource?
i want to mod a game that use metal to became winner and stressed on unit economic

*excuse me for my bad english and if i got in wrong forum to ask

thanks :-)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: victory condition depend on targeted metal resource

Post by smoth »

there is no game that currently has such a rule but there is nothing stopping you from creating it.

This is the right forum.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: victory condition depend on targeted metal resource

Post by knorke »

There is a function that when called ends the game and can also declare winners: Spring.GameOver, example:
http://springrts.com/phpbb/viewtopic.ph ... er#p477697

to read resources of players you can also find functions here:
http://springrts.com/wiki/Lua_Scripting
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: victory condition depend on targeted metal resource

Post by Forboding Angel »

A gadget like that even I could manage to pull off, so in short, your prospects are looks quite excellent :-D
alfianjoe
Posts: 3
Joined: 14 Feb 2013, 09:07

Re: victory condition depend on targeted metal resource

Post by alfianjoe »

smoth wrote:there is no game that currently has such a rule but there is nothing stopping you from creating it.

This is the right forum.
knorke wrote:There is a function that when called ends the game and can also declare winners: Spring.GameOver, example:
http://springrts.com/phpbb/viewtopic.ph ... er#p477697

to read resources of players you can also find functions here:
http://springrts.com/wiki/Lua_Scripting
Forboding Angel wrote:A gadget like that even I could manage to pull off, so in short, your prospects are looks quite excellent :-D
thanks everybody for answering my question, i think i will doing some research in spring lua scripting to make that gadget,however im still a noob :-D

by the way i want to know what different between syncedctrl and syncedread?is that same like post and get in php language?or maybe someone can point me to the right post which discusses it?

thanks before
User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Re: victory condition depend on targeted metal resource

Post by yuritch »

syncedctrl functions can (and will) change the game state, syncedread can't.
alfianjoe
Posts: 3
Joined: 14 Feb 2013, 09:07

Re: victory condition depend on targeted metal resource

Post by alfianjoe »

yuritch wrote:syncedctrl functions can (and will) change the game state, syncedread can't.
thank you..... :mrgreen:
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: victory condition depend on targeted metal resource

Post by zwzsg »

SyncedRead can be used both in synced and unsynced, while SyncedControl can only be used in synced.
Post Reply

Return to “Game Development”