Hey Adik,
How do I access available attribute points when increasing the attribute? I already have the value in a global variable, but I don't know how to integrate it (still learning :\ )
I did this..
but now I need to make it so I can use the points on the attribute 0. Game variable 50 is my variable for attribute points, and it displays fine.
How do I access available attribute points when increasing the attribute? I already have the value in a global variable, but I don't know how to integrate it (still learning :\ )
I did this..
#Text shown on actor window
def actor_text(actor)
return actor.name + "" + actor.nickname + " - Attribute Points: " + $game_variables[50].to_s#actor.get_custom_attribute_points.to_s
end
#Edit this to do custom things when an attribute is increased
def on_custom_attribute_increase(actor,index)
case index
when 0
actor.add_param(0,10)
use_attr_point
end
end
def use_attr_point
$game_variables[50] -= 1
end
def actor_text(actor)
return actor.name + "" + actor.nickname + " - Attribute Points: " + $game_variables[50].to_s#actor.get_custom_attribute_points.to_s
end
#Edit this to do custom things when an attribute is increased
def on_custom_attribute_increase(actor,index)
case index
when 0
actor.add_param(0,10)
use_attr_point
end
end
def use_attr_point
$game_variables[50] -= 1
end