Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.7 / EncounterManager / Examples / Encounter_Macro_Example_Forwardable_Alt.json

Encounter_Macro_Example_Forwardable_Alt

Server/EncounterManager/Examples/Encounter_Macro_Example_Forwardable_Alt.json, 1.9 KB

Fields

FieldType
Classstring
Typestring
Interfacestring
Parametersobject
Contentobject

Source

{
  "Class": "Instruction",
  "Type": "Component",
  "Interface": "Hytale.Instruction.Encounter.Phase.Alt",
  "Parameters": {
    "Announcement": {
      "Value": "alt macro default announcement",
      "Description": "Message logged while a player is near. This macro implements the Alt interface and uses 'Announcement', not 'Label', so the base's Label Modify (scoped to the Logic interface) is not applied to it."
    },
    "Sound": {
      "Value": "SFX_Trork_Alerted",
      "Description": "Non-looping sound event played every 3 seconds so QA can hear which variant is active. Override it via a forwarded modifier from a variant, the same way as Announcement."
    }
  },
  "Content": {
    "Instructions": [
      {
        "Continue": true,
        "Sensor": {
          "Type":"Timer",
          "Name": "QASoundTimer",
          "State": "Stopped"
        },
        "Actions": [
          {
            "Type": "PlaySound",
            "SoundEventId": { "Compute": "Sound" }
          },
          {
            "Type": "TimerRestart",
            "Name": "QASoundTimer"
          }
        ]
      },
      {
        "Continue": true,
        "Sensor": {
          "Type": "Timer",
          "Name": "QASoundTimer",
          "State": "Stopped",
          "Once": true
        },
        "Actions": [
          {
            "Type": "TimerStart",
            "Name": "QASoundTimer",
            "StartValueRange": [ 3, 3 ],
            "RestartValueRange": [ 3, 3 ]
          }
        ]
      },
      {
        "Sensor": {
          "Type": "Player",
          "Range": 16
        },
        "Actions": [
          {
            "Type": "Log",
            "Message": { "Compute": "Announcement" }
          }
        ]
      },
      {
        "Sensor": {
          "Type": "Any"
        },
        "Actions": [
          {
            "Type": "Nothing"
          }
        ]
      }
    ]
  }
}