Modding - Do "values" have to be integers

I'm trying to mod various things such as the RaceTraits.

 

I'm wondering if anyone knows if it is possible to use something other than an integer where you are supposed to put the modifier value.

What I have in mind is being able to put a formula there instead of an integer; so that the value can be something like the current population of a colony multiplied by a particular value.

I want to create modifier effects that increase as the population increases.

20,441 views 4 replies
Reply #1 Top


I'm wondering if anyone knows if it is possible to use something other than an integer where you are supposed to put the modifier value.
End of quote

Only whatever value type is in the schema. They are just values, there is no interpreter to make sense of other input that the game isn't built to understand. However there is some flexibility in terms of the different value types allowed.

Reply #2 Top

Yes, I've had a look at the modifiertypes schema and it does mention valuetypes.

It sets the default valuetype to integer, but I cant find anywhere where other valuetypes are defined.

There doesn't seem to be a valuetypes schema.

Reply #3 Top

Quoting bkeniry, reply 2

Yes, I've had a look at the modifiertypes schema and it does mention valuetypes.

It sets the default valuetype to integer, but I cant find anywhere where other valuetypes are defined.

There doesn't seem to be a valuetypes schema.
End of bkeniry's quote

 

It's in ModifierEffectTypes.xsd

A handy tip for finding things is: in the Windows search type content:"what you want to find"

 

+2 Loading…
Reply #4 Top

Thanks for that.

I need to pay more attention to the includes in the schemas