New Game State Queries
This page goes through the newly added GSQs and Triggers/Actions as part of this mod for content patcher mods to take advantage of.
{
/// This trigger action makes a SmallGrassYellowButterfly spawn when
/// a natural common butterfly spawns in the forest.
"Action": "EditData",
"Target": "Data/TriggerActions",
"Entries": {
"NaNITVTEST_Trigger_0": {
"Id": "NiTV_Test_TriggerAction_0",
"Trigger": "NAT_NIV_Spawned",
"Condition": "LOCATION_Name Target Forest, NAT_NIV_TriggerNameCheck Target CommonButterfly, NAT_NIV_TriggerNaturalCheck Target",
"Action": "NAT_NIV_InstantiateSpecificNearTriggered SmallGrassYellowButterfly 2",
"MarkActionApplied": false
}
}
},
{
/// This trigger action makes a SmallGrassYellowButterfly replace a
/// a MonarchButterfly 50% of the time.
"Action": "EditData",
"Target": "Data/TriggerActions",
"Entries": {
"NaNITVTEST_Trigger_1": {
"Id": "NiTV_Test_TriggerAction_1",
"Trigger": "NAT_NIV_Spawned",
"Condition": "NAT_NIV_TriggerNameCheck Target MonarchButterfly, Random 0.5",
"Actions": [
"NAT_NIV_InstantiateSpecificNearTriggered SmallGrassYellowButterfly 0",
"NAT_NIV_RemoveSpecific MonarchButterfly 1"
],
"MarkActionApplied": false
}
}
}Last updated