
Lv.1
一切都已注定,又都不一定是注定。
在 【岛3老活新整创作节】官方地图《赤碧城》限时送,报名时间已截止! 中回复
我要报名参赛,我的地图编辑地址是喵ao.cn/e/cfc50d19d5634652d2df
2021-04-25T12:25:25 点赞:0
在 (代码岛3.0)岛3多功能店铺开业~ 中回复
荷花!帮帮我做一个右键打开箱子代码(右键打开有特定标签的箱子,弹出对话框)
可以的话我给你每个作品都点赞收藏
2021-06-01T13:20:30 点赞:0
在 (代码岛3.0)岛3多功能店铺开业~ 中回复
world.onPress(async({ button, entity }) => { if(button != 'action1' || !entity.isPlayer || entity.player.dead) return; if(entity.isPlayer||!entity.hasTag('卧室箱子')){ const result = await entity.player.dialog({ type: Box3DialogType.SELECT, content: `卧室箱子`, titleBackgroundColor: new Box3RGBAColor(0.968, 0.702, 0.392, 1), options: ['卧室钥匙'], }); if (result.index == 0) { } entity.player.dialog({ title: '系统', type: Box3DialogType.TEXT, content: `已拾取卧室钥匙*1`, titleBackgroundColor: new Box3RGBAColor(0.968, 0.702, 0.392, 1), }) } })
2021-06-03T20:34:27 点赞:0
在 (代码岛3.0)岛3多功能店铺开业~ 中回复
荷花你能帮我修一下bug吗()
world.onClick(async({ button, entity ,clicker}) => {
world.say(entity.position.x)
if (entity.position.x == 14){//卧室箱子
if(button == 'action1'){
clicker.key = 1
clicker.woshi = true
const resu = await entity.dialog({
type: Box3DialogType.SELECT,
content: `卧室箱子`,
titleBackgroundColor: new Box3RGBAColor(0.968, 0.702, 0.392, 1),
options: ['卧室钥匙']
})
if (resu.index == 0){
entity.dialog({
title: '系统',
type: Box3DialogType.TEXT,
content: `已拾取卧室钥匙*1`,
titleBackgroundColor: new Box3RGBAColor(0.968, 0.702, 0.392, 1),
})
}
entity.woshi = false
}
}
})
这个代码报错,说dialog not a function
2021-06-28T18:02:07 点赞:0