| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 1 |  
| 经验 | 35025 |  
| 最后登录 | 2017-9-29 |  
| 在线时间 | 231 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间231 小时注册时间2007-12-17帖子541 | 
5楼
 
 
 楼主|
发表于 2008-2-14 00:10:36
|
只看该作者 
| 以下引用魔影于2008-2-13 15:34:58的发言:
 if @active_battler.current_action.basic == 0 and
 @active_battler.current_action.kind == 0           #普通攻击
 
 end
 
 
 if @active_battler.current_action.kind == 1    #特技
 
 end
 
 
 if @active_battler.current_action.kind == 2    #物品
 
 end
 
 那么,如果行动的类型是攻击或者使用特技就可以写成下面这样???还有,防御应该怎么写?
 
 if (@active_battler.current_action.basic == 0 and @active_battler.current_action.kind == 0) or (@active_battler.current_action.kind == 1)
 
 | 
 |