Ahhw, Paradox c'mon...
Thanks for letting me know, I was afraid already that it wouldn't be possible.
You could calculate some rought probability based on your code and display it in the decision effect tooltip though.
Ahhw, Paradox c'mon...
Thanks for letting me know, I was afraid already that it wouldn't be possible.
Random_list chances are relative, not based around 100.hello
I want to use 'random list' function along with some modifiers and I wonder if the chances go over 100% does it still work as intended? like a chance event of 200% is more likely to be triggered than that of 100% so on and so forth?
Or should I just try to make it under 100%?
They're standard PDX fixed points, which go down to 1/1000.How many decimals can variables handle? Can I have e.g. a value of 0.00015?
Is it possible to swap a character modifier for another one on the date it expires? Without using an event of mtth 1 day?
Yes. Modify all the places where you add the modifier. If you add the modifier with duration = x, then fire an event with days = x that adds the second modifier.
A question of my own: is there an on_action for when a province receives a disease?
On_outbreak is probably what you're looking for, token_data is the disease name.
Now how do you "fire an event in a X amount of days"i never knew that was possible.
On_outbreak is probably what you're looking for, token_data is the disease name.
Now how do you "fire an event in a X amount of days"i never knew that was possible.
Check out http://www.ckiiwiki.com/Modding it has pages for loads of things like that which can help you outHoly cow that makes everything so much easier, how could i have missed that?![]()
Check out http://www.ckiiwiki.com/Modding it has pages for loads of things like that which can help you out
Oh not intended to be patronising! I have that link saved to use any time I mod anything lol especially the scopes, conditions and commands cause I have a bad habit of forgetting them half the time I need them...Yes i know haha, but i never noticed that specific command on the wiki.
It feels a bit patronizing to get a link of that page haha![]()
Does that mean that if you want a random_list to have every entry having an equal chance, you can just set them all to 1 and the game will work it out for itself by dividing the sum of the total value by the number of entries? And does it mean that if you have an entry of 100 and one of 1 that the 100 entry is 100 times more likely? If you have 100 and two entries of 1, so three will the entry of 100 become 98% likely? Or will it become something else?Random_list chances are relative, not based around 100.
So if you've got two chances at 1 each, that's the same as two chances at 50 each.
So it doesn't need to add up to 100. It can add up to 2. It can add up to 10000.
Oh not intended to be patronising! I have that link saved to use any time I mod anything lol especially the scopes, conditions and commands cause I have a bad habit of forgetting them half the time I need them...
That's correct.Does that mean that if you want a random_list to have every entry having an equal chance, you can just set them all to 1 and the game will work it out for itself by dividing the sum of the total value by the number of entries? And does it mean that if you have an entry of 100 and one of 1 that the 100 entry is 100 times more likely? If you have 100 and two entries of 1, so three will the entry of 100 become 98% likely? Or will it become something else?
PS can you post me the usage for while loops? I cannot seem to find a usage example anywhere.
Does that mean that if you want a random_list to have every entry having an equal chance, you can just set them all to 1 and the game will work it out for itself by dividing the sum of the total value by the number of entries? And does it mean that if you have an entry of 100 and one of 1 that the 100 entry is 100 times more likely? If you have 100 and two entries of 1, so three will the entry of 100 become 98% likely? Or will it become something else?
PS can you post me the usage for while loops? I cannot seem to find a usage example anywhere.