Lv.1
签名:https://shequ.codemao.cn/community/330512 请看此贴,我已经永久退猫了,再见
在 橘子喵在吗??? 中回复
import random
import time
import turtle
__Pen = turtle.Pen()
_E6_95_8C_E4_BA_BA_E6_94_BB_E5_87_BB = random.randint(1, 3)
_E7_8E_A9_E5_AE_B6_E6_94_BB_E5_87_BB = random.randint(1, 5)
_E5_85_B3_E5_8D_A1_E6_95_B0 = 0
_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F = 100
print('《魔改后的传说之下3——内心深处的无尽深渊》')
print('作者:(陈?)')
time.sleep(1)
print('小花:让我熟悉一下杀人的感觉吧')
time.sleep(1)
print('小花:')
time.sleep(1)
print('你在《“魔传2”》中是怎样通关的?(是通关,不是喵小花)')
time.sleep(1)
print('1.平A喵的')
print('2.变身老八再平A喵的')
print('3.把它吃了,然后作者神奇地让我通了关')
print('4.无限回血赖喵它的')
_E6_8F_90_E9_97_AE_E7_94_A8 = input('你的选择?')
if (_E6_8F_90_E9_97_AE_E7_94_A8 == '1'):
time.sleep(1)
print('有点小狠')
time.sleep(1)
print('游戏结束')
time.sleep(9999)
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '2'):
time.sleep(1)
print('你竟然是这样的人!')
time.sleep(1)
print('游戏结束')
time.sleep(9999)
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '3'):
print('哦!')
time.sleep(2)
print('你的行进道路发生了改变')
time.sleep(2)
print('正在进入——喵线')
time.sleep(5)
print('传送成功')
time.sleep(4)
print('你将面对50个敌人')
time.sleep(1.5)
print('每个敌人HP50')
time.sleep(1.5)
print('你的伤害为5~10')
time.sleep(1.5)
print('你的HP继承于上一关')
time.sleep(1.5)
print('现在')
time.sleep(1.5)
print('开始')
time.sleep(1.5)
print('直面恐惧')
time.sleep(8)
print('哦!对了')
time.sleep(2)
print('我决定大发慈悲地让你有3次回血机会')
time.sleep(2)
print('能回多少就看你运气了')
time.sleep(2)
print('额')
time.sleep(2)
print('就算你的HP为负值你还是要打完50个敌人')
time.sleep(2)
print('如果你幸存了下来')
time.sleep(3)
print('那么BOOS战见')
time.sleep(2)
print('(来自作者的无数BB)')
print('1.回血')
print('2.不回血')
_E6_8F_90_E9_97_AE_E7_94_A82 = input('你的行动?')
if (_E6_8F_90_E9_97_AE_E7_94_A82 == '1'):
for __count in range(3):
time.sleep(1)
_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F += random.randint(10, 25)
print('HP:', _E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F)
elif (_E6_8F_90_E9_97_AE_E7_94_A82 == '2'):
print('坚强的人类')
else:
print('GAME OVER!')
time.sleep(9999)
time.sleep(1)
print('噩梦开始')
while (_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F > 0):
_E5_85_B3_E5_8D_A1_E6_95_B0 = (_E5_85_B3_E5_8D_A1_E6_95_B0 + 1)
print('关卡数:', _E5_85_B3_E5_8D_A1_E6_95_B0)
if (_E5_85_B3_E5_8D_A1_E6_95_B0 == 50):
break
_E6_95_8C_E4_BA_BA_E8_A1_80_E9_87_8F = 50
while (_E6_95_8C_E4_BA_BA_E8_A1_80_E9_87_8F > 0):
_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F -= random.randint(1, 3)
if (_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F <= 0):
time.sleep(1)
print('你喵了')
time.sleep(1)
print('但你必须做完噩梦')
time.sleep(1)
print('才能面对最终恐惧')
time.sleep(1.5)
print('emmm......')
time.sleep(1)
print('我想了一下')
time.sleep(1)
print('还是算了吧')
time.sleep(1)
print('直接让你喵了算了')
time.sleep(1)
print('我可没那么多时间和闲心编出一个让喵人战斗的程序')
time.sleep(99999)
print('HP:', _E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F)
print('敌人血量:', _E6_95_8C_E4_BA_BA_E8_A1_80_E9_87_8F)
print('1.普通攻击')
print('2.特殊攻击')
print('3.食用喵喵')
print('4.使用🏀篮球')
print('5.食用黑色土豆')
_E6_8F_90_E9_97_AE_E7_94_A8 = input('你的行动?')
if (_E6_8F_90_E9_97_AE_E7_94_A8 == '1'):
_E6_95_8C_E4_BA_BA_E8_A1_80_E9_87_8F -= _E7_8E_A9_E5_AE_B6_E6_94_BB_E5_87_BB
print('HP:', _E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F)
print('敌人血量', _E6_95_8C_E4_BA_BA_E8_A1_80_E9_87_8F)
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '2'):
time.sleep(1)
print('嘿嘿嘿......')
time.sleep(1)
print('嘿嘿....')
time.sleep(1)
print('哇哈哈哈哈哈!.........')
time.sleep(1)
print('霍霍哼哼哈哈哈哈哈哈哈哈哈哈哈!...........')
time.sleep(1)
print('(作者(陈?))陷入了神经质狂笑中。。。')
time.sleep(1)
print('至于为什么')
time.sleep(1)
print('看你血量')
_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F = 1
print('HP:', _E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F)
print('嘿嘿嘿')
print('哦霍霍哈哈哈哈')
print('。。。。。。')
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '3'):
time.sleep(1)
print('你以为你还会变成老八然后开挂吗?')
time.sleep(1)
print('想屁吃')
time.sleep(1)
print('不用看了')
time.sleep(1)
print('已经给你扣掉5HP值了')
time.sleep(1)
_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F -= 5
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '4'):
time.sleep(1)
print('你变身成为CXK')
print('你获得了背带裤和篮球')
print('你感到两股力量在你身上涌现')
print('攻击:原先最大暴击+10')
print('最大受击:2')
_E7_8E_A9_E5_AE_B6_E6_94_BB_E5_87_BB = (_E7_8E_A9_E5_AE_B6_E6_94_BB_E5_87_BB + 10)
_E6_95_8C_E4_BA_BA_E6_94_BB_E5_87_BB = 2
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '5'):
time.sleep(1)
print('你变身成了强壮的娇弱少女')
print('攻击:50')
print('固定受击:10')
_E7_8E_A9_E5_AE_B6_E6_94_BB_E5_87_BB = 50
_E6_95_8C_E4_BA_BA_E6_94_BB_E5_87_BB = 10
else:
print('GAME OVER!')
time.sleep(9999)
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '4'):
time.sleep(2)
print('真贱')
time.sleep(2)
print('但很聪明')
time.sleep(2)
print('因为在这关')
time.sleep(2)
print('你将没有回血机会')
time.sleep(2)
print('除非')
time.sleep(2)
print('回档重玩')
print('游戏结束')
time.sleep(9999)
else:
print('你因为不按套路出牌而进入了一个神秘世界')
time.sleep(1)
print('它叫做')
time.sleep(1)
print('地狱')
for __count in range(30):
print('你是逃不出这里的')
print('你只能直面喵亡')
print('除非30秒后你还活着')
print('我会才让你回到你该去的地方')
time.sleep(1)
_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F -= random.randint(1, 6)
print('HP:', _E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F)
if (_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F == 0):
print('GAME OVER!')
time.sleep(9999)
time.sleep(2)
print('直面恐惧')
time.sleep(2)
print('你能到这里应该不容易。(我是说应该)')
time.sleep(2)
print('但你还是要面对这一章节的最后敌人')
time.sleep(2)
print('不买关子了')
time.sleep(2)
print('它就是')
time.sleep(3)
print('“善良的”')
time.sleep(3)
print('小')
time.sleep(3)
print('花')
time.sleep(1)
print('。。。(气氛变得阴森起来)')
time.sleep(1)
print('!?')
time.sleep(1)
print('你听到了“沙沙”声')
time.sleep(1)
print('1.逃跑')
print('2.视线转向地面')
_E6_8F_90_E9_97_AE_E7_94_A8 = input('你的行动?')
if (_E6_8F_90_E9_97_AE_E7_94_A8 == '1'):
time.sleep(1)
print('熟悉的声音:“逃跑是没有用的”')
time.sleep(1)
print('你看到了')
time.sleep(2)
print('小花')
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '2'):
time.sleep(1)
print('你看到了')
time.sleep(2)
print('小花')
else:
print('要我说多少遍GAME OVER!')
time.sleep(1.5)
print('你应该都知道了')
time.sleep(1.5)
print('对吧')
time.sleep(1)
print('没错')
time.sleep(1)
print('我就是五个人类灵魂的“集合体”')
time.sleep(1)
print('所以......')
time.sleep(1)
print('(小花“微笑”了起来)')
time.sleep(1)
print('我只需要........')
time.sleep(1)
print('就可以........')
time.sleep(1)
print('小花突然蔫了')
time.sleep(1)
print('这是因为托丽尔的出现......')
time.sleep(1)
print('至此')
time.sleep(1)
print('《魔改后的传说之下3——内心深处的无尽深渊》')
print('作者:陈?')
time.sleep(1)
print('结束了(同时你也通关了)')
time.sleep(1)
print('感谢你的游玩与支持')
time.sleep(1)
print('陈?会尽快推出《“魔改”4》的')
time.sleep(1)
print('至于具体叫啥名字嘛.....')
time.sleep(1)
print('暂时想不出来呢!(就是这么任性)')
time.sleep(1)
print('对了')
time.sleep(1)
print('送你一个礼包')
time.sleep(1)
print('这玩意儿要谨慎使用')
time.sleep(1)
print('用的好那就超神')
time.sleep(1)
print('用不好那就超鬼')
time.sleep(1)
print('(开始编写《“魔改”4》)拜拜!')
__Pen.write('你应该想问:说好的BOSS战呢?这么跟你说吧,我很懒☺')
time.sleep(1)
print('你充满了:决心!')
//保存代码用……2020-05-04T20:55:49 点赞:0
在 橘子喵在吗??? 中回复
(async function(){function mathRandomInt(a, b) {
if (a > b) {
// Swap a and b to ensure a is 喵aller.
var c = a;
a = b;
b = c;
}
return Math.floor(Math.random() * (b - a + 1) + a);
}
world.onPlayerJoin(async ({entity})=>{
entity.say(['欢迎',entity.player.name,'进入pvp!'].join(''));
entity.showHealthBar=true;
entity.enableDamage=true;
});
world.querySelector("."+'player').onClick(async ({entity,clicker,button})=>{
if ('我不是吉吉喵,ttfgg'.split(',').indexOf(entity.player.name) + 1 == 0) {
entity.hurt(mathRandomInt(40, 100) / Math.PI + 10 * Math.random());
entity.player.color=new Box3RGBColor(0,200,0);
clicker.player.color=new Box3RGBColor(200,0,0);
await sleep(1000);
entity.player.color=new Box3RGBColor(0,0,0);
clicker.player.color=new Box3RGBColor(0,0,0);
} else {
clicker.player.directMessage(String(entity.player) + '是开发者!');
}
});
world.onDie(async ({entity,attacker})=>{
entity.player.forceRespawn();
world.say([other.player.name,'杀了',entity.player.name,'!┭┮﹏┭┮,快为',entity.player.name,'报仇!'].join(''));
});
})();
//也是保存代码,喵。
//用来PVP2020-05-04T20:56:43 点赞:0
在 橘子喵在吗??? 中回复
(async function(){var m, jhp, zh;
jhp = [];
zh = ('喵,®,™,喵,喵,你死了,喵' + ',猪,喵5,喵').split(',');
world.onPlayerJoin(async ({entity})=>{
if (entity.isPlayer) {
for (var m_index in jhp) {
m = jhp[m_index];
if (m == entity.player.name) {
entity.say('我是浆糊派!!');
while (!false) {
entity.position=new Box3Vector3(50,10,50);
}
}
}
}
});
world.onChat(async ({entity,message})=>{if(entity){
if (entity.isPlayer) {
for (var m_index2 in zh) {
m = zh[m_index2];
if (m == message) {
entity.say('我是浆糊派!!');
entity.player.color=new Box3RGBColor(255,0,0);
while (!false) {
entity.position=new Box3Vector3(50,10,50);
}
}
}
}
}});
})();
//***江湖派用,也是保存代码,你们别删帖子!!!2020-05-04T20:58:21 点赞:0
在 橘子喵在吗??? 中回复
world.onPlayerJoin(({entity})=>{
entity.player.crouchAcceleration=0.5;
entity.player.crouchSpeed=0.5;
entity.player.walkAcceleration=0.5;
entity.player.walkSpeed=0.5;
entity.player.runAcceleration=0.5;
entity.player.runSpeed=0.5;
entity.player.jumpAccelerationFactor=0.5;
entity.player.jumpPower=0.75;
entity.player.jumpSpeedFactor=0.5;
entity.player.doublejumpAccelerationFactor=0.5;
entity.player.doublejumpPower=0.75;
entity.player.doublejumpSpeedFactor=0.5;
entity.player.swimAcceleration=0.5;
entity.player.swimSpeed=0.5;
entity.player.flyAcceleration=0.5;
entity.player.flySpeed=0.5;
entity.player.fallAcceleration=0.05;
})
//对不起,我真的需要保存,我也是这个工作室的成员!2020-05-04T21:04:35 点赞:0
在 江湖派日常 中回复
5:突然惊醒
6:去医院检查
7:得了心喵
8:倒地身亡
9:变成僵尸
10:被戴夫***,变回人类
11:继续回到1的地方……如此循环
2020-05-05T12:00:53 点赞:0
在 【历史时刻】这一刻应该被记录! 中回复
function contains(arr,obj){
var i=arr.length;
while(i>=0){
if(arr[i]===obj){
return true;
}
i--;
}
return false;
}
function find(arr,obj){
var i=arr.length;
while(i>=0){
if(arr[i]===obj){
return i;
}
i--;
}
return -1;
}
function sleep (time) {
return new Promise((resolve) => setTimeout(resolve, time));
}
var all_player_name=new Array();
var has_wand=new Array();
var spell=new Array();
world.onChat(({entity,message})=>{
if(entity.hp>0){
if(message==='昏昏倒地'){
spell[find(all_player_name,entity.player.name)]='昏昏倒地';
sleep(10000).then(()=>{
spell[find(all_player_name,entity.player.name)]='undefined';
})
} else if(message==='快快复苏'){
spell[find(all_player_name,entity.player.name)]='快快复苏';
sleep(10000).then(()=>{
spell[find(all_player_name,entity.player.name)]='undefined';
})
} else if(message==='除武器'){
spell[find(all_player_name,entity.player.name)]='除你武器';
sleep(10000).then(()=>{
spell[find(all_player_name,entity.player.name)]='undefined';
})
} else if(message==='阿瓦达索命'){
spell[find(all_player_name,entity.player.name)]='阿瓦达索命';
sleep(10000).then(()=>{
spell[find(all_player_name,entity.player.name)]='undefined';
})
}
}
})
world.onPlayerJoin(({ entity }) => {
all_player_name.push(entity.player.name);
spell.push('undefined');
entity.enableDamage = true;
entity.player.onPress(({ button, raycast:{ hitEntity, direction } }) => {
if (button !== 'action0' || !hitEntity) {
return;
}
if(!hitEntity.isPlayer){
return;
}
if(entity.hp<=0){
return;
}
if(has_wand[find(all_player_name,entity.player.name)]===false){
entity.player.directMessage('你没有魔杖');
return;
}
if(spell[find(all_player_name,entity.player.name)]==='undefined'){
entity.player.directMessage('你还没有念咒语');
return;
}
var sp=spell[find(all_player_name,entity.player.name)];
if(sp==='昏昏倒地'){
if(hitEntity.hp>0){
world.say(hitEntity.player.name+'\n被\n'+entity.player.name+'\n击昏了');
hitEntity.hp=0;
}
} else if(sp==='快快复苏'){
if(hitEntity.hp===0){
world.say(entity.player.name+'\n使\n'+hitEntity.player.name+'\n复苏了');
hitEntity.hp=100;
}
} else if(sp==='除你武器'){
world.say(entity.player.name+'\n除掉了\n'+hitEntity.player.name+'\n的武器');
has_wand[find(all_player_name,hitEntity.player.name)]=false;
} else if(sp==='阿瓦达索命'){
world.say(entity.player.name+'\n击杀了\n'+hitEntity.player.name);
has_wand[find(all_player_name,hitEntity.player.name)]=false;
hitEntity.hp=-1;
}
spell[find(all_player_name,entity.player.name)]='undefined';
});
});
world.querySelectorAll('.fish').forEach((e)=>{
e.collides=true;
var type='r';
world.onTick(()=>{
if(e.position.x>=41){
e.position.x-=0.3;
type='l';
} else if(e.position.x<=13){
e.position.x+=0.3;
type='r';
} else{
if(type==='r'){
e.position.x+=0.3;
} else{
e.position.x-=0.3;
}
}
})
})
//搜刮来的代码,保存下2020-05-05T13:42:00 点赞:0
在 【box3】tick计时器 中回复
class timer{
public var ticks = 0;
public ansyc function startTimer(){
while (True){
self.ticks += 1
await sleep(1)
}
}
public function resetTimer(){
self.ticks = 0
}
}
//使用
var timer = new timer()
timer.startTimer()
await sleep(13)
console.log(timer.ticks)
//存代码ing……2020-05-05T13:42:49 点赞:0
在 本SHQ工作室成员专用 中回复
不会大飞模型的代码来了!
world.onPlayerJoin(({ entity }) => {
entity.enableDamage = true;
entity.player.onPress(({ button, raycast:{ hitEntity, direction } }) => {
if (button !== 'action0' || !hitEntity) {
return;
}
hitEntity.velocity.x += direction.x;
hitEntity.velocity.y += 0.5;
hitEntity.velocity.z += direction.z;
if(!hitEntity.isPlayer){return}
hitEntity.hurt(5 * Math.random() + 5, {
attacker: entity,
});
});
});
//检测攻击代码
world.onDie(({ entity, attacker }) => {
if (attacker) {
world.say(attacker.player.name + ' 击杀了 ' + entity.player.name)
}
entity.player.forceRespawn();
});//死亡后代码2020-05-06T09:54:28 点赞:1
在 本SHQ工作室成员专用 中回复
world.onPlayerJoin(({entity})=>{
entity.position.set(3, 8+Math.random()*5, 125);//玩家进来的时候,将ta传送到8以上随机5格的位置
entity.player.spawnPoint.copy(entity.position);//将玩家复活点复制为上面的坐标
})
出生点代码
2020-05-06T09:55:36 点赞:0
在 本SHQ工作室成员专用 中回复
for(z=0;z<128;z++){for(x=0;x<128;x++){for(y=0;y<喵;y++){voxels.setVoxel(x,y,z,0)}}}
//还原地图代码(放控制台)2020-05-06T09:56:16 点赞:0
在 本SHQ工作室成员专用 中回复
if (timeS <= 500){//如果用时小于 500 秒...
world.say("${entity.player.name}"+ "到达终点!用时:${timeS} 秒!放大 5 倍!");
entity.player.scale = 5//可修改
} else {
world.say("${entity.player.name}"+ "到达终点!用时:${timeS} 秒!放大 2 倍!");
entity.player.scale = 2//可修改
}
2020-05-06T10:02:24 点赞:0
在 本SHQ工作室成员专用 中回复
(async()=>{
for(y=0;y<128;y++){
for(x=0;x<128;x++){
for(z=0;z<128;z++){
if(voxels.getVoxel(x,y,z)==voxels.id('被替换的方块名称')){
voxels.setVoxel(x,y,z,voxels.id('替换后的方块名称'))
}
}
}
}
})()
//输入控制台,替换世界的方块2020-05-06T10:04:15 点赞:0