Lua with AIPs

Moderators: GSH, VSMIT, Red Devil, Commando

Post Reply
User avatar
AI_Unit
Thunderbolt
Posts: 186
Joined: Fri Mar 30, 2012 11:53 pm
Location: Mire, negotiating with Scions.
Contact:

Lua with AIPs

Post by AI_Unit »

I've been scanning through different mods to get ideas on how to make my AI more efficient in the way it works. I've noticed that different mods such as G66 and/or FE use Lua for different things such as defending pools, builders or essential units. Is the Lua all pre written or would I have to write my own stuff? I would like to find out how to do it, I'm sure it's the Lua that controls all of this stuff due to the fact that in the G66 AIPs they have so many DefendArea priorities that link to a specific Lua file, can some explain what the Lua actually does or how I can do it? I really want to make my AI efficient.
Current Mod: AI's Expansion Pack

AI_Unit was here.
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: Lua with AIPs

Post by General BlackDragon »

Red Devil is the only modder to have made use of the AIP's LuaCondition. Read the changelog for more info.
Battlezone Classic Public Forums
*****General BlackDragon*****
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: Lua with AIPs

Post by Red Devil »

the main reason i used Lua was because the current AIP functions used for path checking don't work well and, well, then i got carried away :mrgreen:

also, Ken added full Lua support to BZ1, so you can use Lua there, too.
If given the truth, the people can be depended upon to meet any national crisis. The great point is to bring them the real facts - and beer.
Abraham Lincoln

Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV

Lifetime member of JBS and NRA
User avatar
AI_Unit
Thunderbolt
Posts: 186
Joined: Fri Mar 30, 2012 11:53 pm
Location: Mire, negotiating with Scions.
Contact:

Re: Lua with AIPs

Post by AI_Unit »

Well I see units defending, patrolling and what not, and I don't think they're ODF specific. I want to figure it out
Current Mod: AI's Expansion Pack

AI_Unit was here.
User avatar
Red Devil
Recycler
Posts: 4398
Joined: Fri Feb 18, 2011 5:10 pm
Location: High in the Rocky Mountains

Re: Lua with AIPs

Post by Red Devil »

it uses the provideName/Names in order to 'genericize' things.
If given the truth, the people can be depended upon to meet any national crisis. The great point is to bring them the real facts - and beer.
Abraham Lincoln

Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV

Lifetime member of JBS and NRA
Post Reply