Lua with AIPs
Moderators: GSH, VSMIT, Red Devil, Commando
- AI_Unit
- Thunderbolt
- Posts: 186
- Joined: Fri Mar 30, 2012 11:53 pm
- Location: Mire, negotiating with Scions.
- Contact:
Lua with AIPs
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.
- General BlackDragon
- Flying Mauler
- Posts: 2408
- Joined: Sat Feb 19, 2011 6:37 am
- Contact:
Re: Lua with AIPs
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*****
*****General BlackDragon*****
- Red Devil
- Recycler
- Posts: 4398
- Joined: Fri Feb 18, 2011 5:10 pm
- Location: High in the Rocky Mountains
Re: Lua with AIPs
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
also, Ken added full Lua support to BZ1, so you can use Lua there, too.
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
Abraham Lincoln
Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV
Lifetime member of JBS and NRA
- AI_Unit
- Thunderbolt
- Posts: 186
- Joined: Fri Mar 30, 2012 11:53 pm
- Location: Mire, negotiating with Scions.
- Contact:
Re: Lua with AIPs
Well I see units defending, patrolling and what not, and I don't think they're ODF specific. I want to figure it out
- Red Devil
- Recycler
- Posts: 4398
- Joined: Fri Feb 18, 2011 5:10 pm
- Location: High in the Rocky Mountains
Re: Lua with AIPs
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
Abraham Lincoln
Battlestrat, FE, G66, In The Shadows, Starfleet, Uler, & ZTV
Lifetime member of JBS and NRA