[XP] Enemy Elemental Attack

Started by G_G, November 12, 2009, 12:01:47 am

Previous topic - Next topic

G_G

November 12, 2009, 12:01:47 am Last Edit: February 18, 2013, 02:33:10 am by Blizzard
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


  • Adds Elements to Enemy's Attacks



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.

  • Blizz-ABS Tested
  • Default Battle System Tested
  • Minkoff's Sideview Battle System Tested



Credits and Thanks


  • game_guy ~ for making it possible using Enterbrain's code
  • game_guy ~ for having troubles with enemies and elements



Author's Notes

Give credits and enjoy!

legacyblade

good initiative. you wanted this script, so you made it :D

Holyrapid

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?

G_G

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.

Holyrapid

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)

Aqua

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

G_G

Thanks for the comments guys! Hope it comes useful to some people.