作者hlead (希多)
看板mud_sanc
标题Re: [问题] 关於必中..
时间Tue May 17 23:13:40 2011
※ 引述《laechan (小太保)》之铭言:
: ※ 引述《hlead (希多)》之铭言:
: 因为很显然的,玩家看到有伤害数字、实际却没造成该怪物的
: 损伤时,就一定会觉得「诡异」、会问说「为什麽」。
: Laechan
int receive_damage(int damage)
{
object frog=this_object();
if(kk<1)
{
this_object()->set_temp("selfshield2",({500000,1,frog,frog}));
// 额外叙述加再这里
// tell_object(ppl,HIC"因为爱所以必中无效\n"NOR);
return 1;
}
kk=0;
::receive_damage(damage);
return 1;
}
话说我眼残没看到return 1;...哈哈~
--
Norr@Sanc
风,吹散了一切烦恼,只留下平静的思考。
雨,淋落了一切纷乱,只剩下无比的快乐。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 122.117.46.189
1F:→ laechan :你就加个叙述让玩家看一下,玩家看了会懂的那种 05/18 07:38
2F:推 justinj :经过测试..if(damage<=0) {叙述}..这种用必中打是看 05/18 09:48
3F:→ justinj :不到叙述的....当然如果要说明怪物是防必中,直接写在 05/18 09:49
4F:→ justinj :long会比较好... 05/18 09:50