I decided to try my hand at some event scripting, and I've looked through these various threads, but I have a question about event scripting that I can't find a clear answer for:
Can I use 'this' in a province_event? Or only character events?
For example, I have an event where it has trigger conditions to fire for a random province from a small group of province numbers. Can I then make one of the action effects state:
...and have that trigger the new event (50000) for the province currently being acted upon?
If not, is there a way to make that same end result happen? I basically want an event to trigger for a random province from a small group of provinces, which could lead to another event being fired for that randomly selected province.
Can I use 'this' in a province_event? Or only character events?
For example, I have an event where it has trigger conditions to fire for a random province from a small group of province numbers. Can I then make one of the action effects state:
Code:
action_a = {
effect = { type = trigger for = this value 50000 }
}
...and have that trigger the new event (50000) for the province currently being acted upon?
If not, is there a way to make that same end result happen? I basically want an event to trigger for a random province from a small group of provinces, which could lead to another event being fired for that randomly selected province.