LUA REQUEST: Give Allys extra resources

LUA REQUEST: Give Allys extra resources

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
benthemeek
Posts: 10
Joined: 21 Mar 2007, 22:49

LUA REQUEST: Give Allys extra resources

Post by benthemeek »

Would it be possible to have a script that will give 5 percent of your resources to an ally or allies if you are making more than you are expending and you have exceeded 99 percent? It would be good to do it only when they are less than 80 percent or something. Anyway just a thought...
User avatar
Scikar
Posts: 154
Joined: 30 Jan 2006, 07:13

Post by Scikar »

You mean like the red sliders already do?
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Post by TheFatController »

red sliders give off your leakage, i guess it'd be possible to write one to give a percentage of your production to stalling allies too.

But most spring players don't cooperate much so it'd be of limited use!
benthemeek
Posts: 10
Joined: 21 Mar 2007, 22:49

Post by benthemeek »

Sorry I am a complete newb and just started playing the game last week. Red sliders send excess to allies? Is that documented anywhere :oops:
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Post by SinbadEV »

It's probably documented somewhere but... uhm... yeah user friendly documentation is something we need to work on...
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Red sliders on the resource bars, just FYI. All resources above the slider are auto-shared evenly to all your allies.
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Post by TheFatController »

Tobi wrote:Red sliders on the resource bars, just FYI. All resources above the slider are auto-shared evenly to all your allies.
Maybe someone could write a widget that gives your excess production proportionately to allies who were stalling or well off :)
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Post by TheFatController »

This thread gave me the idea for this widget

http://spring.unknown-files.net/file/26 ... ll_Assist/
Post Reply

Return to “Lua Scripts”