sample1.js
This commit is contained in:
parent
cebb4a73c0
commit
cc05d3253a
@ -1,25 +1,25 @@
|
|||||||
main.floors.sample1=
|
main.floors.sample1=
|
||||||
{
|
{
|
||||||
"floorId": "sample1",
|
"floorId": "sample1",
|
||||||
"title": "样板 1 层",
|
"title": "样板 1 层",
|
||||||
"name": "1",
|
"name": "1",
|
||||||
"canFlyTo": true,
|
"canFlyTo": true,
|
||||||
"canUseQuickShop": true,
|
"canUseQuickShop": true,
|
||||||
"defaultGround": "grass",
|
"defaultGround": "grass",
|
||||||
"images": [
|
"images": [
|
||||||
[
|
[
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
"bg.jpg",
|
"bg.jpg",
|
||||||
0
|
0
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"weather": [
|
"weather": [
|
||||||
"snow",
|
"snow",
|
||||||
6
|
6
|
||||||
],
|
],
|
||||||
"item_ratio": 1,
|
"item_ratio": 1,
|
||||||
"map": [
|
"map": [
|
||||||
[ 7,131, 8,152, 9,130, 10,152,166,165,132,165,166],
|
[ 7,131, 8,152, 9,130, 10,152,166,165,132,165,166],
|
||||||
[ 0, 0, 0, 0, 0, 0, 0,152,165,164, 0,162,165],
|
[ 0, 0, 0, 0, 0, 0, 0,152,165,164, 0,162,165],
|
||||||
[152,152,152,152,121,152,152,152, 0, 0,229, 0, 0],
|
[152,152,152,152,121,152,152,152, 0, 0,229, 0, 0],
|
||||||
@ -34,11 +34,14 @@ main.floors.sample1=
|
|||||||
[ 1, 0,123, 1, 0, 20,124, 0,121, 0,122, 0,126],
|
[ 1, 0,123, 1, 0, 20,124, 0,121, 0,122, 0,126],
|
||||||
[ 1, 0, 0, 1, 88, 20, 86, 0, 0, 0, 0, 0,122]
|
[ 1, 0, 0, 1, 88, 20, 86, 0, 0, 0, 0, 0,122]
|
||||||
],
|
],
|
||||||
"firstArrive": [],
|
"firstArrive": [],
|
||||||
"events": {
|
"events": {
|
||||||
"4,10": [
|
"4,10": [
|
||||||
"\t[样板提示]本层楼将会对各类事件进行介绍。",
|
"\t[样板提示]本层楼将会对各类事件进行介绍。",
|
||||||
"左边是一个仿50层的陷阱做法,上方是商店、快捷商店的使用方法,右上是一个典型的杀怪开门的例子,右下是各类可能的NPC事件。",
|
"左边是一个仿50层的陷阱做法,上方是商店、快捷商店的使用方法,右上是一个典型的杀怪开门的例子,右下是各类可能的NPC事件。",
|
||||||
|
"本样板目前支持的事件列表大致有:\ntext: 显示一段文字(比如你现在正在看到的)\ntip: 左上角显示提示\nshow: 使一个事件有效(可见、可被交互)\nhide: 使一个事件失效(不可见、不可被交互)\ntrigger: 触发另一个地点的事件\nanimate: 显示动画\nbattle: 强制和某怪物战斗\nopenDoor: 无需钥匙开门(例如机关门、暗墙)",
|
||||||
|
"openShop: 打开一个全局商店\ndisableShop: 禁用一个全局商店\nchangeFloor: 传送勇士到某层某位置\nchangePos: 传送勇士到当层某位置;转向\nshowImage: 显示图片\nsetFg: 更改画面色调\nsetWeather: 更改天气\nmove: 移动事件效果\nmoveHero: 移动勇士效果\nplayBgm: 播放某个背景音乐\npauseBgm: 暂停背景音乐\nresumeBgm: 恢复背景音乐的播放\nplaySound: 播放某个音频",
|
||||||
|
"if: 条件判断\nchoices: 提供选项\nsetValue: 设置勇士属性道具,或某个变量/flag\nupdate: 更新状态栏和地图显伤\nwin: 获得胜利(游戏通关)\nlose: 游戏失败\nsleep: 等待多少毫秒\nexit: 立刻结束当前事件\nrevisit: 立刻结束事件并重新触发\nfunction: 自定义JS脚本\n\n更多支持的事件还在编写中,欢迎您宝贵的意见。",
|
||||||
"有关各事件的样例,可参见本层一些NPC的写法。\n所有事件样例本层都有介绍。\n\n一个自定义事件处理完后,需要调用{\"type\": \"hide\"}该事件才不会再次出现。",
|
"有关各事件的样例,可参见本层一些NPC的写法。\n所有事件样例本层都有介绍。\n\n一个自定义事件处理完后,需要调用{\"type\": \"hide\"}该事件才不会再次出现。",
|
||||||
{
|
{
|
||||||
"type": "hide"
|
"type": "hide"
|
||||||
@ -603,7 +606,6 @@ main.floors.sample1=
|
|||||||
"choices": [
|
"choices": [
|
||||||
{
|
{
|
||||||
"text": "黄钥匙(${9+flag:woman_times}金币)",
|
"text": "黄钥匙(${9+flag:woman_times}金币)",
|
||||||
"color": [255,255,0,1],
|
|
||||||
"action": [
|
"action": [
|
||||||
{
|
{
|
||||||
"type": "if",
|
"type": "if",
|
||||||
@ -631,7 +633,6 @@ main.floors.sample1=
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "蓝钥匙(${18+2*flag:woman_times}金币)",
|
"text": "蓝钥匙(${18+2*flag:woman_times}金币)",
|
||||||
"color": [0,0,255,1],
|
|
||||||
"action": [
|
"action": [
|
||||||
{
|
{
|
||||||
"type": "if",
|
"type": "if",
|
||||||
@ -659,7 +660,6 @@ main.floors.sample1=
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"text": "红钥匙(${36+4*flag:woman_times}金币)",
|
"text": "红钥匙(${36+4*flag:woman_times}金币)",
|
||||||
"color": [255,0,0,1],
|
|
||||||
"action": [
|
"action": [
|
||||||
{
|
{
|
||||||
"type": "if",
|
"type": "if",
|
||||||
@ -708,8 +708,8 @@ main.floors.sample1=
|
|||||||
"type": "revisit"
|
"type": "revisit"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"changeFloor": {
|
"changeFloor": {
|
||||||
"4,12": {
|
"4,12": {
|
||||||
"floorId": "sample0",
|
"floorId": "sample0",
|
||||||
"loc": [
|
"loc": [
|
||||||
@ -723,8 +723,8 @@ main.floors.sample1=
|
|||||||
"direction": "up"
|
"direction": "up"
|
||||||
},
|
},
|
||||||
"10,12": null
|
"10,12": null
|
||||||
},
|
},
|
||||||
"afterBattle": {
|
"afterBattle": {
|
||||||
"9,6": [
|
"9,6": [
|
||||||
{
|
{
|
||||||
"type": "setValue",
|
"type": "setValue",
|
||||||
@ -766,16 +766,15 @@ main.floors.sample1=
|
|||||||
],
|
],
|
||||||
"false": []
|
"false": []
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"10,12": null
|
},
|
||||||
},
|
"afterGetItem": {},
|
||||||
"afterGetItem": {},
|
"afterOpenDoor": {},
|
||||||
"afterOpenDoor": {},
|
"cannotMove": {},
|
||||||
"cannotMove": {},
|
"bgmap": [
|
||||||
"bgmap": [
|
|
||||||
|
|
||||||
],
|
],
|
||||||
"fgmap": [
|
"fgmap": [
|
||||||
|
|
||||||
]
|
],
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user