{ //小怪战 - 丢卡 "ID": 1040, "Events": { "OnPlayerMove":{ "Actions":[ { "$type": "Share.CConfigSetMapState", "Position": "Relative", "NodeType": "All", "X": 0, "Y": 1, "Radius": 0, "Count": 1, "FromVisibleState": [ "Visible" ], "ToVisibleState": ["VisibleByTriggerEvent"] } ] }, "OnStart": { "Actions": [ { "$type":"Share.CConfigApplyAbility", "AbilityName":"SlotMachine" }, { "$type": "Share.CConfigCameraMoveV2", "StretchKey": "SlotMachine_PushBack", "Type": "TriggerPosition", "PositionOffsetType":"Relative", "PositionOffsetX":0, "PositionOffsetY":0, "RadiusX":2, "RadiusY":2, "CanControl":false, "UseStretchZ":true }, { "$type": "Share.CConfigWaitSeconds", "Time": 0.1 }, { //随机奖励--A+B "$type": "Share.CConfigEventModification", "ModificationNum":1, "ModificationType":1, "TargetEventID": [ 1000 ], "TargetCoreNode":0, "TargetEventType":2, "EventID":[ 1025 ], "EventState":"ShowEvent", "VisibleState":"Visible", "Position":"Relative", "X":0, "Y":2, "Radius": 0 }, { "$type": "Share.CConfigSetMapState", "IndexList": [ 22,42,58,38 ], "NodeType": "All", "FromVisibleState": [ "VisibleByTriggerEvent" ], "ToVisibleState": ["Visible"] }, { "$type": "Share.CConfigWaitSeconds", "Time": 0.25 }, { "$type": "Share.CConfigSetMapState", "IndexList": [ 21,23,33,51,59,57,47,29 ], "NodeType": "All", "FromVisibleState": [ "VisibleByTriggerEvent" ], "ToVisibleState": ["Visible"] }, { "$type": "Share.CConfigWaitSeconds", "Time": 0.25 }, { "$type": "Share.CConfigSetMapState", "IndexList": [ 20,24,56,60 ], "NodeType": "All", "FromVisibleState": [ "VisibleByTriggerEvent" ], "ToVisibleState": ["Visible"] }, { "$type": "Share.CConfigWaitSeconds", "Time": 0.75 }, { "$type": "Share.CConfigJump", "Jump": "OnMachine" } ] }, "OnMachine":{ "Actions":[ { "$type": "Share.CConfigOpenDialog" }, { "$type": "Share.CConfigSetHollowVariable", "Key": "SlotMachineCnt_1040", "Value": "scenevar(SlotMachineCnt_1040)+1" }, { "$type": "Share.CConfigChoiceServer", "OptionsMode": "Normal", "Title":"Event1040_Title", //布间大炮 "Description": "Event1040_1", "QuestionDescription": "Event1040_2", "Choices": [ { "OptionText": "Event1040_3", //我们能自己对付。 // "OptionText2": "Event2021008_4", "OptionIcon1": 113, "Predicates":[ { "$type": "Share.CConfigEventByHollowVariable", "Key": "SlotMachineCnt_1040", "CompareType": "Equal", "Count": 1 } ], "OptionContents": [ { "Actions": [ ] } ] }, { "OptionText": "Event1040_3", //我们能自己对付。 // "OptionText2": "扣除{specials(spend)}齿轮硬币", "OptionIcon1": 113, "Predicates":[ { "$type": "Share.CConfigEventByHollowVariable", "Key": "SlotMachineCnt_1040", "CompareType": "Greater", "Count": 1 } ], "OptionContents": [ { "Actions": [ ] } ] }, { "OptionText": "Event1040_4", //我们能自己对付。 "OptionIcon1": 106, "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigJump", "Jump": "OnEnd" } ] } ] } ] }, { "$type": "Share.CConfigCloseDialog", "NeedResetCenter":false }, { "$type": "Share.CConfigPlayAnim", "AnimID":20010, "WaitingTime": -1 }, { "$type": "Share.CConfigCameraMoveV2", "StretchKey": "SlotMachine_PushBack", "Type": "TriggerPosition", "PositionOffsetType":"Relative", "PositionOffsetX":0, "PositionOffsetY":0, "RadiusX":2, "RadiusY":2, "CanControl":false, "UseStretchZ":true }, //相机 { "$type":"Share.CConfigSlotMachine", "Indexes":[ 20,21,22,23,24,33,42,51,60,59,58,57,56,47,38,29 ], "EndIndex":"index", "EndEventID":"evtID" }, { //战斗计数器+1 "$type": "Share.CConfigSetHollowVariable", "Key": "TriggerEvent_SlotMachine", "Value":"specials(evtID)" }, { //战斗计数器+1 "$type": "Share.CConfigSetHollowVariable", "Key": "TriggerIdx_SlotMachine", "Value":"specials(index)" }, { "$type": "Share.CConfigFinishEvent" } ] }, "AfterTrigger":{ "Actions":[ //TriggerIdx_SlotMachine { "$type": "Share.CConfigCameraMoveV2", "StretchKey": "SlotMachine_PushBack", "Type": "TriggerPosition", "PositionOffsetType":"Relative", "PositionOffsetX":0, "PositionOffsetY":0, "RadiusX":2, "RadiusY":2, "CanControl":false, "UseStretchZ":true }, { //随机奖励--A+B "$type": "Share.CConfigEventModification", "ModificationNum":1, "ModificationType":1, "IndexList":[ "scenevar(TriggerIdx_SlotMachine)" ], "TargetCoreNode":0, "TargetEventType":1, "EventID":[ 1013 ], "EventState":"ShowEvent", "VisibleState":"Visible" }, { "$type": "Share.CConfigWaitSeconds", "Time": 1 } ] }, "OnEnd":{ "Actions":[ { "$type": "Share.CConfigSetHollowVariable", "Key": "SlotMachineCnt_1040", "Value": 0 }, { "$type": "Share.CConfigCloseDialog", "NeedResetCenter":true }, { "$type":"Share.CConfigRemoveAbility", "AbilityName":"SlotMachine" }, { "$type": "Share.CConfigSetMapState", "IndexList":[ 21,22,23,38,42,57,58,59 ], "NodeType": "All", "FromVisibleState": [ "Visible" ], "ToVisibleState": ["VisibleByTriggerEvent"] }, { "$type": "Share.CConfigWaitSeconds", "Time": 0.25 }, { "$type": "Share.CConfigSetMapState", "IndexList":[ 20,24,29,33,47,51,56,60 ], "NodeType": "All", "FromVisibleState": [ "Visible" ], "ToVisibleState": ["VisibleByTriggerEvent"] }, { "$type": "Share.CConfigWaitSeconds", "Time": 0.25 }, { "$type": "Share.CConfigSetMapState", "Position": "Relative", "NodeType": "All", "X": 0, "Y": -1, "Radius": 0, "Count": 1, "FromVisibleState": [ "VisibleByTriggerEvent" ], "ToVisibleState": ["Visible"] }, { "$type": "Share.CConfigWaitSeconds", "Time": 0.25 }, { //随机奖励--A+B "$type": "Share.CConfigEventModification", "ModificationNum":1, "ModificationType":1, "TargetCoreNode":0, "TargetEventType":1, "TargetEventState":["ShowEvent"], "EventID":[ 1028 ], "EventState":"ShowEvent", "VisibleState":"Visible", "Position":"Relative", "X":0, "Y":-2, "Radius":0 }, { "$type": "Share.CConfigWaitSeconds", "Time": 1 }, { "$type": "Share.CConfigCameraMoveV2", "StretchKey": "Back", "Type": "Back", "CanControl":true, "UseStretchZ":false }, { "$type": "Share.CConfigFinishEvent" } ] } }, "Specials": { "index":0, "evtID":0, "bigReward":1025, "spend":300, "HP":10 } }