Special Elements Script
Authors: Bigace
Version: 1.0
Type: Special Element-Add-on
Key Term: Add-on Collection
IntroductionFirst ever script done by me(bigace) and probably my last until my first game is done. This script allows it so for only certain enemies to be hurt by certain elements. Mostly for items that are supposed to target a certain type of enemy. Like If you have a Item called 'Dragoon Slayer'. That Item should only hurt dragons, other enemies would be uneffected by this item. You can do the same with skills to.
ScreenshotsNone needed....
DemoIf you need one, I'll make one for you.
ScriptQuote#==============================================================================
#Special Elements
#By Bigace
#==============================================================================
=begin
This script allows it so for only certain enemies to be hurt by certain elements.
Mostly for items that are supposed to target a certain type of enemy. Like If you
have a Item called 'Dragoon Slayer'. That Item should only hurt dragons, other
enemies would be uneffected by this item. You can do the same with skills to.
In the Database Under 'Items' add the type of element, most preferably an animal
type like demon or dragon, and then in this script add the monster ID for the
one that certain element works on.
=end
#-----------------------------------------
$special_elements = {
#Element_ID => [Enemy_ID],
10 => [3, 7, 12], #element 10 only works against monsters 3, 7 and 12
11 => [6, 14], #element 11 only works against monsters 6 and 14
}
#-----------------------------------------
# Don't Not Touch Below
#-----------------------------------------
class Game_Enemy
alias special_element_rate element_rate
def element_rate(element_id)
result = special_element_rate(element_id)
if $special_elements.keys.include?(element_id)
unless $special_elements[element_id].include?(@enemy_id)
result = 0
end
end
return result
end
end
InstructionsPlugin above main and then in the Database Under 'Items' add the type of element to an Item your using against a enemy, most preferably an animal type like demon or dragon, and then in this script add the monster ID for the one that certain element works on.
CompatibilityIt works on my game and I have a wall of scripts, only thing I can tell you that it might have trouble with the Game_Enemy,but that's about it.
Credits and Thanks
- It's a very small script so need to credit but some feedback would be nice