Would it be possible to make one-time-only events which may or may not fire even if triggers are met?
I'm thinking of the use of multiple events with the same triggers and timeframe but using the randomness of offsets to create a probability as to which event fires first and having an action of the first firing event to sleep the other event.
For example, using the Reformation event, could you do something like this:
Would this create a 50% chance of Reformation occuring (the first event) and 50% chance of the second event occuring and thereby sleeping the Reformation event?
I'm thinking of the use of multiple events with the same triggers and timeframe but using the randomness of offsets to create a probability as to which event fires first and having an action of the first firing event to sleep the other event.
For example, using the Reformation event, could you do something like this:
Code:
event = {
id = 100
name = "EVENTNAME101"
desc = "EVENTHIST101"
style = 1
date = { year = 1515 }
offset = 4000
action_a = {
name = "OK"
command = { type = flag which = 1 }
command = { type = sleepevent which = 12345678 }
}
}
event = {
id = 12345678
name = "EVENTNAME12345678"
desc = "EVENTHIST12345678"
style = 1
date = { year = 1515 }
offset = 4000
action_a = {
command = { type = sleepevent which = 100 }
}
}
Would this create a 50% chance of Reformation occuring (the first event) and 50% chance of the second event occuring and thereby sleeping the Reformation event?