Euflorium: The Eufloria Community

Eufloria => Eufloria Classic => Eufloria Classic Mods => Topic started by: Breakord on February 04, 2013, 08:54:15 PM

Title: Is there any way to know that by which faction each dead seedlings was destroyed
Post by: Breakord on February 04, 2013, 08:54:15 PM
Still have so many questions..
Because I am writing something called "SuperWeapon"..
In this system, empires can spend their technology points to develop super weapons.
I thought the way to get technology points is by destroying enemy seedlings and losing own seedlings.
It's easy to deal with the part "losing own seedlings",
but how can I know how many seedlings a empire destroyed in its active attacks?
Title: Re: Is there any way to know that by which faction each dead seedlings was destroyed
Post by: Pilchard123 on February 05, 2013, 04:04:11 AM
I don't think so. One thing you could do is change 'destroying enemy seedlings' to 'participating in battles'. When a seedling is killed, the points that would be gained from that kill are divided between the other factions on that asteroid.

For example, if there are three armies in orbit aroid an asteroid
A, with 100 seedlings on the asteroid
B, with 200 seedlings on the asteroid
C, with 50 seedlings on the asteroid
A kill is worth 1 point

If a seedling from A is killed, then Empire B gets 1*(200/(200+50)) = 0.8 points. Empire C gets 1*(50/(200+50)) = 0.2 points.

More generally, the points awarded to faction F when a seedling from faction X are given by

PointsPerKill*(FSeedlingsAtAsteroid / (TotalSeedlingsAtAsteroidThatAreNotFromX))
Title: Re: Is there any way to know that by which faction each dead seedlings was destroyed
Post by: Breakord on February 05, 2013, 09:51:20 AM
More generally, the points awarded to faction F when a seedling from faction X are given by
PointsPerKill*(FSeedlingsAtAsteroid / (TotalSeedlingsAtAsteroidThatAreNotFromX))
Phew.Seems like there are no better solutions...
Title: Re: Is there any way to know that by which faction each dead seedlings was destroyed
Post by: Pilchard123 on February 05, 2013, 04:15:42 PM
There might well be a better solution, I'm not sure. It was only an idea.