- UID
- 58117
- 閱讀權限
- 10
- 主題
- 1
- 帖子
- 2
- 精華
- 0
- A幣
- 0
- 在線時間
- 1 小時
- 最後登錄
- 2019-3-4
集團新軍
- 主題
- 1
- 帖子
- 2
- 精華
- 0
- 綜合社群主題發文量
- 1
- 電玩社群主題發文量
- 0
- 娛樂社群主題發文量
- 0
- 技術社群主題發文量
- 0
- 閱讀權限
- 10
- 註冊時間
- 2019-3-3
TA的每日心情 | 衰 2019-3-10 01:15 |
---|
簽到天數: 3 天 連續簽到: 0 天 [LV.2]偶爾看看I
|
- var status = 0;
- var select;
- var sel;
- var se;
- var s;
- var choice;
- //整形代碼------------------
- var G_beauty = 0;
- var G_haircolor = Array();
- var G_skin = Array(0, 1, 2, 3, 4);
- var G_hair = Array(30450,30460,30590,31000);
- var G_hairnew = Array();
- var G_face = Array(21029, 21035, 21034, 21030, 21000, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008, 21009, 21010, 21011, 21012, 21013, 21014, 21016, 21017, 21018, 21019, 21020, 21021, 21022);
- var G_facenew = Array();
- var G_colors = Array();
- //女性外觀
- var B_beauty = 0;
- var B_haircolor = Array();
- var B_skin = Array(0, 1, 2, 3, 4);
- var B_hair = Array(30000,30020,30030,30040);
- var B_hairnew = Array();
- var B_face = Array(20037, 20036, 20032, 20031, 20029, 20000, 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20009, 20010, 20011, 20012, 20013, 20014, 20016, 20017, 20018, 20019, 20020, 20021, 20022, 20023);
- var B_facenew = Array();
- var B_colors = Array();
- //男性外觀
- //整形代碼------------------
- function start() {
- status = -1;
- action(1, 0, 0);
- }
- function action(mode, type, selection) {
- if (mode == -1) {
- cm.dispose();
- } else {
- if (mode == 0) {
- cm.dispose();
- return;
- }
- if (mode == 1)
- status++;
- else
- status--;
- if (status == 0) {
- cm.sendSimple("你好!在這裡我可以幫你改變造型,請問你需要什麼服務?\r\n#L0#髮型#l\r\n#L1#膚色#l\r\n#L2#髮色#l\r\n#L3#眼型#l\r\n#L4#眼色#l");
- }
- else if (status == 1) {
- var g = cm.getPlayer().getGender();
- if (selection == 0) {
- if (g == 1) {
- G_beauty = 1;
- G_hairnew = Array();
- for (var i = 0; i < G_hair.length; i++) {
- G_hairnew.push(G_hair[i] + parseInt(cm.getChar().getHair() % 10));
- }
- cm.sendStyle("選擇你喜歡的?", G_hairnew);
- }
- else {
- B_beauty = 1;
- B_hairnew = Array();
- for (var i = 0; i < B_hair.length; i++) {
- B_hairnew.push(B_hair[i] + parseInt(cm.getChar().getHair() % 10));
- }
- cm.sendStyle("選擇你喜歡的?", B_hairnew);
- }
- sel = 0;
- }
- else if (selection == 1) {
- cm.sendAcceptSimple("1");
- }
- else if (selection == 2) {
- cm.sendAcceptSimple("2");
- }
- else if (selection == 3) {
- cm.sendAcceptSimple("3");
- }
- else if (selection == 4) {
- cm.sendAcceptSimple("4");
- }
- else if (sel == 0) {
- if (G_beauty == 1)
- cm.setHair(G_hairnew[selection]);
- else if (B_beauty == 1)
- cm.setHair(B_hairnew[selection]);
- cm.dispose();
- }
- }
- }
- }
複製代碼 代碼如上
我在選擇頭髮後 按下確定按鈕不會變 而且會卡住需要 @ea 去解卡。
請問是我的邏輯在哪裡出錯了嗎。
|
|