Expose prereqConditions and onTriggerEnterConditions

This commit is contained in:
Nick 2023-01-17 23:45:21 -05:00
parent a974f354fd
commit a4bb3896c8
2 changed files with 12 additions and 2 deletions

View File

@ -80,8 +80,8 @@ namespace NewHorizons.Builder.Props
priority = 1, priority = 1,
dialogue = dialogue, dialogue = dialogue,
prereqConditionType = RemoteDialogueTrigger.MultiConditionType.AND, prereqConditionType = RemoteDialogueTrigger.MultiConditionType.AND,
prereqConditions = new string[]{ }, prereqConditions = info.remoteTriggerPrereqConditions ?? new string[]{ },
onTriggerEnterConditions = new string[]{ } onTriggerEnterConditions = info.remoteTriggerOnEnterConditions ?? new string[]{ }
} }
}; };
remoteDialogueTrigger._activatedDialogues = new bool[1]; remoteDialogueTrigger._activatedDialogues = new bool[1];

View File

@ -508,6 +508,16 @@ namespace NewHorizons.External.Modules
/// </summary> /// </summary>
public float remoteTriggerRadius; public float remoteTriggerRadius;
/// <summary>
/// If setting up a remote trigger volume, these conditions must be met for it to trigger
/// </summary>
public string[] remoteTriggerPrereqConditions;
/// <summary>
/// If setting up a remote trigger volume, but I have no idea what this does at all
/// </summary>
public string[] remoteTriggerOnEnterConditions;
/// <summary> /// <summary>
/// Relative path to the xml file defining the dialogue. /// Relative path to the xml file defining the dialogue.
/// </summary> /// </summary>