目前共有5篇帖子。 內容轉換:不轉換▼
 
點擊 回復
232 4
单层条件分歧已经能正确地编译和执行了!
一派護法 十九級
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
未修改程序,双层条件分歧也能正常运行:

回復帖子

內容:
用戶名: 您目前是匿名發表
驗證碼:
(快捷鍵:Ctrl+Enter)
 

本帖信息

點擊數:232 回複數:4
評論數: ?
作者:巨大八爪鱼
最後回復:巨大八爪鱼
最後回復時間:2015-12-13 22:55
 
©2010-2024 Arslanbar Ver2.0
除非另有聲明,本站採用創用CC姓名標示-相同方式分享 3.0 Unported許可協議進行許可。