• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Derectodestren

Recruit
Mar 16, 2020
7
0
There was no answer in the thread with quick questions, so I create this separate thread.

Hello.
I have a mod that changes on_action and spawn character in event.
But the character is always the same! At the same time, calling the event from the console is different.
I thought for a long time and found a problem. SEED in events which causes on_action is always zero.
I tried to call the EVENT which causes the EVENT I need. And cheers, something has changed! I was already glad that I did not have an army of clones, but it turned out that SEED is now equal to 1, not zero.

And now I already have an army of clones, not with zero seed, but with the ONE.
My question is this: How to get SEED to randomly generate randomly every time? As if the event is being called from the console?


Thanks in advance, do not judge strictly for English. I use a translator.
 
There was no answer in the thread with quick questions, so I create this separate thread.

Hello.
I have a mod that changes on_action and spawn character in event.
But the character is always the same! At the same time, calling the event from the console is different.
I thought for a long time and found a problem. SEED in events which causes on_action is always zero.
I tried to call the EVENT which causes the EVENT I need. And cheers, something has changed! I was already glad that I did not have an army of clones, but it turned out that SEED is now equal to 1, not zero.

And now I already have an army of clones, not with zero seed, but with the ONE.
My question is this: How to get SEED to randomly generate randomly every time? As if the event is being called from the console?


Thanks in advance, do not judge strictly for English. I use a translator.
What on_action are you calling the event?
As for moving the seed, I think a hidden random list with two empty braches will do the trick.
 
What on_action are you calling the event?
As for moving the seed, I think a hidden random list with two empty braches will do the trick.
Thanks for the answer.

I use on_new_holder event. In this event, a new character is created and the title is transferred to him.
As I said above, SEED in these event is always zero and the characters are ALWAYS the same, with the same traits.
Also, in cheat mode I noticed that decisions on creating characters also make them the same, if you do not restart the tabs on cheat decisions.


I will try your advice about the hidden list.
 
hidden_list didnt help or i do something wrong.

I tried doing this:


random_list = {
0 = {

}

0 = {

}

100 = {
character_event = { id = NEF.4 }
}
}

NEF.4 - Event in which the character creates. I also tried a similar design, but instead of invoking the event, the character creation itself.
 
hidden_list didnt help or i do something wrong.

I tried doing this:


random_list = {
0 = {

}

0 = {

}

100 = {
character_event = { id = NEF.4 }
}
}

NEF.4 - Event in which the character creates. I also tried a similar design, but instead of invoking the event, the character creation itself.
try with random_list = { 1 = {} 1 = {} }
 
I copied one of the game on_action events, which in theory should be random. And the result is the same - SEED is always equal to ONE and there is no chance to randomness in the mod.


I think this is a bug. This should not be.