Re: [wizs]問題請教(十)

看板mud_sanc (Sanctuary - 聖殿)作者 (打死不投馬冏,李系咩安抓)時間18年前 (2007/07/04 07:37), 編輯推噓2(202)
留言4則, 1人參與, 最新討論串3/3 (看更多)
※ 引述《amosdeus (幽素)》之銘言: : int beachscape(string str) : { : object ppl = this_player(); : if(random(2)==1) : { : tell_object(ppl,CYN"\nxxxxxxxxxxxxxxxxx!\n"NOR); : if((int)ppl->query("skill/xxxx")>xxx||(int)ppl->query("skill/xxx")<xxx) : ppl->set("skill/xxxxx",xxx); : return 1; : } 上面改成 mixed usr=all_inventory( environment(this_player() ); object ppl; if(random(2)==1) { foreach(ppl in usr) { if(!userp(ppl)) continue; // 先把非玩家略過 If(!interactive(ppl)) continue; // 斷線玩家可略過 by nobu tell_object(ppl,CYN"\nxxxxxxxxxxxxxxxxx!\n"NOR); if((int)ppl->query("skill/xxxx")>xxx||(int)ppl->query("skill/xxx")<xxx) ppl->add("skill/xxxxx",xxx); } return 1; } : } : 為了保密以x來代替 : 我想請教問題有兩個 : 第一、請問要怎樣為同在一個房間的所有玩家,在技能上加的數值 : 第二、請問要增加技能數值是用add嗎? : 檔案目錄:/u/p/plain/wide/virtue/room/149 : 以上謝謝 : Plain@Sanc 若 xxxxx 是上限值 9900 的現有技能,不必事先報備;如果是 上限值非 9900 的技能,或是新技能、未開放技能,要事先講喔. Laechan -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.231.215.152 ※ 編輯: laechan 來自: 125.231.215.152 (07/04 07:38)

07/04 20:04, , 1F
我想設計看到好風景想要畫圖 跟感嘆大自然奧妙 增加PEN跟
07/04 20:04, 1F

07/04 20:05, , 2F
讀書識字 這兩種可以嗎?
07/04 20:05, 2F

07/04 21:28, , 3F
呃~ 不好意思 我理解力不足 測了老半天還是有錯誤是否能
07/04 21:28, 3F

07/04 21:31, , 4F
幫我看一下是哪裡出錯。 謝謝!
07/04 21:31, 4F
文章代碼(AID): #16Yjscan (mud_sanc)
文章代碼(AID): #16Yjscan (mud_sanc)