Random Variables?

Has anyone been able to get random variables to work?   I would like a mod where the AI opponent randomly chooses one of several different AI sovereigns, but no luck.

3,144 views 7 replies
Reply #1 Top

Does anyone know or have some advice?

Reply #2 Top

AFAIK we can't use Python yet, and XML is not a type of language where you can do such things.

Reply #3 Top

Quoting _PawelS_, reply 2
AFAIK we can't use Python yet, and XML is not a type of language where you can do such things.
End of _PawelS_'s quote

Exactly. XML is designed to describe data.

Reply #4 Top

There are a few random values, but they are all tied to their respective tags and attributes, and you can't use them to calculate things. Beyond that, I haven't seen anything in the xml files.

It is possible that we can describe random values right now, only we don't know how.

Reply #5 Top

Nope. No idea how the <expressions> work which is, I believe, how they'd be implemented.

Reply #6 Top

Thanks for the answers... hopefully we receive the designs for using randoms variables in one of the updates.

Reply #7 Top

Quoting NTJedi, reply 6
Thanks for the answers... hopefully we receive the designs for using randoms variables in one of the updates.
End of NTJedi's quote

It won't be till fall when the inner workings of the game are exposed via Python.