Here's how I went about adding a statistic when I needed to. First, I went into the database and stole Zeriab's module addon:
http://rmrk.net/index.php/topic,21582.0.htmlThen (and this might not be the best way to do it), I wrote in the additional stats like this:
attr_sec_accessor :hp_plus, 'get_additional_stats (0)'
attr_sec_accessor :sp_plus, 'get_additional_stats (1)'
and then I wrote a method in the class like this:
def get_additional_stats (parameter)
case @id
when 0 # Bronze Sword
hp_add = XX
sp_add = YY
return [hp_add, sp_add][parameter]
when 1 # ETC...
end
return 0
end
You could do that for as many stats as you want to, but like I said, it might not be the best way; it's just the way I did it.