設置 | 登錄 | 註冊

目前共有5篇帖子。

单层条件分歧已经能正确地编译和执行了!

1樓 巨大八爪鱼 2015-12-13 22:41


执行结果:
[Event 10 is now ready]
[Section Index]: 0
[Section Index]: 1
[Section Index]: 4
[Section Index]: 5
[Section Index]: 6
[Section Index]: 7
[Section Index]: 9
哈哈3
[Section Index]: 10
[Event 10 is now unlocked]

2樓 巨大八爪鱼 2015-12-13 22:42
编译结果:
        public function cmdlist_Map1Event10Page1_1() { // Type: 1, Indent: 0
            showDialog("公主", "文本1");
        }
        public function cmdlist_Map1Event10Page1_2() { // Type: 4, Indent: 0
            Game.switches[1] = false;
            Game.variables[2] = 0;
            giveCondition(Game.switches[1] == true);
        }
        public function cmdlist_Map1Event10Page1_3() { // Type: 1, Indent: 1
            Game.variables[2] += 1;
            showDialog("公主", "文本2");
        }
        public function cmdlist_Map1Event10Page1_4() { // Type: 5, Indent: 1
            Game.variables[2] += 10;
            /* ELSE */
        }
        public function cmdlist_Map1Event10Page1_5() { // Type: 1, Indent: 1
            Game.variables[2] += 100;
            showDialog("公主", "文本3");
        }
        public function cmdlist_Map1Event10Page1_6() { // Type: 0, Indent: 1
            Game.variables[2] += 1000;
            /* END IF */
        }
        public function cmdlist_Map1Event10Page1_7() { // Type: 1, Indent: 0
            Game.variables[2] *= 2;
            showDialog("公主", "" + Game.variables[2].toString());
        }
        public function cmdlist_Map1Event10Page1_8() { // Type: 4, Indent: 0
            giveCondition(Game.switches[1] == true);
        }
        public function cmdlist_Map1Event10Page1_9() { // Type: 0, Indent: 1
            trace("哈哈1");
            Game.map.events[eventID].setSelfSwitch("A", false);
            Game.map.events[eventID].setSelfSwitch("B", false);
            Game.map.events[eventID].setSelfSwitch("C", true);
            Game.variables[1] = Game.variables[2] = Game.variables[3] = Game.variables[4] = Game.variables[5] = Game.variables[6] = 0;
            Game.switches[1] = Game.switches[2] = Game.switches[3] = Game.switches[4] = Game.switches[5] = Game.switches[6] = Game.switches[7] = Game.switches[8] = Game.switches[9] = Game.switches[10] = false;
            trace("哈哈2");
            /* END IF */
        }
        public function cmdlist_Map1Event10Page1_10() { // Type: 0, Indent: 0
            trace("哈哈3");
        }
3樓 巨大八爪鱼 2015-12-13 22:46

分区情况
4樓 巨大八爪鱼 2015-12-13 22:48
对于Section8~10,因为条件分歧中没有中断源,所以应该合在一起编译,合成一个section。这个以后再做。
5樓 巨大八爪鱼 2015-12-13 22:55
未修改程序,双层条件分歧也能正常运行:

內容轉換:

回覆帖子
內容:
用戶名: 您目前是匿名發表。
驗證碼:
看不清?換一張
©2010-2025 Purasbar Ver3.0 [手機版] [桌面版]
除非另有聲明,本站採用知識共享署名-相同方式共享 3.0 Unported許可協議進行許可。