ENDLESS™ Space is a turn-based 4X strategy game, covering the space colonization age in the ENDLESS™ Universe. You control every aspect of your civilization as you strive for galactic dominion.
I am creating traits that allow me to change what different races prefer for planets, to do this I set base FIDS to 0 and each size of planet to a set number of pop no matter the planet type. Now in the trait I change each stat specifically to the Trait.
[CODE]
[/CODE]
The problem I run into is population, as its very hard to change each different size with the same number. To get around this I used percents but this causes the max pop to often be a decimal number. This really doesn't cause any game issues as far as I see, but when you look at a planet that say its max population is 8.2 it is not a very clean solution.
If I could use modulo in a binary operation on population I believe I could make it a whole number easily.
Can a "round" function be more usable for you? or the Modulo is clearly a must have?
I think we could quite easily force some of the properties to be "int" instead of "float" by adding a "round" attribute on the simulationObjectPropertyDescriptor element. You could say the property to "Round", "Floor", "Ceil", etc...
Did this solution be a good one for you? Does any other modders who want this kind of possibilities?
Yea, I'm working on writing a guide like this. The more we get specific modding demands, the more it becomes "urgent" to have a mini-guide, other than the modding tutorials.
Omg yes INT () is definately needed - I want all m advanced math commands muhaha... I actually worked up a scaling formula for ship engine speed based on tonnage. 0.5+257.1478/tonnage = and maintaining a constant speed curve between classes would have been easier due to round to nearest whole number nature.
Nycidian
Newcomer
Nycidian
Newcomer
100g2g ptsReport comment
Why do you report Nycidian?
Are you sure you want to block Nycidian ?
BlockCancelAre you sure you want to unblock Nycidian ?
UnblockCancelDEVThorTillas
Dev
Florian - Lead programmer on Humankind
DEVThorTillas
Dev
30 200g2g ptsReport comment
Why do you report ThorTillas?
Are you sure you want to block ThorTillas ?
BlockCancelAre you sure you want to unblock ThorTillas ?
UnblockCancelNycidian
Newcomer
Nycidian
Newcomer
100g2g ptsReport comment
Why do you report Nycidian?
Are you sure you want to block Nycidian ?
BlockCancelAre you sure you want to unblock Nycidian ?
UnblockCancelDEVThorTillas
Dev
Florian - Lead programmer on Humankind
DEVThorTillas
Dev
30 200g2g ptsReport comment
Why do you report ThorTillas?
Are you sure you want to block ThorTillas ?
BlockCancelAre you sure you want to unblock ThorTillas ?
UnblockCancelNycidian
Newcomer
Nycidian
Newcomer
100g2g ptsReport comment
Why do you report Nycidian?
Are you sure you want to block Nycidian ?
BlockCancelAre you sure you want to unblock Nycidian ?
UnblockCancelLoiCus-
Newcomer
LoiCus-
Newcomer
700g2g ptsReport comment
Why do you report LoiCus-?
Are you sure you want to block LoiCus- ?
BlockCancelAre you sure you want to unblock LoiCus- ?
UnblockCancelVIPiblise
Newcomer
VIPiblise
Newcomer
4 000g2g ptsReport comment
Why do you report iblise?
Are you sure you want to block iblise ?
BlockCancelAre you sure you want to unblock iblise ?
UnblockCancel