Assigning rudimentary AI to units ingame

Assigning rudimentary AI to units ingame

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

Moderator: Moderators

Post Reply
Arcenciel
Posts: 10
Joined: 12 Jan 2013, 00:52

Assigning rudimentary AI to units ingame

Post by Arcenciel »

Hello everyone, before I set out on learning LUA, etc, I just want to know if what I plan to do is possible.

Let's say you have three construction kbots. I want to make a widget where you assign those kbots to a specific group (let's say group 1). Any builders in this group will now manage your base (building eco, assisting factories, etc) based on your metal/energy storage/income...I guess what I'm asking is if LUA has the power to read variables like metal and energy, and then assign commands to builders without consulting the actual user...

Thanks!
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: Assigning rudimentary AI to units ingame

Post by FLOZi »

Yep.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Assigning rudimentary AI to units ingame

Post by knorke »

I just want to know if what I plan to do is possible.
yipyipyipyip
Image

start here
http://springrts.com/wiki/Lua_Scripting
(GameState and Client)
Post Reply

Return to “Lua Scripts”