Interaction-Triggered Drama Nodes
I'm creating a mod that allows me to organise individual lighting objects into any of 1-10 groups ('presets') by adding statistics, then allowing me to select eg. 'turn on preset 1' and all lights on the lot under preset 1 turn on etc. I have finished this part of the mod - the manual part - and all lights can be grouped, and groups turned on/off.
I now want to make it possible to set a time for certain groups to automatically turn on/off. I wanted to create an interaction on lighting objects where you can select to 'automate turn on time' for a specific preset, which then triggers a multi-response dialog drama node where you can choose from several possible times. These would then set all lot objects in a given preset to a specific statistic value (corresponding to that time). I want to later add other drama nodes for each time of day to trigger an on/off loot on all lights that have that time's corresponding stat value, however, I'm stuck at the setting automated time part.
I mostly understand how to create drama nodes, and have tried to schedule the below drama node in a loot action triggered by an immediate interaction (ie. 'set automated turn on time for preset 1'). This interaction does show up in game but the drama node is not triggered. I have tried a number of variations ie. changing 'dialog_style' to chance card/adding a title/adding age test under sim info, and it won't work, please help!!
Drama node xml:
<?xml version="1.0" encoding="utf-8"?> <I c="DialogDramaNode" i="drama_node" m="drama_scheduler.dialog_drama_node" n="CustomLightPresets_DramaNode_SetAutoTurnOn_Preset1" s="11188765727022981497">
<V n="cooldown_data" t="node_cooldown">
<U n="node_cooldown" />
</V>
<V n="dialog_and_loot" t="dialog_multi_response">
<U n="dialog_multi_response">
<U n="dialog">
<E n="dialog_style">DEFAULT</E>
<V n="icon" t="disabled" />
<V n="text" t="single">
<T n="single">0x6510D966<!--What time (daily) should lights under preset 1 turn on automatically?--></T>
</V>
</U>
<L n="possible_responses">
<U>
<U n="item">
<L n="loot">
<T>14784211707288741193<!--CustomLightPresets_SetAutoOn_Preset1_7am--></T>
</L>
<T n="text">0x41C6AFB6<!--7am--></T>
</U>
</U>
<U>
<U n="item">
<L n="loot">
<T>9996971579461026540<!--CustomLightPresets_SetAutoOn_Preset1_12pm--></T>
</L>
<T n="text">0xBEEE8B05<!--12pm--></T>
</U>
</U>
<U>
<U n="item">
<L n="loot">
<T>14783097902009552531<!--CustomLightPresets_SetAutoOn_Preset1_6pm--></T>
</L>
<T n="text">0x36CA704C<!--6pm--></T>
</U>
</U>
<U>
<U n="item">
<T n="text">0x45B22E22<!--Cancel--></T>
</U>
</U>
</L>
</U>
</V>
<E n="receiver_sim">Actor</E>
<V n="sender_sim_info" t="no_participant">
<U n="no_participant" />
</V>
<V n="time_option" t="schedule">
<U n="schedule">
<L n="valid_times">
<U>
<U n="days_available">
<T n="0 SUNDAY">True</T>
<T n="1 MONDAY">True</T>
<T n="2 TUESDAY">True</T>
<T n="3 WEDNESDAY">True</T>
<T n="4 THURSDAY">True</T>
<T n="5 FRIDAY">True</T>
<T n="6 SATURDAY">True</T>
</U>
</U>
</L>
</U>
</V>
</I>
The loot to schedule this drama node is referenced under 'outcome'->'single'->'loot_list', in the immediate interaction.