Post by naunakht on Mar 27, 2024 23:10:42 GMT -5
I've added animated butterflies to an object, which can be toggled on or off via an ImmediateSuperInteraction. It's a generic On/Off effect. Here is the code for the GameObject:
Everything is in working order. The problem is, I wanna get fancy. How do I automate the VFX so that the butterfly effect turns off automatically at night, and then resumes in the morning? I know there must be a way to trigger a state change at a designated time of day, but I can't figure out how to code it. Any help would be appreciated.
<?xml version="1.0" encoding="utf-8"?>
<I c="GameObject" i="object" m="objects.game_object" n="Naunakht:object_ mushroomhouse_butterflies" s="15709477057813883063">
<U n="_components">
<V n="focus" t="enabled">
<U n="enabled">
<V n="_focus_score" t="globally">
<U n="globally">
<E n="base">LOW</E>
</U>
</V>
</U>
</V>
<V n="idle_component" t="disabled" />
<V n="proximity_component" t="disabled" />
<V n="retail_component" t="enabled">
<V n="enabled" t="reference">
<T n="reference">115303<!--RetailComponent: retailComponent_Default_HighAppeal--></T>
</V>
</V>
<V n="state" t="enabled">
<U n="enabled">
<L n="state_triggers">
<U>
<L n="at_states">
<T>39611<!--CommodityBasedObjectStateValue: FireState_Burn_Material_Change--></T>
</L>
<V n="set_states" t="Set_state_list">
<L n="Set_state_list">
<T>35297<!--ObjectStateValue: GenericOnOff_Off--></T>
</L>
</V>
</U>
<U>
<L n="at_states">
<T>77532<!--CommodityBasedObjectStateValue: FireState_Burn_Material_Change_Replace--></T>
</L>
<V n="set_states" t="Set_state_list">
<L n="Set_state_list">
<T>39737<!--CommodityBasedObjectStateValue: FireState_Burn_Material_Change_Not_Burning--></T>
</L>
</V>
</U>
</L>
<L n="states">
<U>
<L n="client_states">
<U>
<T n="key">35296<!--ObjectStateValue: GenericOnOff_On--></T>
<U n="value">
<V n="vfx_state" t="apply_new_value">
<V n="apply_new_value" t="start_vfx">
<V n="start_vfx" t="multiple_effects">
<U n="multiple_effects">
<L n="vfx_list">
<U>
<T n="effect_name">collecting_insect_terrarium_butterflymonarch_smallflap</T>
<V n="joint_name" t="Slot">
<T n="Slot">_FX_creature</T>
</V>
</U>
<U>
<T n="effect_name">collecting_insect_terrarium_butterflymonarch_flap</T>
<V n="joint_name" t="Slot">
<T n="Slot">_FX_creature_2</T>
</V>
</U>
<U>
<T n="effect_name">collecting_insect_terrarium_butterflymonarch_smallflap</T>
<V n="joint_name" t="Slot">
<T n="Slot">_FX_creature_3</T>
</V>
</U>
<U>
<T n="effect_name">gardening_bush_butterflies_monarch_light</T>
<V n="joint_name" t="Slot">
<T n="Slot">_FX_creature_4</T>
</V>
</U>
</L>
</U>
</V>
</V>
</V>
</U>
</U>
<U>
<T n="key">35297<!--ObjectStateValue: GenericOnOff_Off--></T>
<U n="value">
<V n="vfx_state" t="apply_new_value" />
</U>
</U>
</L>
<V n="default_value" t="reference">
<T n="reference">35297<!--ObjectStateValue: GenericOnOff_Off--></T>
</V>
</U>
<U>
<L n="client_states">
<U>
<T n="key">100570<!--ObjectStateValue: EmotionEnvironment_Enabled--></T>
</U>
<U>
<T n="key">100571<!--ObjectStateValue: EmotionEnvironment_Disabled--></T>
</U>
</L>
<V n="default_value" t="reference">
<T n="reference">100571<!--ObjectStateValue: EmotionEnvironment_Disabled--></T>
</V>
</U>
<U>
<L n="client_states">
<U>
<T n="key">39611<!--CommodityBasedObjectStateValue: FireState_Burn_Material_Change--></T>
</U>
<U>
<T n="key">39736<!--CommodityBasedObjectStateValue: FireState_Burn_Material_Change_Burning--></T>
</U>
<U>
<T n="key">39737<!--CommodityBasedObjectStateValue: FireState_Burn_Material_Change_Not_Burning--></T>
</U>
<U>
<T n="key">77532<!--CommodityBasedObjectStateValue: FireState_Burn_Material_Change_Replace--></T>
</U>
</L>
<V n="default_value" t="reference">
<T n="reference">39737<!--CommodityBasedObjectStateValue: FireState_Burn_Material_Change_Not_Burning--></T>
</V>
</U>
<U>
<L n="client_states">
<U>
<T n="key">35956<!--CommodityBasedObjectStateValue: Materialistic_Admired--></T>
</U>
<U>
<T n="key">35957<!--CommodityBasedObjectStateValue: Materialistic_YetToAdmire--></T>
</U>
</L>
<V n="default_value" t="reference">
<T n="reference">35957<!--CommodityBasedObjectStateValue: Materialistic_YetToAdmire--></T>
</V>
</U>
</L>
</U>
</V>
</U>
<L n="_super_affordances">
<T>14386892582316618300<!--Naunakht:isi_mushroomhouse_addbutterflies--></T>
<T>14575034822634184479<!--Naunakht:isi_mushroomhouse_removebutterflies--></T>
<T>13328<!--ImmediateSuperInteraction: debug_Reset--></T>
<T>13326<!--ImmediateSuperInteraction: debug_ObjectDestroy--></T>
<T>103888<!--ImmediateSuperInteraction: cheat_set_as_head--></T>
<T>196759<!--SuperInteraction: famePerks_GoodReputation_GivingBack_DonateObject--></T>
<T>156936<!--SuperInteraction: generic_Object_Toddler_Check_Out_HighChair--></T>
<T>276518<!--SuperInteraction: infant_WhatsThat--></T>
<T>328068<!--SuperInteraction: infant_WhatsThat_Immobile_InObject--></T>
<T>283778<!--SuperInteraction: infant_WatchObject_isOn--></T>
<T>326870<!--SuperInteraction: infant_WatchObject_isOn_Immobile_InObject--></T>
<T>106859<!--SuperInteraction: simRay_Transform_Object--></T>
<T>144099<!--SuperInteraction: generic_Object_Toddler_Check_Out--></T>
<T>74457<!--ImmediateSuperInteraction: fire_ReplaceBurntObject--></T>
<T>102258<!--SuperInteraction: Ghost_Possess--></T>
<T>168502<!--SuperInteraction: Ghost_Pet_Possess--></T>
<T>324988<!--SuperInteraction: Ghost_Horse_Possess--></T>
</L>
<U n="recycling_data">
<L n="recycling_values">
<U>
<E n="Bucks Type">RecycleBitsBucks</E>
<T n="Value">0</T>
</U>
<U>
<E n="Bucks Type">RecyclePiecesBucks</E>
<T n="Value">1</T>
</U>
</L>
</U>
</I>
Everything is in working order. The problem is, I wanna get fancy. How do I automate the VFX so that the butterfly effect turns off automatically at night, and then resumes in the morning? I know there must be a way to trigger a state change at a designated time of day, but I can't figure out how to code it. Any help would be appreciated.