11-20-2016, 01:34 AM
That's mainly because the data file where all the info found in $data_actors is stored there and it's pretty much unchangeable. I guess new methods should be created in the Game_Actor class, but I'm not sure if that would ever work. Perhaps it does under some circumstances redefining equip_fix?(equip_type) method would somehow overcome such obstacle.
Let's give it a try...
Then via script call you'd need to fix any of them by typing...
$game_actors[Actor's ID].fix_armor(Index)
Replace Actor's ID with the corresponding Index found in the Actors database and do the same with Index depending on which equipment or accessory you'd need to fix. Valid indexes would be anything between 5 and 11 inclusive.
Let's give it a try...
Code:
class Game_Actor
alias kyon_more_armors_fixed_gm_actor_setup setup
alias kyon_more_armors_fixed_gm_actor_equip_fix equip_fix?
def setup(actor_id)
kyon_more_armors_fixed_gm_actor_setup(actor_id)
@armor5_fix = false
@armor6_fix = false
@armor7_fix = false
@armor8_fix = false
@armor9_fix = false
@armor10_fix = false
@armor11_fix = false
end
def equip_fix?(equip_type)
if equip_type < 5
return kyon_more_armors_fixed_gm_actor_equip_fix(equip_type)
end
case equip_type
when 5 then @armor5_fix
when 6 then @armor6_fix
when 7 then @armor7_fix
when 8 then @armor8_fix
when 9 then @armor9_fix
when 10 then @armor10_fix
when 11 then @armor11_fix
end
end
def fix_armor(equip_type)
case equip_type
when 5 then @armor5_fix = true
when 6 then @armor6_fix = true
when 7 then @armor7_fix = true
when 8 then @armor8_fix = true
when 9 then @armor9_fix = true
when 10 then @armor10_fix = true
when 11 then @armor11_fix = true
end
end
end
Then via script call you'd need to fix any of them by typing...
$game_actors[Actor's ID].fix_armor(Index)
Replace Actor's ID with the corresponding Index found in the Actors database and do the same with Index depending on which equipment or accessory you'd need to fix. Valid indexes would be anything between 5 and 11 inclusive.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE