sample1.js

This commit is contained in:
ckcz123 2019-03-20 14:57:27 +08:00
parent cebb4a73c0
commit cc05d3253a

View File

@ -1,25 +1,25 @@
main.floors.sample1=
{
"floorId": "sample1",
"title": "样板 1 层",
"name": "1",
"canFlyTo": true,
"canUseQuickShop": true,
"defaultGround": "grass",
"images": [
"floorId": "sample1",
"title": "样板 1 层",
"name": "1",
"canFlyTo": true,
"canUseQuickShop": true,
"defaultGround": "grass",
"images": [
[
0,
0,
"bg.jpg",
0
]
],
"weather": [
],
"weather": [
"snow",
6
],
"item_ratio": 1,
"map": [
],
"item_ratio": 1,
"map": [
[ 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],
[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, 0, 1, 88, 20, 86, 0, 0, 0, 0, 0,122]
],
"firstArrive": [],
"events": {
"firstArrive": [],
"events": {
"4,10": [
"\t[样板提示]本层楼将会对各类事件进行介绍。",
"左边是一个仿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\"}该事件才不会再次出现。",
{
"type": "hide"
@ -603,7 +606,6 @@ main.floors.sample1=
"choices": [
{
"text": "黄钥匙(${9+flag:woman_times}金币)",
"color": [255,255,0,1],
"action": [
{
"type": "if",
@ -631,7 +633,6 @@ main.floors.sample1=
},
{
"text": "蓝钥匙(${18+2*flag:woman_times}金币)",
"color": [0,0,255,1],
"action": [
{
"type": "if",
@ -659,7 +660,6 @@ main.floors.sample1=
},
{
"text": "红钥匙(${36+4*flag:woman_times}金币)",
"color": [255,0,0,1],
"action": [
{
"type": "if",
@ -708,8 +708,8 @@ main.floors.sample1=
"type": "revisit"
}
]
},
"changeFloor": {
},
"changeFloor": {
"4,12": {
"floorId": "sample0",
"loc": [
@ -723,8 +723,8 @@ main.floors.sample1=
"direction": "up"
},
"10,12": null
},
"afterBattle": {
},
"afterBattle": {
"9,6": [
{
"type": "setValue",
@ -766,16 +766,15 @@ main.floors.sample1=
],
"false": []
}
],
"10,12": null
},
"afterGetItem": {},
"afterOpenDoor": {},
"cannotMove": {},
"bgmap": [
]
},
"afterGetItem": {},
"afterOpenDoor": {},
"cannotMove": {},
"bgmap": [
],
"fgmap": [
"fgmap": [
]
],
}