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've made a faction trait that should, say, give an additional unit of Food per each system improvement built. When I look at it in customization screen, it looks okay, showing correct "+1 per improvement on star system", but, when I start playing and build an improvement to test it, no additional food is generated and nothing in system overview shows the modifier. Here's how I made this in EmpireTraitDescriptor.xml:
From which I conclude that any type is a valid target. Anyhow, it does display the correct generated tooltip.
If it's true, then I don't know why, but from what I see, there are a lot of "type" can not be quantified for example, "TraitAlignment", and all the tech types? tooltips may understand it, becasue they just copy the word when it is a key, but whith "$()", I'm not sure it means anything to the computer?
well, I'm just a beginner in modding, so forgive me if I'm wrong¬
Unfortunately yorkgrass is correct. There are lots of examples of mods which "compile" (ie the game starts up with no error) but do not "work". There are many uses of scope which would be nice, but have no effect. Please look into some of the older threads with the word "scope" to see more examples. This is usually quite disappointing; many behaviors we would like are hardcoded, and not moddable.
Oh thats easy, the variable StarSystemImprovement isn't defined so your trait doesn't do anything. Make a Empire level variable that is defined at the ClassStarSystem level. Actually, on top of that your variable doesn't even exist so you need to define the variable at the system level and add a method of increasing said variable for every structure built.
Reference my ForwardedNumberofWars discussion with Thor
Edit2: highly recommend you forget the trait part until you can make a building work on the system level before you start carrying variables up to the empire level. Basically learn crawl before you try to run system -> empire is a... annoying variable chain.
Iblise is the one who found most of these issues. If you search for threads started by iblise, you will find many interesting things. I was also not able to find the exact thread but it is probably this one:
davea wrote: Iblise is the one who found most of these issues. If you search for threads started by iblise, you will find many interesting things. I was also not able to find the exact thread but it is probably this one:
So in Hisu's case, u have to create a TargetProperty "StarSystemImprovement", and let it equals the number of improvement you build on the system, but how to let the code count the number of improvements? or is there already a key stating this?
Create a variable at system level and give each build a line that increase said variable. Only way that comes to mind, I'm not aware of any method to count buildings existing in game currently. It's an ugly work around unfortunately.
iblise wrote: Create a variable at system level and give each build a line that increase said variable. Only way that comes to mind, I'm not aware of any method to count buildings existing in game currently. It's an ugly work around unfortunately.
Very clever! I didn't think of that! But it's too much coding, and I'm too lazy. Hope Hisu will have the time and strength!
Hisu
Newcomer
Hisu
Newcomer
100g2g ptsReport comment
Why do you report Hisu?
Are you sure you want to block Hisu ?
BlockCancelAre you sure you want to unblock Hisu ?
UnblockCancelyorkgrass
Newcomer
yorkgrass
Newcomer
100g2g ptsReport comment
Why do you report yorkgrass?
Are you sure you want to block yorkgrass ?
BlockCancelAre you sure you want to unblock yorkgrass ?
UnblockCancelHisu
Newcomer
Hisu
Newcomer
100g2g ptsReport comment
Why do you report Hisu?
Are you sure you want to block Hisu ?
BlockCancelAre you sure you want to unblock Hisu ?
UnblockCancelyorkgrass
Newcomer
yorkgrass
Newcomer
100g2g ptsReport comment
Why do you report yorkgrass?
Are you sure you want to block yorkgrass ?
BlockCancelAre you sure you want to unblock yorkgrass ?
UnblockCancelHisu
Newcomer
Hisu
Newcomer
100g2g ptsReport comment
Why do you report Hisu?
Are you sure you want to block Hisu ?
BlockCancelAre you sure you want to unblock Hisu ?
UnblockCancelyorkgrass
Newcomer
yorkgrass
Newcomer
100g2g ptsReport comment
Why do you report yorkgrass?
Are you sure you want to block yorkgrass ?
BlockCancelAre you sure you want to unblock yorkgrass ?
UnblockCanceldavea
Newcomer
davea
Newcomer
700g2g ptsReport comment
Why do you report davea?
Are you sure you want to block davea ?
BlockCancelAre you sure you want to unblock davea ?
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 ?
UnblockCancelHisu
Newcomer
Hisu
Newcomer
100g2g ptsReport comment
Why do you report Hisu?
Are you sure you want to block Hisu ?
BlockCancelAre you sure you want to unblock Hisu ?
UnblockCanceldavea
Newcomer
davea
Newcomer
700g2g ptsReport comment
Why do you report davea?
Are you sure you want to block davea ?
BlockCancelAre you sure you want to unblock davea ?
UnblockCancelyorkgrass
Newcomer
yorkgrass
Newcomer
100g2g ptsReport comment
Why do you report yorkgrass?
Are you sure you want to block yorkgrass ?
BlockCancelAre you sure you want to unblock yorkgrass ?
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 ?
UnblockCancelyorkgrass
Newcomer
yorkgrass
Newcomer
100g2g ptsReport comment
Why do you report yorkgrass?
Are you sure you want to block yorkgrass ?
BlockCancelAre you sure you want to unblock yorkgrass ?
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