I have a complicated request

Discussion in 'RGSS3 Script Requests' started by ElOtario, Mar 8, 2019.

  1. ElOtario

    ElOtario Villager Member

    Messages:
    25
    Likes Received:
    1
    First Language:
    Pretuguês
    Primarily Uses:
    RMVXA
    I want each actor in the party to be able to select skills when they level up. Say each actor has specific skill slots assigned to them (I am using a costum parameters script, so that isn't really the problem), and each time a certain actor levels up, the player can choose the skills he wants from the list, until all the actor's skill slots are spent. The two big problems for me is that the party is not fixed, including the main actor, so I don't really know how to implement it, and that I don't have a lot of knowledge in regards to events at level-up. I don't know if I'm explaining myself really well, so I'm sorry if you don't understand what I mean.
     
    #1
  2. TheoAllen

    TheoAllen Self-proclaimed jack of all trades Veteran

    Messages:
    4,146
    Likes Received:
    4,583
    Location:
    Riftverse
    First Language:
    Indonesian
    Primarily Uses:
    RMVXA
  3. ElOtario

    ElOtario Villager Member

    Messages:
    25
    Likes Received:
    1
    First Language:
    Pretuguês
    Primarily Uses:
    RMVXA
    Kind of, but it would be better if it only appeared at level up. Anyway, beggars can't be choosers. Another thing I forgot to explain though, is that I want the skill costs to be different according to class. For example, for class X, skill A costs 1 skill slot, but for class Y, skill A may cost 2 skill slots. Would that be possible with the script? Sorry if I'm asking for too much.
     
    #3
  4. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,141
    Likes Received:
    10,306
    First Language:
    English
    Primarily Uses:
    RMVXA

    I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #4
  5. ElOtario

    ElOtario Villager Member

    Messages:
    25
    Likes Received:
    1
    First Language:
    Pretuguês
    Primarily Uses:
    RMVXA
    I am really sorry for posting in wrong forum, I thought it could be done with events.
     
    #5
  6. xdan

    xdan Veteran Veteran

    Messages:
    158
    Likes Received:
    56
    First Language:
    Spanish
    It can be done with events, but you'll need this small script:

    Code:
    #Runs a common event on level up.
    
    class Game_Actor < Game_Battler
      def level_up
        @level += 1
        self.class.learnings.each do |learning|
          learn_skill(learning.skill_id) if learning.level == @level
        end
        $game_temp.reserve_common_event(1) #Id of the common event
      end
    end
    

    This will make a common event run on every level up. Where it says "$game_temp.reserve_common_event(1)", change the number to the id of the preferred common event.

    If you need help to make the common event itself, I have a pretty clear idea of how it could work.

    Also, you might want to check this script: https://forums.rpgmakerweb.com/index.php?threads/lune-unlimited-skill-tree.25423/
     
    #6
  7. ElOtario

    ElOtario Villager Member

    Messages:
    25
    Likes Received:
    1
    First Language:
    Pretuguês
    Primarily Uses:
    RMVXA
    Thanks for the script. I guess I can figure out how to do the rest.
     
    #7
  8. xdan

    xdan Veteran Veteran

    Messages:
    158
    Likes Received:
    56
    First Language:
    Spanish
    You're welcome! ^^
     
    #8

Share This Page