One very easy way that to happen is via this script call:
Code:
$game_actors[actor_id].actor.base_equip_slots.push(equip_type_id)
You replace the actor_id with the coresponding actor id number, and the equip_type_id with the coresponding equip type id number set in yanfly's script. Not too heavely tested though.
That script call does not work on actors that would use default equip slots. Or, it rather do work, but once you push any equip slot, the default ones would not load for the given actor. As that script call is something that could help you, it might not in the example you give.
To work for the example you give, the level up method could be modified, so it pushes more slots when certain conditions are met. But you need to provide more data how exactly that should happen. That happens for all actors, or only for certain? Different actors have different levels when they would recieve new slot, and different slot type to recieve on criteria met? Or it works same for all actors? Same level criteria, same slot type added?
Edit: Only the script call by itself won't help you, as that won't remain in the save file.
The equip slot data should be stored in save data, and extracted from there loading new game, if you add this snippet at the end of the Yanfly Equip Engine:
Spoiler
Code:
#Add-on for Ace Equip Engine
#Purpose: Save and loads the actors equip slots.
module DataManager
class << self
alias_method :ggz_yee_make_save_contents_old, :make_save_contents
alias_method :ggz_yee_extract_save_contents_old, :extract_save_contents
end
def self.make_save_contents(*args)
contents = ggz_yee_make_save_contents_old(*args)
equip_slot_save = Array.new
$data_actors.each_with_index do |actor, i|
next unless actor
equip_slot_save[i] = actor.base_equip_slots
end
contents[:ynf_base_equip_slots] = equip_slot_save
contents
end
#--------------------------------------------------------------------------
# * Extract Save Contents
#--------------------------------------------------------------------------
def self.extract_save_contents(contents)
ggz_yee_extract_save_contents_old(contents)
equip_slot_load = contents[:ynf_base_equip_slots]
if equip_slot_load
$data_actors.each_with_index do |actor, i|
next unless actor
actor.base_equip_slots = equip_slot_load[i]
end
end
end
end
You should add that snippet at the end of "Ace Equip Engine" script, after everything else there.
That snippet only makes it so whatever changes you make, to be stored in the save.
It would not add any equip slots on level up. For that, you need to provide more info how you want it to happen.