找回密码
 注册
搜索
查看: 2301|回复: 5

书剑迷宫的code是哪个文件?

[复制链接]
门派:不明
发表于 2014-1-13 03:09:13 | 显示全部楼层 |阅读模式
rt
                              
门派:不明
发表于 2014-1-13 14:35:21 | 显示全部楼层
没看过code的,要看这个做什么?
门派:不明
发表于 2014-1-16 17:03:14 | 显示全部楼层
这要看你要走哪个迷宫的?
门派:不明
 楼主| 发表于 2014-1-16 19:38:07 | 显示全部楼层
liyu@tx 发表于 2014-1-16 17:03
这要看你要走哪个迷宫的?

比如我走桃花岛                       
门派:不明
发表于 2014-1-16 23:42:10 | 显示全部楼层
桃花阵 - /d/thd/taohua1

void create()
{
        int thd1, thd2, thd3, thd4;

        thd1 = random(4) + 1;
        thd2 = random(4) + 1;
        thd3 = random(4) + 1;
        thd4 = random(4) + 1;
        while (thd1 != 4 && thd2 != 4 && thd3 != 4 && thd4 != 4) {
                thd1 = random(4) + 1;
                thd2 = random(4) + 1;
                thd3 = random(4) + 1;
                thd4 = random(4) + 1;
        }
        set("short", "桃花阵");
        set("long", @LONG
这是一片茂密的桃花丛,你一走进来就迷失了方向。
LONG
        );

        set("exits", ([
                "east" : __DIR__"taohua" + thd1,
                "west" : __DIR__"taohua" + thd2,
                "south" : __DIR__"taohua" + thd3,
                "north" : __DIR__"taohua" + thd4,
        ]));
        set("outdoors","桃花岛");
        setup();
很复杂吧
随机的
门派:不明
发表于 2014-12-19 21:44:26 | 显示全部楼层
好复杂,看不懂!it的世界我们不懂
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|书剑永恒MUD ( 闽ICP备14012032号|闽公网安备 35050202000162号 )

GMT+8, 2025-6-28 08:13 , Processed in 0.049475 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表