Re: [wizs]問題請教(十)
看板mud_sanc (Sanctuary - 聖殿)作者laechan (打死不投馬冏,李系咩安抓)時間18年前 (2007/07/04 07:37)推噓2(2推 0噓 2→)留言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
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
討論串 (同標題文章)
完整討論串 (本文為第 3 之 3 篇):
mud_sanc 近期熱門文章
PTT遊戲區 即時熱門文章