- Joined
- Oct 24, 2012
- Messages
- 381
- Reaction score
- 660
- First Language
- Portuguese
- Primarily Uses
- RMMV
Yeah xD, your in the right part of the script.you can make it like this.Awesome script. I have a question for you. How would you change it so a point isn't added every level?
I think it's this section of the script:
#--------------------------------------------------------------------------
# * Level increase
#--------------------------------------------------------------------------
def level_up
lune_sk_level_up
@skill_tree[0] += 1 if Lune_Skill_Tree::Add_Skill_pt
end
end
I just don't know how to modify this to make it different. Like can it be changed to every other level? Every 5 levels? How can this be done?
#-------------------------------------------------------------------------- # * Level increase #-------------------------------------------------------------------------- def level_up lune_sk_level_up @skill_tree[0] += 1 if Lune_Skill_Tree::Add_Skill_pt && @level % 5 == 0 endend@level is the variable that has that actor current level, and % is an operator of rest, basically14 % 5 equals 4, so to make every five level you can use @level % 5 == 0 ( you can change the 0 to 0-4, depending on what level you want the skill point, == 0 means every number divisible by 5: 5, 10, 15... if it was == 3 for example it would be: 3, 8, 13...)
Last edited by a moderator:

