| 
 
| 赞 | 0 |  
| VIP | 47 |  
| 好人卡 | 14 |  
| 积分 | 1 |  
| 经验 | 6342 |  
| 最后登录 | 2015-10-31 |  
| 在线时间 | 466 小时 |  
 Lv1.梦旅人 
	梦石0 星屑50 在线时间466 小时注册时间2006-2-25帖子1863 | 
| 本帖最后由 诡异の猫 于 2011-11-15 23:10 编辑 
 在RPG模块里面定义是没用的
 直接在Game_Event类里面定义
 class Game_Event
 attr_accessor :name
 attr_accessor :atk
 attr_accessor :def
 attr_accessor :spi
 attr_accessor :agi
 
 def initialize 在@through = true 下面插入
 arr = event.name.split(/,/)
 @name  = arr[0]
 @atk = arr[1].to_i
 @def = arr[2].to_i
 @spi = arr[3].to_i
 @agi = arr[4].to_i
 end
 end
 就可以了
 
 然后事件名的格式为 "事件名, atk, def, spi, agi" 例如 "史莱姆, 10, 8, 5, 5"
 | 
 |