[George] How are Destiny and Combat Power calculated?

Freeform discussion about anything related to modding Transcendence.
Post Reply
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

I'm trying to do a Dynamic Systems mod where no action is left unpunished. To accomplish that, I am writing code that sends fleets to retaliate according to two valuables-- the CombatPower of the targeted spaceobject [even stations] and retaliationlevel (a value that reflects the amount of conflict in a system). I was also wondering if I could use ObjGetDestiny as a way to vary how the retaliation fleets react. Can you please post how these two variables are calculated?
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Like it says in the post I linked to in the other thread, CombatPower is proportional to score for AI ships. The score is hardcoded on every ship class.

Destiny is just a random number between 0 and 359, set on object creation.
Post Reply