Jump to content

LUA's/making AI build custom units?


Recommended Posts

How exactly do you do this? Where do you get an lua editor/lua files for foc? Why is it that I added an aat for the rebellion, and the rebellion will build them, but no other units? If I play as rebs, the empire only seems to build the ground tie fighter. However, occasionally the rebels attack me with 5/10 squads of aat's. Those seem to be the only units that the ai will build and use.  How can I get the ai to use custom units?  Is the problem possibly my method of "creating" more space in the build menus? What I did was make the custom unit buildable on one or two planets, and then took a similar unit of the list for the planet. Thus replacing the old unit with a new one for that planet. Is it possible the ai is having a problem with that? The empire seems to build the tie fighter all the time, and that is buildable everywhere. Of course, the aat is only buildable on geonosis and mustafar, so I don't think that is why. 

 

Another question...I am trying to make the ai "better" by starting them with more buildings and higher level space stations from the start so they in theory would spend less on buildings and bases and have more to spend on units.  However, when I start the game, the ai seems retarded. They won't attack with large fleets at all, and when a planet is empty, like right after a conquest, the ai no longer builds buildings there. They occasionally get a lvl 1 space station, before the third side takes it over and leaves it empty as well. Is there a probability on whether the ai will attack, based on what level the space station of a planet is? How can I change when they attack, how often, what army size, etc.?

 

Thanks

Link to comment
Share on other sites

Talk to Dark Lord and D803.

 

And make sure I'm there to here it. ;D (I really want to know too)

"I feel fantastic and I'm

Still Alive

and when you're dying I will be

Still Alive

and when you're dead I will be

Still Alive

STILL ALIVE"~GLaDOS

Anybody who thinks Palpatine is a sepratist knows NOTHING about star Wars

When in doubt- rocket it.

Dowload The Underworld's Might beta from Filefront!

Link to comment
Share on other sites

Hey! I don;t know how to do this!

 

I only know how to LUA this stuff for Skirmish!

 

In GC, the AI builds based on Ai_Combat_Power/Cost ratio...your groundTIEs and AATs probably have too high AI Combat Power and too low a cost the AI thinks nothing else is worth buidling

http://img.photobucket.com/albums/v423/kc1991/droid803sig.jpg

"That was fun"

Link to comment
Share on other sites

They build other units...just not the other custom ones.  Rebels seem to build just about everything except snowspeeders and mptl's, which is weird, because mptl's are good.  Emps seem to build only tie fighters, storms, but also seem to attack with tie crawlers and atst's. I'll try lowering the ai combat power.

 

edit-ah yes...tie fighter land had 2000 ai combat power. I changed that, testing now.

Link to comment
Share on other sites

In GC, the AI builds based on Ai_Combat_Power/Cost ratio...
WHAT!?

 

So that's what that line does...But...

 

I've gotta get modding! Spam!!!

"I feel fantastic and I'm

Still Alive

and when you're dying I will be

Still Alive

and when you're dead I will be

Still Alive

STILL ALIVE"~GLaDOS

Anybody who thinks Palpatine is a sepratist knows NOTHING about star Wars

When in doubt- rocket it.

Dowload The Underworld's Might beta from Filefront!

Link to comment
Share on other sites

Well, it seems to work well now. The rebels don't seem to attack me at all, but maybe I didn't give them enough time (their territory is sort of split up).

 

Still, if you know how to change probabilities of attack and such, I would like to know.

 

Thanks for all your help.

Link to comment
Share on other sites

OK, I have my own AI questions.

Firstly, the CIS won't build stuff or attack, they use a varient of the Consortium AI. Why?

Also, I'd like different factions to have different stategies. I'd like the Consortium to use mainly heroes, with some backup tanks, I want the rebels to SPAM infilitrators and commandoes(I might add them) and I want the Empire to focus on walkers. How would I go about doing this? Can I use the AI combat power line?

Finally, how should I start LUAing? I'm a noob at it.

"I feel fantastic and I'm

Still Alive

and when you're dying I will be

Still Alive

and when you're dead I will be

Still Alive

STILL ALIVE"~GLaDOS

Anybody who thinks Palpatine is a sepratist knows NOTHING about star Wars

When in doubt- rocket it.

Dowload The Underworld's Might beta from Filefront!

Link to comment
Share on other sites

well yes whatever you want spammed, give it a higher AI combat power and a lower cost. But don't autoresolve if it doesn't really affect it. Alternatively, you can use the LUAs "BuildGroundForcesPlan" and "BuildSpaceForcesPlan" (fiddle with the values)...and maybe "ConquerOpponentPlan"

 

Just open up the LUAs provided with the source (yea, they're not comprehensive, but they'll do)

http://img.photobucket.com/albums/v423/kc1991/droid803sig.jpg

"That was fun"

Link to comment
Share on other sites

Use the decompiled ones with the Map editor.

well yes whatever you want spammed, give it a higher AI combat power and a lower cost. But don't autoresolve if it doesn't really affect it. Alternatively, you can use the LUAs "BuildGroundForcesPlan" and "BuildSpaceForcesPlan" (fiddle with the values)...and maybe "ConquerOpponentPlan"

 

Just open up the LUAs provided with the source (yea, they're not comprehensive, but they'll do)

Thanks for the help.

I can understand why AT-TEs aren't spammed, but why no Venators? hmm...

"I feel fantastic and I'm

Still Alive

and when you're dying I will be

Still Alive

and when you're dead I will be

Still Alive

STILL ALIVE"~GLaDOS

Anybody who thinks Palpatine is a sepratist knows NOTHING about star Wars

When in doubt- rocket it.

Dowload The Underworld's Might beta from Filefront!

Link to comment
Share on other sites

Well yes whatever you want spammed, give it a higher AI combat power and a lower cost. But don't autoresolve if it doesn't really affect it. Alternatively, you can use the LUAs "BuildGroundForcesPlan" and "BuildSpaceForcesPlan" (fiddle with the values)...and maybe "ConquerOpponentPlan"

 

Just open up the LUAs provided with the source (yea, they're not comprehensive, but they'll do)

 

 

Good tip ! - will take a look at these values as well.

http://i37.photobucket.com/albums/e99/drone_pilot/JC_Sig.jpg

 

Sote Mod Website @

 

http://sote-mod.com/forum/index.php?act=home

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

Copyright (c) 1999-2022 by SWRebellion Community - All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Star Wars(TM) is a registered trademark of LucasFilm, Ltd. We are not affiliated with LucasFilm or Walt Disney. This is a fan site and online gaming community (non-profit). Powered by Invision Community

×
×
  • Create New...