• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Platy's Peculiar Pleasant Posh Python

Released Script Pack, 3 components with Player Script Data.

Developing Traits + Faith + Happy Golden Age
 
Morale

Features:
Units may gain/lose Morale after a Combat Victory.

self.iMaxMorale = 15 ## Max Morale Chance = X%
self.iGoodMorale = 25 ## Good Morale Threshold: Max X% Damage
self.iGoldenAgeModifier = 150 ## Golden Age: X% Good Morale Chance
self.iMovesRegain = 1 ## Regain X Movement Point due to Good Morale
self.iBadMorale = 75 ## Bad Morale Threshold: Min X% Damage
self.iAnarchyModifier = 150 ## Anarchy: X% Bad Morale Chance
self.iBadTurns = 2 ## Immobile Turns due to Bad Morale

Winning a combat with > 75% health remaining can result in Good Morale.
This chance is then scaled to the Max Morale Chance.
After which it is enhanced by 50% during Golden Age.

Thus, a unit which wins with 90% Health, has a chance of:
(90 - 75) * 15 / 25 = 9%
While a unit which wins with 100% Health:
(100 - 75) * 15 / 25 = 15%

On the other hand, winning with < 25% health remaining can result in Bad Morale.

Good Morale gives the unit 1 additional Move Point.
Bad Morale results in 2 Immobile Turns.
 
Hey Platy :D
Is this possible?

I would kill for a feature like this (well maybe not kill, but be very happy ;))

The P is Projects and Zzz is Processezzz (new icons would ofcourse have to be made, but wanted to ask if it was even possible before doing)

attachment.php
 
Quite easy for sure, but seriously, isn't it clearer currently when they are separated by new lines?
 
Will bother only after buttons are available.
But either way, it won't be tonight.
Monday is boring full working day, after which I rather spend time on entertainment than boring modding.
 
Those unit and building icons are hud styles, so you probably have to convert or make new buttons too.
 
Sweeeeeet :D Thanks :D

Did I merge it wrong or did you enlarge some of the icons

New
attachment.php


Old
attachment.php


Especially the icon/feature that hides the unbuildables is gone?
ehm, cough cough, nevermind ;)

Also, dont know if its possible, but can the borders around the new Builds (and especially the blank space) be removed or are they hardcoded?

Besides that, VERY nice. I'm gonna enjoy this. Especially when playing on my tablet with Splashtop. :goodjob:
 
rgr. maybe remove the blank space then, as it looks odd. Is it possible to lift the bar (the one with red dot dot dot on the first picture) a little bit, so it lies between the units on the tile and the buildables? It looks very squeezed in with unit orders and buildables in cities.

attachment.php
 
Up to you :D
Haven't really tested the pedia to see how it looks in a mod with many many new contents, so would be fun to take a look.
Nowadays I don't play though, so can't give you any feedback.

P.S.
Congrats on your girl :)
 
Back
Top Bottom