 |
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
未修改程序,双层条件分歧也能正常运行: 
|