Question: Making components wear out |
Ok, I want to know if there is any way to make components take damage every turn, ultimately resulting in their destruction after a certain number of turns. I've already tried using the "Component Regeneration" ability type with a negative value but this doesn't work.
Also, is there any way to make a component that would work as a backup for a component like the one above, that would only become active/"degenerate" after the first one had failed.
Thanks for any advice you can provide.
Re: Question: Making components wear out
1)//you would have to write some custom functions in the event script.
It is posible to create demage type, which can demage only one component. But I don't know if function, which cause demage to vehicle each turn can be found in game, so script may be best idia.
2)I think it is posible. May be you can use Get_Design_Specific_Component_Count(), but i don't know, if it change result when one of components destroyed. Also devnul mod uses function Get_Design_Ability_Component_Count() in components file, I think tgis function can change its meaning when component destroyed. At least you can try these functions. You can make such ability (but i don't know if it will work, you can try different wariations):
Ability 1 Type := Movement Standard
Ability 1 Description := works only if no other engines.
Ability 1 Scope := Space Object
Ability 1 Range Formula := 0
Ability 1 Amount 1 Formula := iff(Get_Design_Ability_Total("Movement Standard")...
Re: Question: Making components wear out
Get_Design_XXX() type functions only work in requirement fields.
Re: Question: Making components wear out
Are there any functions, which works in battle?
Re: Question: Making components wear out
I'm not sure what exactly you are looking for. There are no functions that trigger specifically during battle, but every value used in battle was determined by some function at the ship design stage (or from constructed facilities, space object abilities, etc.).
There is certainly no way to evoke event script functions during a battle.




Re: Question: Making components wear out
For the first part, you would have to write some custom functions in the event script. I'm not sure you can even deal damage to individual components, however. You might be limited to just dealing X damage to a ship.
To the second part, no.
SpaceEmpires.net | Space Empires Wiki