[XP]Advanced collapse for enemies

Started by Sima Yi, May 19, 2010, 05:32:00 am

Previous topic - Next topic

Sima Yi

Do we have any advanced collapse for boss monsters here?I need it for the default battle system.Thanks. :haha:

prioran

Are you referring to this?

#_______________________________________________________________________________
# MOG_Collapse System V1.3           
#_______________________________________________________________________________
# By Moghunter
# http://www.atelier-rgss.com
#_______________________________________________________________________________
# Modifica como o colapso é apresentado.
#_______________________________________________________________________________
module MOG
#------------------------------------------------------------------------------- 
#Defina abaixo o tipo de colapso do inimigo (Coloque a ID). 
#-------------------------------------------------------------------------------
# Zoom na vertical.
#-------------------------------------------------------------------------------
COLLAPSE_TYPE_1 = [
1,   #Ghost
7,   #Imp
13   #Goblin

#-------------------------------------------------------------------------------
# Zoom na horizontal.
#-------------------------------------------------------------------------------
COLLAPSE_TYPE_2 = [
2,    #Basilisk
8,    #Angel
14,   #Harpy
22,   #Wyvern
23    #Daemon

#-------------------------------------------------------------------------------
# Zoom na vertical e na horizontal.
#-------------------------------------------------------------------------------
COLLAPSE_TYPE_3 = [
3,   #Sahagin
9,   #Zombie
15   #Gargoyle

#-------------------------------------------------------------------------------
# Rotação.
#-------------------------------------------------------------------------------
COLLAPSE_TYPE_4 = [
4,   #Hellhound
10,  #Lamia
16   #Archangel

#-------------------------------------------------------------------------------
# Zoom OUT.
#-------------------------------------------------------------------------------
COLLAPSE_TYPE_5 = [
5,   #Cobold
11,  #Lizardman
17   #Skeleton

#-------------------------------------------------------------------------------
# Zoom IN.
#-------------------------------------------------------------------------------
COLLAPSE_TYPE_6 = [
6,   #Cockatrice
12,  #Kerberos
18,  #Hydra
20,  #Griffin
21   #Ogre

#_______________________________________________________________________________
# Abaixo defina o tipo de colapso dos heróis.
#_______________________________________________________________________________
#Tipos de Colapsos.
#
#0 = Zoom na vertical
#1 = Zoom na horizontal
#2 = Zoom na vertical e na horizontal
#3 = Rotação
#4 = Zoom OUT
#5 = Zoom IN
#6 = Normal
TYPE_COL = 2 
#_______________________________________________________________________________
end
$mogscript = {} if $mogscript == nil
$mogscript["Collapse_System"] = true
#################
# Module Sprite #
#################
module RPG
class Sprite < ::Sprite 
alias mog_colapse_update update 
def update
mog_colapse_update 
super
if @_collapse_duration > 0
if @battler.is_a?(Game_Enemy)
if MOG::COLLAPSE_TYPE_1.include?(@battler.id)
self.zoom_x -= 0.02
self.zoom_y += 0.5
elsif MOG::COLLAPSE_TYPE_2.include?(@battler.id)
self.zoom_x += 0.5
self.zoom_y -= 0.05
elsif MOG::COLLAPSE_TYPE_3.include?(@battler.id)
if @_collapse_duration > 20
self.zoom_y -= 0.03
self.zoom_x += 0.03
else
self.zoom_x -= 0.115
self.zoom_y += 0.4
end 
elsif MOG::COLLAPSE_TYPE_4.include?(@battler.id)
self.zoom_x -= 0.04
self.zoom_y += 0.04
self.angle += 10
elsif MOG::COLLAPSE_TYPE_5.include?(@battler.id)
self.zoom_x += 0.06
self.zoom_y += 0.06 
elsif MOG::COLLAPSE_TYPE_6.include?(@battler.id)
self.zoom_x -= 0.03
self.zoom_y -= 0.03 
else 
end
elsif @battler.is_a?(Game_Actor)
if MOG::TYPE_COL == 0
self.zoom_x -= 0.02
self.zoom_y += 0.5
elsif MOG::TYPE_COL == 1
self.zoom_x += 0.5
self.zoom_y -= 0.05
elsif MOG::TYPE_COL == 2
if @_collapse_duration > 20
self.zoom_y -= 0.03
self.zoom_x += 0.03
else
self.zoom_x -= 0.115
self.zoom_y += 0.4
end       
elsif MOG::TYPE_COL == 3
self.zoom_x -= 0.04
self.zoom_y += 0.04
self.angle += 10
elsif MOG::TYPE_COL == 4
self.zoom_x += 0.06
self.zoom_y += 0.06
elsif MOG::TYPE_COL == 5
self.zoom_x -= 0.03
self.zoom_y -= 0.03
else
end 
end 
end
end
end
end


http://www.atelier-rgss.com/RGSS/Battle/XP_BAT02.html

Sima Yi

It seems somehow right,but I need one that is specialised for boss monsters.

Fantasist

Um, put only boss monster IDs in those config arrays?
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews