Jump to content
New account registrations are disabed. This website is now an archive. Read more here.

bcolema61

Member
  • Content Count

    1
  • Joined

  • Last visited

  1. Hello, I started playing around with RGSS just recently and I'm still trying to figure a lot of it out. I added my own custom stats and got them all working how I want them to, however I'm trying to add code in to increase these stats on certain weapons. For example, I have "Mind" which increases the magic attack of the actor. I want certain weapons and pieces of armor to have different values of "Mind" on them. Right now I have: def base_mind # use this array as multipliers mval = [0, 1.2, 1.1, 0.25, 2.4] weapon_mod = { 31 => 30, 45 => 10 } # mulitply current level * array element for this actor mvalue = @level * mval[@actor_id] # give weapons mind attribute here if weapon_mod.has_key?(@weapon_id) mvalue += weapon_mod(@weapon_id) end return [mvalue, 999].min end Am I doing something wrong here? It's saying undefined method for weapon_mod... Thanks!
×
×
  • Create New...