Looking to simplify a skill system

Hey folks

so I'm trying to deviate from the norm of "level up and learn skills", while still allowing some customization to the player

What I was thinking was having a "deck" style of skills where you equip a certain amount of skills (Using the "MP" variable as the Skill Limit. IE: character has 5 MP, can equip 5 skills, so that way its visible to the player)

The problem that I'm having is trying to figure out a way to erase old skills and learn new ones once a player has reached the max. What I'm thinking is just having a function that erases all skills if somebody chooses so they can rebuild their "deck", but the only problem with that is I have to create an event that separately forgets every skill in the game for every player in order for that to work, is there a simpler way to do this or does anybody have any suggestions?

EDIT 2: Basically, I'd like to create a loop, from 1 to x (where x is the number of all skills in the game, like skill 001 to x) where it will forget all skills on a certain character. But I don't know how to write a script that deletes the skill number dependent on whatever my variable is. 

The other thing I'm wondering is if there is a way to get the game to treat "Shield", "Headgear", "Armor", and "Accessory" as all identical slots so that I could theoretically equip the same item in any slot. EDIT: actually found out how to do this! In the equipment scrip, I just changed this:

def equip_slots

    return [0,0,2,3,4] if dual_wield?       # Dual wield

    return [0,1,2,3,4]                      # Normal

  end

 

to this

 

def equip_slots

    return [0,0,1,1,1] if dual_wield?       # Dual wield

    return [0,1,1,1,1]                      # Normal

  end


thank you 🙂

Original thread: https://forums.rpgmakerweb.com/threads/looking-to-simplify-a-skill-system.42387/