challenge-editor/json/event.json
2024-10-02 18:35:48 +08:00

178 lines
2.6 KiB
JSON

{
"event_01":{
"name":"测试事件1",
"texture":"test_scene",
"text":"这是一个测试事件系统的事件",
"choice":[
{
"name":"度过两小时",
"triger":[{
"type":"flow_time",
"data":{
"hour":2
}
}
]
},
{
"name":"结束",
"triger":[{
"type":"end_event",
"data":""
},
]
}
]
},
"event_02":{
"name":"测试事件2",
"texture":"test_scene",
"text":"这是一个测试选项触发的事件",
"choice":[
{
"name":"改变图片",
"triger":[{
"type":"change_texture",
"data":"test_character"
}
]
},
{
"name":"改变描述文本",
"triger":[{
"type":"change_text",
"data":"描述文本已经改变"
}
]
},
{
"name":"转换事件",
"triger":[{
"type":"change_event",
"data":"event_01"
}
]
},
{
"name":"结束",
"triger":[{
"type":"end_event",
"data":""
},
]
}
]
},
"event_03":{
"name":"测试事件3",
"texture":"test_scene",
"text":"这是一个测试战斗的事件",
"choice":[
{
"name":"战斗",
"triger":[{
"type":"fight",
"data":{
"enermy":["test_character_01"],
"friend":[]
}
}
]
},
{
"name":"结束",
"triger":[{
"type":"end_event",
"data":""
},
]
}
]
},
"event_04":{
"name":"测试事件4",
"texture":"test_scene",
"text":"这是一个测试货币系统的事件",
"choice":[
{
"name":"添加金钱*100",
"triger":[{
"type":"add_currency",
"data":{
"ind":1,
"value":100
}
}
]
},
{
"name":"减少金钱*100",
"condition":[
{
"type":"currency_more_than",
"data":{
"ind":1,
"value":100,
}
}
],
"triger":[{
"type":"add_currency",
"data":{
"ind":1,
"value":-100
}
}
]
},
{
"name":"减少精神*100",
"triger":[{
"type":"add_currency",
"data":{
"ind":2,
"value":-100
}
}
]
},
{
"name":"结束",
"triger":[{
"type":"end_event",
"data":""
},
]
}
]
},
"event_05":{
"name":"测试事件5",
"texture":"test_scene",
"text":"这是一个测试交易系统的事件",
"choice":[
{
"name":"交易测试01",
"triger":[{
"type":"trade",
"data":"npc_01"
},]
},
{
"name":"交易测试02",
"triger":[{
"type":"trade",
"data":"npc_02"
},]
},
{
"name":"结束",
"triger":[{
"type":"end_event",
"data":""
},]
}
]
},
}