Ghost

Game resources

PinballDragon Move

game_resourceIntrinsic/flexbuffers-json/PinballDragon_Move

Properties

3
Source evidence
Path
Intrinsic/flexbuffers-json/PinballDragon_Move.json
data
{
  "Modifiers": {
    "MoveLeftModifier": {
      "OnAdded": [
        {
          "$type": "CallGraphEvent",
          "Target": "Self",
          "EventName": "MoveLeft",
          "AbilityName": "PinballDragon_Move_Graph_RayTracer"
        }
      ],
      "Duration": -1,
      "DelayHandlers": [
        {
          "DelayTime": "%AS_RandomFloat",
          "TimeUpActions": [
            {
              "$type": "SendCustomEvent",
              "EventKey": "TimeUp"
            }
          ]
        }
      ],
      "ModifierStacking": "Unique"
    },
    "MoveRightModifier": {
      "OnAdded": [
        {
          "$type": "CallGraphEvent",
          "Target": "Self",
          "EventName": "MoveRight",
          "AbilityName": "PinballDragon_Move_Graph_RayTracer"
        }
      ],
      "Duration": -1,
      "DelayHandlers": [
        {
          "DelayTime": "%AS_RandomFloat",
          "TimeUpActions": [
            {
              "$type": "SendCustomEvent",
              "EventKey": "TimeUp"
            }
          ]
        }
      ],
      "ModifierStacking": "Unique"
    }
  },
  "AbilityName": "PinballDragon_Move",
  "ActionGroups": [
    {
      "Actions": [
        {
          "$type": "BranchOperator",
          "Conditions": [
            {
              "$type": "ByHasModifier",
              "ModifierNameList": [
                "MoveLeftModifier"
              ]
            }
          ],
          "FailureActions": [
            {
              "$type": "ApplyModifier",
              "Target": "Self",
              "ModifierName": "MoveLeftModifier"
            },
            {
              "$type": "RemoveModifier",
              "Target": "Self",
              "ModifierName": "MoveRightModifier"
            }
          ],
          "SuccessActions": [
            {
              "$type": "RemoveModifier",
              "Target": "Self",
              "ModifierName": "MoveLeftModifier"
            },
            {
              "$type": "ApplyModifier",
              "Target": "Self",
              "ModifierName": "MoveRightModifier"
            }
          ]
        }
      ],
      "GroupName": "Reverse"
    }
  ],
  "AbilitySpecials": {
    "AS_CDDuration": {
      "Value": 19,
      "ValueType": "Float"
    },
    "AS_RandomFloat": {
      "Value": 3,
      "ValueType": "Float"
    }
  },
  "AbilityStacking": "Unique",
  "DefaultModifier": {
    "OnAdded": [],
    "OnCustomEventReceived": [
      {
        "$type": "RandomWeightAction",
        "ActionList": [
          {
            "Weight": 0.33,
            "Actions": [
              {
                "$type": "SetAbilitySpecialAction",
                "Param": 3,
                "DoRefresh": true,
                "ParamName": "AS_RandomFloat",
                "ParamType": "Float",
                "ModifyFunction": "Replace"
              }
            ]
          },
          {
            "Weight": 0.33,
            "Actions": [
              {
                "$type": "SetAbilitySpecialAction",
                "Param": 4,
                "DoRefresh": true,
                "ParamName": "AS_RandomFloat",
                "ParamType": "Float",
                "ModifyFunction": "Replace"
              }
            ]
          },
          {
            "Weight": 0.33,
            "Actions": [
              {
                "$type": "SetAbilitySpecialAction",
                "Param": 5,
                "DoRefresh": true,
                "ParamName": "AS_RandomFloat",
                "ParamType": "Float",
                "ModifyFunction": "Replace"
              }
            ]
          }
        ],
        "Predicates": [
          {
            "$type": "ByOr",
            "Predicates": [
              {
                "$type": "ByCustomEvent",
                "EventKey": "HitAlly"
              },
              {
                "$type": "ByCustomEvent",
                "EventKey": "StartMove"
              },
              {
                "$type": "ByCustomEvent",
                "EventKey": "Reverse"
              },
              {
                "$type": "ByCustomEvent",
                "EventKey": "CollideWall"
              }
            ]
          }
        ]
      },
      {
        "$type": "BranchOperator",
        "Conditions": [
          {
            "$type": "ByCustomEvent",
            "EventKey": "StartMove"
          }
        ],
        "SuccessActions": [
          {
            "$type": "ApplyAbilityAction",
            "Target": "Self",
            "AbilityName": "PinballDragon_Move_Graph_RayTracer"
          },
          {
            "$type": "SetAnimCtrlerParamAction",
            "Target": "Self",
            "BoolVal": true,
            "ParamName": "Bool_IsMoving_Pinball",
            "ParamType": 2
          },
          {
            "Odds": 0.5,
            "$type": "RandomOperator",
            "OnFailure": [
              {
                "$type": "BranchOperator",
                "Conditions": [
                  {
                    "$type": "ByNot",
                    "Predicates": [
                      {
                        "$type": "ByObstacle",
                        "Target": "Self",
                        "BoxWidth": 1.5,
                        "BoxHeight": 0.25,
                        "CheckShape": "Box",
                        "BoxDistance": 1,
                        "BoxPosOffset": {
                          "x": -1,
                          "y": 1,
                          "z": 0
                        }
                      }
                    ]
                  }
                ],
                "FailureActions": [
                  {
                    "$type": "ApplyModifier",
                    "Target": "Self",
                    "ModifierName": "MoveLeftModifier"
                  }
                ],
                "SuccessActions": [
                  {
                    "$type": "RemoveModifier",
                    "Target": "Self",
                    "ModifierName": "MoveLeftModifier"
                  },
                  {
                    "$type": "ApplyModifier",
                    "Target": "Self",
                    "ModifierName": "MoveRightModifier"
                  }
                ]
              }
            ],
            "OnSuccess": [
              {
                "$type": "BranchOperator",
                "Conditions": [
                  {
                    "$type": "ByNot",
                    "Predicates": [
                      {
                        "$type": "ByObstacle",
                        "Target": "Self",
                        "BoxWidth": 1.5,
                        "BoxHeight": 0.25,
                        "CheckShape": "Box",
                        "BoxDistance": 1,
                        "BoxPosOffset": {
                          "x": 1,
                          "y": 1,
                          "z": 0
                        }
                      }
                    ]
                  }
                ],
                "FailureActions": [
                  {
                    "$type": "ApplyModifier",
                    "Target": "Self",
                    "ModifierName": "MoveRightModifier"
                  }
                ],
                "SuccessActions": [
                  {
                    "$type": "RemoveModifier",
                    "Target": "Self",
                    "ModifierName": "MoveRightModifier"
                  },
                  {
                    "$type": "ApplyModifier",
                    "Target": "Self",
                    "ModifierName": "MoveLeftModifier"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "$type": "BranchOperator",
        "Conditions": [
          {
            "$type": "ByCustomEvent",
            "EventKey": "StopMove"
          }
        ],
        "SuccessActions": [
          {
            "$type": "RemoveAbilityAction",
            "Target": "Self",
            "AbilityName": "PinballDragon_Move_Graph_RayTracer"
          },
          {
            "$type": "SetAnimCtrlerParamAction",
            "Target": "Self",
            "BoolVal": false,
            "ParamName": "Bool_IsMoving_Pinball",
            "ParamType": 2
          },
          {
            "$type": "RemoveModifier",
            "Target": "Self",
            "ModifierName": "MoveLeftModifier"
          },
          {
            "$type": "RemoveModifier",
            "Target": "Self",
            "ModifierName": "MoveRightModifier"
          }
        ]
      },
      {
        "$type": "ApplyActionGroupAction",
        "Target": "Self",
        "GroupName": "Reverse",
        "Predicates": [
          {
            "$type": "ByOr",
            "Predicates": [
              {
                "$type": "ByCustomEvent",
                "EventKey": "HitAlly"
              }
            ]
          }
        ]
      },
      {
        "$type": "BranchOperator",
        "Conditions": [
          {
            "$type": "ByCustomEvent",
            "EventKey": "CollideLeft"
          }
        ],
        "SuccessActions": [
          {
            "$type": "RemoveModifier",
            "Target": "Self",
            "ModifierName": "MoveRightModifier"
          },
          {
            "$type": "ApplyModifier",
            "Target": "Self",
            "ModifierName": "MoveLeftModifier"
          }
        ]
      },
      {
        "$type": "BranchOperator",
        "Conditions": [
          {
            "$type": "ByCustomEvent",
            "EventKey": "CollideRight"
          }
        ],
        "SuccessActions": [
          {
            "$type": "RemoveModifier",
            "Target": "Self",
            "ModifierName": "MoveLeftModifier"
          },
          {
            "$type": "ApplyModifier",
            "Target": "Self",
            "ModifierName": "MoveRightModifier"
          }
        ]
      }
    ]
  }
}
format
json
displayName
PinballDragon_Move