Hello everyone,
Currently I am working on an RMXP project which requires alot of class changing for the characters.
I also have passive skills that add a certain percent of HP, STR, DEX, AGI, Etc. depending on the class.
Now, here's the problem. When I switch classes, the values for the characters stats are not correct.
I've been able to tinker around in Interpreter 6 script, and I have a pretty good Idea to fix it.
I was thinking, before Change class occurs, the Interpreter 6 will assign the base value of stats as assigned
in the database. Like so:
obviously the bold line has some incorrect variables as it does not work.
Any ideas on what variables to replace there?
Currently I am working on an RMXP project which requires alot of class changing for the characters.
I also have passive skills that add a certain percent of HP, STR, DEX, AGI, Etc. depending on the class.
Now, here's the problem. When I switch classes, the values for the characters stats are not correct.
I've been able to tinker around in Interpreter 6 script, and I have a pretty good Idea to fix it.
I was thinking, before Change class occurs, the Interpreter 6 will assign the base value of stats as assigned
in the database. Like so:
Code:
#--------------------------------------------------------------------------
 # * Change Actor Class
 #--------------------------------------------------------------------------
 def command_321
  # Get actor
  actor = $game_actors[@parameters[0]]
  # Change class
  if actor != nil
   [b] actor.maxhp = actor.base_maxhp[/b]
   actor.class_id = @parameters[1]
  end
  # Continue
  return true
 end
obviously the bold line has some incorrect variables as it does not work.
Any ideas on what variables to replace there?