設置 | 登錄 | 註冊

目前共有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許可協議進行許可。