Thank you!I'm not sure if there's a better way to accomplish it (it could be good to use scripted triggers, in case you want to change it more easily later).
I don't think this would have any significant performance impact, specially since triggers for descriptions and option names likely aren't computed for the AI at all.
Yes, I better add a second scripted trigger instead of the religion_group check to complement r_is_evil_race, if I intend to do this type of description modding for more events.
I hope I can find a definite answer on whether the AI computes descriptions or not. If I do, I'll be sure to let you know.
Thank you!Hello. Your syntax looks already quite optimized to me. I think the higher treat on your performance will be the on_action link with the event, not the event itself in this current state, and the number of character receiving the alert/opinion_modifiers about the tortured one.. Or are you planning to add many options? (Many way to torture, here for instance).
My newbie suggestion would be to add a large random specter to the on_action triggerer (days) so the performance is diluted at different dates (this was one of the reason for old patch to cause crashes while saving). Another idea would be to use 2 separated event, one for the player, one for the ia (with everything in hidden mode, a bit less code).
And what about religion_group events? You wouldn't have to check anything because the check for religion is already made. But that would require global optimization of your mod and would only benefit if you're using many check like this one.
I hope this was helpful! Even a bit.
This is an event from the base game where, if you have prisoners in your dungeon you may randomly get an option to torture them (If you're cruel/not just etc. - MTTH based).
The only thing that I changed/added was text descriptions with triggers based on what religion you have. I don't dare change anything else to make sure that the performance isn't affected negatively.
I just hope that the checks for descriptions aren't computed by the AI.