
Lv.1
幻想一笑而过 41期星推 3点猫3专栏1首页 宇宙中心连任3期 新社区内测成员
签名:爱发电:afdian.net/a/Svip9 B站账号:https://space.bilibili.com/475523025 关注下求求了 传说之下中文版游戏加Debug配置.rar 链接:https://share.weiyun.com/ndgvACJV 密码:m7prvk 传说之下素材+音效 链接:https://share.weiyun.com/UT1Qsyq2 密码:krjx67 徒弟:喵系少女、SGS喵白最帅 我正在:上学 精通:Minecraft、UNDERTALE MC龄:12年
在 【截止至2021年2月18日20:29:53的《谁是内鬼》代码公开】 中回复
投票.js
module.exports = async function (entity) {
if (world.vote_pro == 1 && world.players_list.indexOf(entity.player.name) + 1 != 0) {
if (entity.player.canvvvv == true) {
var abstained = 0;
entity.player.abstained = 0;
// if (entity.player.votes_obtained == 0) {
//world.vote_pro = 1
const vote = await entity.player.dialog({
type: Box3DialogType.SELECT,
title: "系统",
titleTextColor: new Box3RGBAColor(0, 0, 0, 1),
titleBackgroundColor: new Box3RGBAColor(0.968, 0.702, 0.392, 1),
content: `投票(按×弃票),请投以下正在游戏中玩家:\n[${world.players_list}]`,
options: world.querySelectorAll('player').map(e => e.player.name),
contentTextColor: new Box3RGBAColor(0, 0, 0, 1),
contentBackgroundColor: new Box3RGBAColor(1, 1, 1, 1),
lookEye: entity.position.add(entity.player.facingDirection.scale(5)),
lookTarget: entity,
});
// 如果玩家点击了屏幕其他区域,取消了对话框。
if (!vote || vote === null) {
entity.player.canvvvv = false
await entity.player.dialog({
type: Box3DialogType.TEXT, // 对话框的类型,TEXT是文本框。
content: `您已弃票`,
});
return;
} else {
entity.player.canvvvv = false
}
setTimeout(async () => {
//vote.cancel();
world.vote_pro = 0
world.say('投票结束')
//如果超过一半的人弃票
if (world.number_players / 2 <= abstained) {
world.say("弃票的玩家数量超过一半的玩家数量,本次投票无效!")
entity.player.canvvvv = true
} else {
// 判断玩家选了什么选项。
entity.player.canvvvv = true
world.querySelectorAll('player').forEach((x) => { if (x.player.name == vote) { x.entity.votes_obtained += 1 } })
world.querySelectorAll('player').forEach((entity) => {
if (entity.score > world.score) {
world.highest_depiao = entity.player.depiao
world.highest_depiao_name = entity.player.name
}
})
world.say("本局投票将 " + world.highest_depiao_name + "踢出游戏\n该玩家票数为 " + world.highest_depiao + " 票")
world.querySelectorAll('player').forEach((x) => {
if (x.player.name == world.highest_depiao_name) {
world.die_people.puch(world.highest_depiao_name)
world.players_list.splice(world.players_list.indexOf(world.highest_depiao_name), 1)
if (world.people.indexOf(world.highest_depiao_name) + 1 != 0) {
world.people.splice(world.people.indexOf(world.highest_depiao_name), 1)
world.say(`${world.highest_depiao_name}的身份是人类`)
}
if (world.inner_ghost.indexOf(world.highest_depiao_name) + 1 != 0) {
world.inner_ghost.splice(world.inner_ghost.indexOf(world.highest_depiao_name), 1)
world.say(`${world.highest_depiao_name}的身份是内鬼`)
}
if (world.inner_ghost.indexOf(world.highest_depiao_name) + 1 == 0 && world.people.indexOf(world.highest_depiao_name) + 1 == 0) {
world.say(`${world.highest_depiao_name}是观战玩家,投票无效`)
}
}
})
}
}, 45000);
}
} else if (entity.player.canVote == true && world.vote_lq == 0) {
// 集合
world.vote_pro = 1//开启投票
entity.player.canVote = false//玩家是否还可以进行投票设置关闭
world.say(`${entity.player.name}发起了紧急投票!集合`);
world.addCollisionFilter('player', 'player');// 防碰撞
world.querySelectorAll('player').forEach((e) => {
e.position.set(58, 11, 63);
});
world.vote_lq = 60//紧急投票冷却60秒
await sleep(30000)//讨论30秒
world.say('讨论完毕,开始投票')
world.querySelectorAll("player").forEach((entity) => {
require('./投票.js')(entity);
})
await sleep(15000)//投票15秒
world.say('关闭投票通道')
world.vote_pro = 0//关闭投票
world.vote_lq = 60//紧急投票冷却60秒
await sleep(60 * 1000)
world.vote_lq = 0
}
}2021-02-18T20:33:01 点赞:0
在 【每日一个岛3建图小技巧】如何用Math.random()生成随机数? 中回复
【截止至2021年2月18日20:29:53的《谁是内鬼》代码公开】https://shequ.codemao.cn/community/3喵539
2021-02-18T20:36:56 点赞:0
在 谁有UT游戏可以发一下,蟹蟹 中回复
传说之下中文版游戏加Debug配置(20210220214957).rar
链接:https:/喵xNC喵Mdb 密码:eame38
2021-02-20T21:58:27 点赞:0
在 突然感觉,UT主题活动参加的人大多数都是云。做的作品都是拿参考改的。 中回复
传说之下中文版游戏加Debug配置(20210220214957).rar
链接:https:/喵xNC喵Mdb 密码:eame38
2021-02-20T21:59:20 点赞:0
在 【岛3大整活】吉吉喵装宽带稀有影像流出 中回复
【岛3大整活】吉吉喵装宽带稀有真人照流出![]()
www.bilibil喵video/BV1AK411g7xc?spm_id_from=333.788.b_636f6d6d656e74.4

2021-02-24T20:15:27 点赞:6
在 企鹅对于Nemo和kitten最近议论的个人见解和解决方法📣 中回复
然而NOI只考C++()()()
kittenNemo都不是正道()()()
岛3是JS 起码跟C++有点关联
社区不管是kt还是Nemo我都放弃了
基本()
岛3敲代码还行()()()
#include<iostream>
#include<windows.h>
using namespace std;
int main(){
cout<<"Hello world!\n(有一次int main我打成int mian来着)\n你要吃mian吗" <<endl;
system("pause");//防闪屏
return 0;
}
。。。
2021-03-12T21:23:30 点赞:0
在 【岛3活动】大神在线写代码NO.2,你想实现的我都会! 中回复
https://shequ.codemao.cn/community/368849
速建教程
2021-03-20T16:08:32 点赞:0
在 【每日亿个岛3建图小技巧】点击建造或者摧毁方块,创意达人必备! 中回复
https://shequ.codemao.cn/community/368849
速建教程
2021-03-20T16:09:20 点赞:0