Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

AI Combat Scripts

Page: 1 of 1
 beancounter
07-25-2004, 2:19 PM
#1
Has anyone released a mod that changes the default combat scripts? The current scripts are really lacking, especially with the Dark Jedi. All three dark Jedi classes use the same script and I do not believe they can cast any of the speed lines. If there are no mods out there I might take a shot at it.
 Darth Gungis
07-25-2004, 2:59 PM
#2
Originally posted by beancounter
Has anyone released a mod that changes the default combat scripts? The current scripts are really lacking, especially with the Dark Jedi. All three dark Jedi classes use the same script and I do not believe they can cast any of the speed lines. If there are no mods out there I might take a shot at it.

I don't think there is any mod changing the AI's way of thinking in battle, if thats what you mean. But if you are after some real challenges i suggest Talchia's Hardcore mod.:)
 beancounter
07-25-2004, 4:38 PM
#3
Thanks for the response. I have tried the hardcore Mod and it does make the game more difficult, but it is still annoying at how bad the AI fights. The regular non boss Jedi will *never* cast a speed power, Dark Jedi Consulars will consistently attack me with there sabers and a Dark Guardian will use force power after force power. Plus the Dark Jedi hardly ever try to breach my characters they just sit there and throw spell after spell at me. They each really should have their own script. I think I will give it a shot, I anything will be an improvement over the current scripts.
 beancounter
07-25-2004, 10:40 PM
#4
Success!!!

After playing around with the scripts in k_inc_gensupport.nss I have managed to get the AI to start buffing themselves with speed and to throw out breach at your Jedi.

Sorry if this is old news, but the AI works by having a "Opening Move" followed by generating three round combo moves.

The opening move is either using a shield or casting force immunity. Those actions are done only once, after you breach them or bring down their shield they wil not attempt to restablish it.

A sample combo is Sith Brutalize which is using a Choke Power, followed by a Drain Power followed by a Push power. Supprisingly, it was fairly easy to add additional combos such as Buff_Attack1 which is Speed, Feat Attack, Feat Attack.

The next step is a lot harder - to build some logic for what combos the AI should use. I want Jedi Guardians to use a speed line followed by melee attacks and a Consular to rely exclusively on his force powers, plus breaching anyone that has some defenses up.

I hope this should make the AI a whole lot more intelligent, plus it should reduce the micromangement of your own party members since they use the same scripts.

On a side note, I was really amazed at how *bad* the Dark Jedi were setup. I did all my testing on Tattoine against the three Dark Jedi you face there. One of them has two sabers, one has a double saber and one has single saber saber. The developers gave the single saber to a Guardian(WTF) and the Double Bladed and Two Sabers to a Consular & Sentinel?? Plus all three were only level 8 - talk about wimps! It is almost as if they wanted the game to be this easy...
 Mono_Giganto
07-28-2004, 1:25 PM
#5
What if you used the script from the 2 dark jedi in the Unknown Temple? One of them attacked you while the other casted support Force, she even used Breach every now and then.
 beancounter
08-02-2004, 9:51 AM
#6
Mono, thanks for the reply, but those Jedi are just using the Boss AI script, and the chance of them casting Breach is completely random.

Well, I have managed to have the Dark Jedi buff themselves, and cast Breach but I have ran in two problems.

First, the Dark Jedi are spending too much time getting ready to fight. The Jedi are spending two or three rounds buffing themselves and then another round casting Breach at the player. By this point I have usually managed to kill them off with regular attacks.

Second, the script function GetHasSpellEffect is partially broken. It works fine if you cast a buff spell during combat, but if you buff before combat it takes a couple of rounds to detect your buff.

So, I would like to get everyones opinion on having the Jedi cheat a little on the first round only. You can have them insta cast several buff spells in the first round. So, on the opening round they would cast Immunity, Speed and Energy Resistance if they have those spells. Or I could have them insta cast Breach automatically at the PC.

Another question - what do you all think of having NPC's reuse their force shield? I tried it out and it really makes a lot of the droid fights more difficult.

Thanks!
 RedHawke
08-02-2004, 9:55 AM
#7
Originally posted by beancounter
Another question - what do you all think of having NPC's reuse their force shield? I tried it out and it really makes a lot of the droid fights more difficult.

That sounds pretty cool to me, and does make sense if you have a shield with 5 charges you would use them all to protect your life. So I say... yes! :D
Page: 1 of 1