I want to put an additional hook into an on_action condition.
From looking at the on_actions.txt file the only examples I see are for percentage settings to determine the character_event to fire off. I want to be able to fire off 2 possible character_events based upon certain conditionals, but I don't think on_actions.txt will allow that.
I took a look at the specified character_events, and it follows a trigger / option format.
Is it possible to wrap an option based upon a limit? I don't think I can put conditionals within the trigger, since it appears to be a binary yes/no. From looking at all the files, I don't see a way to wrap the option itself into a limit, i.e. only present an option if certain conditionals are met. The other available recourse is to wrap the option internals into a limit, but that method won't really work with the AI.
Is there another way around this or cleaner way to implement this?
EDIT: I tried using immediate = { } to "shortcut" the event, but that just causes the events to fire in parallel, and doesn't prevent the first event from firing. Maybe I can push the entire event into a secondary event, and use immediate to do the conditional...
From looking at the on_actions.txt file the only examples I see are for percentage settings to determine the character_event to fire off. I want to be able to fire off 2 possible character_events based upon certain conditionals, but I don't think on_actions.txt will allow that.
I took a look at the specified character_events, and it follows a trigger / option format.
Is it possible to wrap an option based upon a limit? I don't think I can put conditionals within the trigger, since it appears to be a binary yes/no. From looking at all the files, I don't see a way to wrap the option itself into a limit, i.e. only present an option if certain conditionals are met. The other available recourse is to wrap the option internals into a limit, but that method won't really work with the AI.
Is there another way around this or cleaner way to implement this?
EDIT: I tried using immediate = { } to "shortcut" the event, but that just causes the events to fire in parallel, and doesn't prevent the first event from firing. Maybe I can push the entire event into a secondary event, and use immediate to do the conditional...
Last edited: