赞 | 2 |
VIP | 0 |
好人卡 | 0 |
积分 | 39 |
经验 | 13328 |
最后登录 | 2024-4-25 |
在线时间 | 254 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 3925
- 在线时间
- 254 小时
- 注册时间
- 2013-10-13
- 帖子
- 790
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
请问一个Game_Enemy中的问题
for action in self.actions
# 确认回合条件
n = $game_temp.battle_turn
a = action.condition_turn_a
b = action.condition_turn_b
if (b == 0 and n != a) or
(b > 0 and (n < 1 or n < a or n % b != a % b))
next
end
end
上面的这个程序怎么理解?第一个回合$game_temp.battle_turn的值是1,那么这样符合b > 0 and n % b != a % b,那么敌人的行为可以删除了,这不符合. |
|