Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: G_G on November 12, 2009, 12:01:47 am

Title: [XP] Enemy Elemental Attack
Post by: G_G on November 12, 2009, 12:01:47 am
Enemy Elemental Attack
Authors: game_guy
Version: 1.0
Type: Enemy Add-on
Key Term: Enemy Add-on



Introduction

This script makes it so enemies have elements in their attacks now. So instead of a Fire Enemy just attacking normally, you can make it so there's Fire added to its attack.


Features




Screenshots

N/A


Demo

N/A


Script

Spoiler: ShowHide

#===============================================================================
# Enemy Elemental Attack
# Author game_guy
# Version 1
#-------------------------------------------------------------------------------
# Intro:
# This script makes it so enemies have elements in their attacks now.
# So instead of a Fire Enemy just attacking normally, you can make it
# so there's Fire added to its attack.
#
# Features:
# Adds Elements to Enemy's Attacks
#
# Instructions:
# Go down to Config and read instructions there.
#
# Credits:
# game_guy ~ for making it possible using Enterbrain's code
# game_guy ~ for having troubles with enemies and elements
#
# Notes:
# Give credits and enjoy!
#===============================================================================
class Game_Enemy < Game_Battler
 def element_set
   case id
   #=============================================================
   # Config:
   # Use this
   # when enemy_id then return [element, element, element]
   # Example:
   # when 1 then return [1, 2, 3]
   # This makes it so enemy 1 now has fire, ice and thunder
   # added to its normal attack.
   #=============================================================
   when 1 then return [12]
   end
   return []
 end
end



Instructions

In the script.


Compatibility

Not tested with SDK.
Should be compatible with pretty much anything.



Credits and Thanks




Author's Notes

Give credits and enjoy!
Title: Re: [XP] Enemy Elemental Attack
Post by: legacyblade on November 12, 2009, 12:06:16 am
good initiative. you wanted this script, so you made it :D
Title: Re: [XP] Enemy Elemental Attack
Post by: Holyrapid on November 12, 2009, 08:14:30 am
Nice. I´ll use this. Nice work once again G_G. BTW, congrats on becoming a mod. When did that happen?
Anyway. i´ll use this. It´s a nice thing to have i.e a fire elemental that kicks your butt, and with fire damage.
I haven´t looked at the script, and even when i do, i propbly won´t know by looking, if you can make so that an enemy has multi-elemental attack. I.e an drow with two sabers (if that´s not the word, think Drizzt Do' Urden) one that has ice attack, and another that has earth attack. Is it possible? If it is, cool. If not, would it be possible to make it so?
Title: Re: [XP] Enemy Elemental Attack
Post by: G_G on November 12, 2009, 09:23:13 am
Well you could always make a two slash animation then use this
when 1 then return [1, 2]

That'd give it ice and fire elemental added to their attack.
when 1 then return [1, 2, 3]

That'd have ice, fire, and thunder added to its attack.
Title: Re: [XP] Enemy Elemental Attack
Post by: Holyrapid on November 12, 2009, 01:06:38 pm
Ok, great. This is gonna be nice. :) Thank you for making this simple, yet incredible, and useful script. CP has most likely most of the greatest scripters active. And, even when counting the not-so-active scripters, we have good ones here. :) (Sephy´s good, but he has one flaw. I´ll give you a hint. three (3) letters. anserws on a postcard)
Title: Re: [XP] Enemy Elemental Attack
Post by: Aqua on November 12, 2009, 04:19:40 pm
I like how the comments are longer than the actual script...
:x

Good job G_G.
If I did this... It probably would have been a LOT longer and complicated @.@
Shows how much I need to learn about default capability :P
Title: Re: [XP] Enemy Elemental Attack
Post by: G_G on November 12, 2009, 06:16:10 pm
Thanks for the comments guys! Hope it comes useful to some people.