It looks like your turn_counter is basically just replicating functionality that can already be accessed through the (obscure and entirely undocumented) global helper function current_side_nturns() ;) The vanilla code actually uses that function! I replaced it with the turn_counter kludge because I...
Last update for now. Instead of always moving towards the closest enemy, ships will look at the closest 3 and pick the best one to close in with. I think it's a good compromise between giving the AI some flexibility with how ships close in on the enemy while also avoiding having ships charge right i...
A small update: inspired by zolobolo's post here , I modified the boarding AI code so that if the target has any weapons left and much larger crew than the boarding ship, it performs a raid instead of a capture. It turns out this is enough to make the difference between defeat and victory in an auto...
Huh, I wonder if it didn't work because "shield_piercing_level" is also the name of the weapon property. Correct me if I'm wrong, but if you define function WeaponProperty.foo(w) --return stuff end Then any time you evaluate w.foo it will call the foo function to determine what value resul...
While the vanilla tactical AI does a decent enough job, I've noticed though that sometimes it takes really disproportionate losses, so I wanted to see if I could improve it at all. This mod focuses mainly on target prioritization for the AI, nothing terribly fancy, but I think it does help out the t...
Uhh definitely don't build factories on small worlds that you plan to use for mining/farming. You lose like 20 turns of potential income for a not-that-large boost to build speed. EDIT: now, if you know you're going to use that factory later to build lots of ships, that's another matter. But that us...
In case anyone is interested, here is the full source code of the mod. Anyone know how I can get existing local functions to be included in the ENV when the mod loads? That way I wouldn't have to reduplicate get_hull() etc. local Log, log0, log in gui.BattleLog local min,max,ceil in math local funct...
siyoa wrote:it seems I do not understand LUA syntax as I cannot call the weaponproperty no matter what I try, but found very ugly hack to make it work for the time being, at least it seems it is working
Hello, a few things that I think would really improve the utility of diplomacy in the game: ⋅ ask/demand empires to declare war on other empires ⋅ ask/demand empires to make peace with other empires (especially when that other empire is your ally) ⋅ for both of the abov...
Hi everyone! I made a mod that tweaks the way ship damage works in the game. It was kind of bothering me how SiS had this interesting battle damage mechanic that tracks how damage affects ships (by disabling weapons and other ship systems), but it wasn't as relevant as it could be most of the time s...