Hey there, haven't posted in a while, but I'm back to working on learning Ruby/RGSS. I have written this preliminary code as a startup class for the job point system. All it is really is an attribute I tried to add to the Game_Actor class to handle jp and jpXP. I need some help progressing this code to actually work!
Here it is.
This is in the Game_Actor public instances variable section.
This is the code I made in a seperate class
Now, do I have to inherit the Game_Actor class to make it work? or what? I need some help!
thanks!
Here it is.
This is in the Game_Actor public instances variable section.
Code:
attr_reader :jp # Job Points
attr_reader :jpXP # Job Point Experience Points
This is the code I made in a seperate class
Code:
class Job_System
def initialization
print job_points
print job_pointsXP
job_points = $game_actor.jp
job_pointsXP = $game_actor.jpXP
$game_actor.jpXP == 100
case $game_actor.jpXP
when 100
$game_actor.jp += 1
end
end
end
Now, do I have to inherit the Game_Actor class to make it work? or what? I need some help!
thanks!