Page 1 of 1
victory condition depend on targeted metal resource
Posted: 04 Jun 2013, 16:41
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

Re: victory condition depend on targeted metal resource
Posted: 04 Jun 2013, 17:12
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.
Re: victory condition depend on targeted metal resource
Posted: 04 Jun 2013, 18:19
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
Re: victory condition depend on targeted metal resource
Posted: 04 Jun 2013, 21:36
by Forboding Angel
A gadget like that even I could manage to pull off, so in short, your prospects are looks quite excellent :-D
Re: victory condition depend on targeted metal resource
Posted: 05 Jun 2013, 06:38
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.
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
Re: victory condition depend on targeted metal resource
Posted: 05 Jun 2013, 09:04
by yuritch
syncedctrl functions can (and will) change the game state, syncedread can't.
Re: victory condition depend on targeted metal resource
Posted: 05 Jun 2013, 15:28
by alfianjoe
yuritch wrote:syncedctrl functions can (and will) change the game state, syncedread can't.
thank you.....

Re: victory condition depend on targeted metal resource
Posted: 05 Jun 2013, 20:05
by zwzsg
SyncedRead can be used both in synced and unsynced, while SyncedControl can only be used in synced.