02-26-2019, 08:42 AM
DeceptivelyFriendlyKO XP
by Kyonides Arkanthes
by Kyonides Arkanthes
Introduction
This might be considered the stand alone version of Kolloseum States XP Deceptively Friendly Knockout Version. What it offers is to let you configure via script how some weapons will either ignore or instantly kill specific monsters. It also sports armors that heroes can equip in order to redistribute damage inflicted by monsters. Who will be affected here? Well, it will be all of your doomed heroes for sure! That happens because each hero will be inflicted the same amount of damage. Sadly, that might not save your weak mages and clerics after all.
Script
Code:
# * DeceptivelyFriendlyKO XP
# Scripter : Kyonides-Arkanthes
# 2019-02-26
module KDecKout
UNHARMED = 'Unharmed'
KNOCKOUT = 'Knockout'
# WeaponID => [EnemyID1, etc.]
IGNORE_TARGET_WEAPONS = {}
# WeaponID => [EnemyID1, etc.]
INSTANT_KILL_WEAPONS = {}
# [ArmorID1, etc.] - Include Shields and Body Armors Only
DISTRIBUTE_DMG_ARMORS = []
end
class Game_Actor
def attack_effect(attacker)
effective = super(attacker)
armors = [@armor1_id, @armor3_id]
if effective and (KDecKout::DISTRIBUTE_DMG_ARMORS & armors).empty?
heroes = $game_party.actors
partial = @damage / heroes.size
heroes.each {|h| h.damage = partial }
end
return effective
end
end
class Game_Enemy
def attack_effect(attacker)
wid = attacker.weapon_id
if (this_weapon = KDecKout::IGNORE_TARGET_WEAPONS[wid])
if this_weapon.include?(@enemy_id)
@damage = KDecKout::UNHARMED
return false
end
elsif (this_weapon = KDecKout::INSTANT_KILL_WEAPONS[wid])
if this_weapon.include?(@enemy_id)
@damage = KDecKout::KNOCKOUT
@hp = 0
return true
end
end
return super(attacker)
end
end
Terms of Use
Well, I know it is a scriptlet so I guess I will not ask for more than US$10 for it in case you go commercial. Do not forget to include me in your game credits!
"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