看板 mud_sanc 關於我們 聯絡資訊
檔案 /std/gmonster.c . . . int mp=0; mixed mo; void move_path() { object env; int tt; tt=sizeof(data["move_path"]); if(tt==1) { me->force_me("say 行走路線要成為迴圈呀, 不然我會迷路!\n"); return ; } if(mp==tt) mp=0; if(mo=data["move_path"]) { env=environment(me); --More--行數(69/233)--按enter繼續--按q離開-- if(!env->query("exits") || !env->query("exits/"+mo[mp]) ) { me->force_me("say 奇怪了!我要走的是"+mo[mp]+",為什找不到路了?\n"); me->remove(); return ; } else { me->force_me("go "+mo[mp]); mp++; return ; } } } . . . 感覺好像有用處...我設定set("move_path",XXX),或void move_path() 重編進mob檔裡都沒用(就自跑自的)..問一下有什麼方法可以用到這個path嗎? -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.129.142.132