Últimos temas
» Actualización; normas del foro y noticias futuras
por Muzgar Hoy a las 12:05 pm

» Swoul: el filo de un alma [Demo - VX]
por xsebax Hoy a las 1:49 am

» LA BRÚJULA DE ZAZA [VXACE]
por fran0090 Hoy a las 1:39 am

» grafico enemigos
por JapoZero Hoy a las 1:32 am

» Concursos anuales del foro 2020 [Resultados]
por xsebax Hoy a las 1:19 am

» Error en los plugins
por JapoZero Hoy a las 1:08 am

» Se busca Team para Proyecto Pokemon RPG Maker XP
por The Agle532 Ayer a las 9:26 pm

» Registro para poder publicar proyectos
por Muzgar Ayer a las 9:25 pm

» [VX/Ace] Algunos Íconos
por ElNachGames Ayer a las 9:07 pm

» [MV]Butterfly Paradox
por Pocari Ayer a las 3:07 pm

» No exactamente un quest journal [MV]
por Sigurn Ayer a las 12:51 am

» ¡Ayuda con Plugin!
por ocholawliet Lun Abr 06, 2020 2:57 am


¡¡Necesito ayuda para aprender a usar los Scripts!!

Ir abajo

¡¡Necesito ayuda para aprender a usar los Scripts!! Empty ¡¡Necesito ayuda para aprender a usar los Scripts!!

Mensaje por CapitanCoro el Sáb Mar 21, 2020 8:17 pm

Soy nuevo en esto de usar "Scripts", y no tengo claro como usarlos.
Ejemplo:"Yo quería implementar el Script de batalla lateral, pero siempre que lo intento abrir el juego me sale error, y no entiendo nada de Scripts"

¿Alguien podría ayudarme?

Esté es el Script que me mando "JapoZero", con todo e instrucciones.
Batalla Lateral:

Código:
[size=11][/size]
#==============================================================================[size=11][/size]
#[size=11][/size]
# ▼ Yami Engine Symphony - Add-on: Enemy Character Set[size=11][/size]
# -- Last Updated: 2012.10.20[size=11][/size]
# -- Level: Nothing[size=11][/size]
# -- Requires: n/a[size=11][/size]
#[size=11][/size]
#==============================================================================[size=11][/size]
[size=11][/size]
$imported = {} if $imported.nil?[size=11][/size]
$imported["BattleSymphony-EnemyCharset"] = true[size=11][/size]
[size=11][/size]
#==============================================================================[size=11][/size]
# ▼ Updates[size=11][/size]
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[size=11][/size]
# 2012.10.20 - Finished Script.[size=11][/size]
# 2012.07.01 - Started Script.[size=11][/size]
#[size=11][/size]
#==============================================================================[size=11][/size]
# ▼ Compatibility[size=11][/size]
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[size=11][/size]
# This script is made strictly for RPG Maker VX Ace. It is highly unlikely that[size=11][/size]
# it will run with RPG Maker VX without adjusting.[size=11][/size]
# Remember to put this script under Battle Symphony.[size=11][/size]
#[size=11][/size]
#==============================================================================[size=11][/size]
[size=11][/size]
#==============================================================================[size=11][/size]
# ■ Regular Expression[size=11][/size]
#==============================================================================[size=11][/size]
[size=11][/size]
module REGEXP[size=11][/size]
  module SYMPHONY[size=11][/size]
[size=11][/size]
    CHARSET = /<(?:BATTLER_SET|battler set):[ ]*(.*)>/i[size=11][/size]
    WEAPON1 = /<(?:WEAPON_1|weapon 1):[ ]*(\d+)>/i[size=11][/size]
    WEAPON2 = /<(?:WEAPON_2|weapon 2):[ ]*(\d+)>/i[size=11][/size]
    SHIELD = /<(?:SHIELD):[ ]*(\d+)>/i[size=11][/size]
   [size=11][/size]
  end[size=11][/size]
end[size=11][/size]
[size=11][/size]
#==============================================================================[size=11][/size]
# ■ DataManager[size=11][/size]
#==============================================================================[size=11][/size]
[size=11][/size]
module DataManager[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # alias method: load_database[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  class <<self; alias load_database_bes_ec load_database; end[size=11][/size]
  def self.load_database[size=11][/size]
    load_database_bes_ec[size=11][/size]
    load_notetags_bes_ec[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # new method: load_notetags_bes_ec[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  def self.load_notetags_bes_ec[size=11][/size]
    groups = [$data_enemies][size=11][/size]
    groups.each { |group|[size=11][/size]
      group.each { |obj|[size=11][/size]
        next if obj.nil?[size=11][/size]
        obj.battle_symphony_enemy_charset[size=11][/size]
      }[size=11][/size]
    }[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
end # DataManager[size=11][/size]
[size=11][/size]
#==============================================================================[size=11][/size]
# ■ RPG::BaseItem[size=11][/size]
#==============================================================================[size=11][/size]
[size=11][/size]
class RPG::BaseItem[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # * Public Instance Variables[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  attr_accessor :character_name[size=11][/size]
  attr_accessor :character_index[size=11][/size]
  attr_accessor :eweapon_1[size=11][/size]
  attr_accessor :eweapon_2[size=11][/size]
  attr_accessor :eshield[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # new method: battle_symphony_enemy_charset[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  def battle_symphony_enemy_charset[size=11][/size]
    self.note.split(/[\r\n]+/).each { |line|[size=11][/size]
      case line[size=11][/size]
      when REGEXP::SYMPHONY::CHARSET[size=11][/size]
        str_scan = $1.scan(/[^,]+/i)[size=11][/size]
        @character_name = str_scan[0][size=11][/size]
        @character_index = str_scan[1].to_i[size=11][/size]
      when REGEXP::SYMPHONY::WEAPON1[size=11][/size]
        @eweapon_1 = $1.to_i[size=11][/size]
      when REGEXP::SYMPHONY::WEAPON2[size=11][/size]
        @eweapon_2 = $1.to_i[size=11][/size]
      when REGEXP::SYMPHONY::SHIELD[size=11][/size]
        @eshield = $1.to_i[size=11][/size]
      end[size=11][/size]
    }[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
end # RPG::BaseItem[size=11][/size]
[size=11][/size]
#==============================================================================[size=11][/size]
# ■ Game_Enemy[size=11][/size]
#==============================================================================[size=11][/size]
[size=11][/size]
class Game_Enemy < Game_Battler[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # * Public Instance Variables[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  attr_reader  :character_name[size=11][/size]
  attr_reader  :character_index[size=11][/size]
[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # alias method: initialize[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  alias bes_ec_initialize initialize[size=11][/size]
  def initialize(index, enemy_id)[size=11][/size]
    bes_ec_initialize(index, enemy_id)[size=11][/size]
    @character_name = enemy.character_name[size=11][/size]
    @character_index = enemy.character_index[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # alias method: use_charset?[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  alias bes_ec_use_charset? use_charset?[size=11][/size]
  def use_charset?[size=11][/size]
    flag = @character_name.nil? && @character_index.nil?[size=11][/size]
    return true if !flag[size=11][/size]
    return bes_ec_use_charset?[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # new method: use_8d?[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  def use_8d?[size=11][/size]
    return @character_name =~ /(_8D)/i if use_charset?[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # new method: dual_wield?[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  def dual_wield?[size=11][/size]
    self.enemy.eweapon_1 && self.enemy.eweapon_2[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # new method: weapons[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  def weapons[size=11][/size]
    result = [][size=11][/size]
    result.push($data_weapons[self.enemy.eweapon_1]) if self.enemy.eweapon_1[size=11][/size]
    result.push($data_weapons[self.enemy.eweapon_2]) if self.enemy.eweapon_2[size=11][/size]
    result[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # new method: equips[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  def equips[size=11][/size]
    result = [][size=11][/size]
    result.push($data_armors[self.enemy.eshield]) if self.enemy.eshield[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
end # Game_Enemy[size=11][/size]
[size=11][/size]
#===============================================================================[size=11][/size]
#[size=11][/size]
# END OF FILE[size=11][/size]
#[size=11][/size]
#===============================================================================

Enemy Character Set (si quieres que los enemigos usen charas animados)

Código:
[size=11][/size]
#==============================================================================[size=11][/size]
#[size=11][/size]
# ▼ Yami Engine Symphony - Add-on: Enemy Character Set[size=11][/size]
# -- Last Updated: 2012.10.20[size=11][/size]
# -- Level: Nothing[size=11][/size]
# -- Requires: n/a[size=11][/size]
#[size=11][/size]
#==============================================================================[size=11][/size]
[size=11][/size]
$imported = {} if $imported.nil?[size=11][/size]
$imported["BattleSymphony-EnemyCharset"] = true[size=11][/size]
[size=11][/size]
#==============================================================================[size=11][/size]
# ▼ Updates[size=11][/size]
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[size=11][/size]
# 2012.10.20 - Finished Script.[size=11][/size]
# 2012.07.01 - Started Script.[size=11][/size]
#[size=11][/size]
#==============================================================================[size=11][/size]
# ▼ Compatibility[size=11][/size]
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[size=11][/size]
# This script is made strictly for RPG Maker VX Ace. It is highly unlikely that[size=11][/size]
# it will run with RPG Maker VX without adjusting.[size=11][/size]
# Remember to put this script under Battle Symphony.[size=11][/size]
#[size=11][/size]
#==============================================================================[size=11][/size]
[size=11][/size]
#==============================================================================[size=11][/size]
# ■ Regular Expression[size=11][/size]
#==============================================================================[size=11][/size]
[size=11][/size]
module REGEXP[size=11][/size]
  module SYMPHONY[size=11][/size]
[size=11][/size]
    CHARSET = /<(?:BATTLER_SET|battler set):[ ]*(.*)>/i[size=11][/size]
    WEAPON1 = /<(?:WEAPON_1|weapon 1):[ ]*(\d+)>/i[size=11][/size]
    WEAPON2 = /<(?:WEAPON_2|weapon 2):[ ]*(\d+)>/i[size=11][/size]
    SHIELD = /<(?:SHIELD):[ ]*(\d+)>/i[size=11][/size]
   [size=11][/size]
  end[size=11][/size]
end[size=11][/size]
[size=11][/size]
#==============================================================================[size=11][/size]
# ■ DataManager[size=11][/size]
#==============================================================================[size=11][/size]
[size=11][/size]
module DataManager[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # alias method: load_database[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  class <<self; alias load_database_bes_ec load_database; end[size=11][/size]
  def self.load_database[size=11][/size]
    load_database_bes_ec[size=11][/size]
    load_notetags_bes_ec[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # new method: load_notetags_bes_ec[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  def self.load_notetags_bes_ec[size=11][/size]
    groups = [$data_enemies][size=11][/size]
    groups.each { |group|[size=11][/size]
      group.each { |obj|[size=11][/size]
        next if obj.nil?[size=11][/size]
        obj.battle_symphony_enemy_charset[size=11][/size]
      }[size=11][/size]
    }[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
end # DataManager[size=11][/size]
[size=11][/size]
#==============================================================================[size=11][/size]
# ■ RPG::BaseItem[size=11][/size]
#==============================================================================[size=11][/size]
[size=11][/size]
class RPG::BaseItem[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # * Public Instance Variables[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  attr_accessor :character_name[size=11][/size]
  attr_accessor :character_index[size=11][/size]
  attr_accessor :eweapon_1[size=11][/size]
  attr_accessor :eweapon_2[size=11][/size]
  attr_accessor :eshield[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # new method: battle_symphony_enemy_charset[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  def battle_symphony_enemy_charset[size=11][/size]
    self.note.split(/[\r\n]+/).each { |line|[size=11][/size]
      case line[size=11][/size]
      when REGEXP::SYMPHONY::CHARSET[size=11][/size]
        str_scan = $1.scan(/[^,]+/i)[size=11][/size]
        @character_name = str_scan[0][size=11][/size]
        @character_index = str_scan[1].to_i[size=11][/size]
      when REGEXP::SYMPHONY::WEAPON1[size=11][/size]
        @eweapon_1 = $1.to_i[size=11][/size]
      when REGEXP::SYMPHONY::WEAPON2[size=11][/size]
        @eweapon_2 = $1.to_i[size=11][/size]
      when REGEXP::SYMPHONY::SHIELD[size=11][/size]
        @eshield = $1.to_i[size=11][/size]
      end[size=11][/size]
    }[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
end # RPG::BaseItem[size=11][/size]
[size=11][/size]
#==============================================================================[size=11][/size]
# ■ Game_Enemy[size=11][/size]
#==============================================================================[size=11][/size]
[size=11][/size]
class Game_Enemy < Game_Battler[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # * Public Instance Variables[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  attr_reader  :character_name[size=11][/size]
  attr_reader  :character_index[size=11][/size]
[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # alias method: initialize[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  alias bes_ec_initialize initialize[size=11][/size]
  def initialize(index, enemy_id)[size=11][/size]
    bes_ec_initialize(index, enemy_id)[size=11][/size]
    @character_name = enemy.character_name[size=11][/size]
    @character_index = enemy.character_index[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # alias method: use_charset?[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  alias bes_ec_use_charset? use_charset?[size=11][/size]
  def use_charset?[size=11][/size]
    flag = @character_name.nil? && @character_index.nil?[size=11][/size]
    return true if !flag[size=11][/size]
    return bes_ec_use_charset?[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # new method: use_8d?[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  def use_8d?[size=11][/size]
    return @character_name =~ /(_8D)/i if use_charset?[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # new method: dual_wield?[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  def dual_wield?[size=11][/size]
    self.enemy.eweapon_1 && self.enemy.eweapon_2[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # new method: weapons[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  def weapons[size=11][/size]
    result = [][size=11][/size]
    result.push($data_weapons[self.enemy.eweapon_1]) if self.enemy.eweapon_1[size=11][/size]
    result.push($data_weapons[self.enemy.eweapon_2]) if self.enemy.eweapon_2[size=11][/size]
    result[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  # new method: equips[size=11][/size]
  #--------------------------------------------------------------------------[size=11][/size]
  def equips[size=11][/size]
    result = [][size=11][/size]
    result.push($data_armors[self.enemy.eshield]) if self.enemy.eshield[size=11][/size]
  end[size=11][/size]
 [size=11][/size]
end # Game_Enemy[size=11][/size]
[size=11][/size]
#===============================================================================[size=11][/size]
#[size=11][/size]
# END OF FILE[size=11][/size]
#[size=11][/size]
#===============================================================================

Para que un enemigo use un sprite/gráficocharaset/comolollames
>Importa el archivo (ej: Actor1) en la carpeta battler (tiene que ser un set de 8 personajes como todos los por defecto)
>En las notitas en la configuración del enemigo pon:

donde x es el nombre del archivo e y es el personaje a utilizar (de 0 a 7, izquierda a derecha)

_________________

Y esté es el error que me sale.
Error:
¡¡Necesito ayuda para aprender a usar los Scripts!! Captur10


Última edición por CapitanCoro el Sáb Mar 21, 2020 8:50 pm, editado 1 vez
CapitanCoro
CapitanCoro
PJ de Relleno
PJ de Relleno

Masculino
Venezuela
RPG Maker : Ace
Mensajes : 3
Monedas : 7
Reputación : 0
Edad : 19

Volver arriba Ir abajo

¡¡Necesito ayuda para aprender a usar los Scripts!! Empty Re: ¡¡Necesito ayuda para aprender a usar los Scripts!!

Mensaje por Santi_Lee el Sáb Mar 21, 2020 8:29 pm

¿Podrías poner una foto captura del mensaje que te sale? Así podemos ver de qué tipo de error de trata e intentar ayudarte.

De todas formas, te recomiendo revisar si tienes el script completamente copiado de forma correcta en el maker. Quizás un foto de ello también ayude.

No te olvides que los scripts van encima de la categoría "Main".

Saludos.
Santi_Lee
Santi_Lee
PJ Secundario
PJ Secundario

Masculino
Bolivia
RPG Maker : Ace
Mensajes : 133
Monedas : 586
Reputación : 26
Edad : 18
Localización : Flotando por el cosmos.

Volver arriba Ir abajo

¡¡Necesito ayuda para aprender a usar los Scripts!! Empty Re: ¡¡Necesito ayuda para aprender a usar los Scripts!!

Mensaje por JapoZero el Sáb Mar 21, 2020 9:25 pm

Error mío! Mi tecla c está fallando y sin darme cuenta el ctrl c ctrl v me hizo mandarte el mismo script dos veces.
¡¡Necesito ayuda para aprender a usar los Scripts!! 3T0qoz5
Si quieres usar el add-on para que los enemigos funcionen en modo lateral con su chara, también tienes que añadir el Battle Core de Yanfly.
En ese caso deberían quedarte en este orden:
-Yanfly Engine Ace - Ace Battle Engine
-Yami Engine Symphony - Battle Symphony
-Yami Engine Symphony - Add-on: Enemy Character Set

-Yanfly Engine Ace - Ace Battle Engine
https://pastebin.com/raw/TuX0NrWd
-Yami Engine Symphony - Battle Symphony
https://pastebin.com/raw/i1FMDPzM
-Yami Engine Symphony - Add-on: Enemy Character Set
Código:

#==============================================================================
#
# ▼ Yami Engine Symphony - Add-on: Enemy Character Set
# -- Last Updated: 2012.10.20
# -- Level: Nothing
# -- Requires: n/a
#
#==============================================================================

$imported = {} if $imported.nil?
$imported["BattleSymphony-EnemyCharset"] = true

#==============================================================================
# ▼ Updates
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# 2012.10.20 - Finished Script.
# 2012.07.01 - Started Script.
#
#==============================================================================
# ▼ Compatibility
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# This script is made strictly for RPG Maker VX Ace. It is highly unlikely that
# it will run with RPG Maker VX without adjusting.
# Remember to put this script under Battle Symphony.
#
#==============================================================================

#==============================================================================
# ■ Regular Expression
#==============================================================================

module REGEXP
  module SYMPHONY

    CHARSET = /<(?:BATTLER_SET|battler set):[ ]*(.*)>/i
    WEAPON1 = /<(?:WEAPON_1|weapon 1):[ ]*(\d+)>/i
    WEAPON2 = /<(?:WEAPON_2|weapon 2):[ ]*(\d+)>/i
    SHIELD = /<(?:SHIELD):[ ]*(\d+)>/i
 
  end
end

#==============================================================================
# ■ DataManager
#==============================================================================

module DataManager
 
  #--------------------------------------------------------------------------
  # alias method: load_database
  #--------------------------------------------------------------------------
  class <<self; alias load_database_bes_ec load_database; end
  def self.load_database
    load_database_bes_ec
    load_notetags_bes_ec
  end
 
  #--------------------------------------------------------------------------
  # new method: load_notetags_bes_ec
  #--------------------------------------------------------------------------
  def self.load_notetags_bes_ec
    groups = [$data_enemies]
    groups.each { |group|
      group.each { |obj|
        next if obj.nil?
        obj.battle_symphony_enemy_charset
      }
    }
  end
 
end # DataManager

#==============================================================================
# ■ RPG::BaseItem
#==============================================================================

class RPG::BaseItem
 
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :character_name
  attr_accessor :character_index
  attr_accessor :eweapon_1
  attr_accessor :eweapon_2
  attr_accessor :eshield
 
  #--------------------------------------------------------------------------
  # new method: battle_symphony_enemy_charset
  #--------------------------------------------------------------------------
  def battle_symphony_enemy_charset
    self.note.split(/[\r\n]+/).each { |line|
      case line
      when REGEXP::SYMPHONY::CHARSET
        str_scan = $1.scan(/[^,]+/i)
        @character_name = str_scan[0]
        @character_index = str_scan[1].to_i
      when REGEXP::SYMPHONY::WEAPON1
        @eweapon_1 = $1.to_i
      when REGEXP::SYMPHONY::WEAPON2
        @eweapon_2 = $1.to_i
      when REGEXP::SYMPHONY::SHIELD
        @eshield = $1.to_i
      end
    }
  end
 
end # RPG::BaseItem

#==============================================================================
# ■ Game_Enemy
#==============================================================================

class Game_Enemy < Game_Battler
 
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_reader  :character_name
  attr_reader  :character_index

  #--------------------------------------------------------------------------
  # alias method: initialize
  #--------------------------------------------------------------------------
  alias bes_ec_initialize initialize
  def initialize(index, enemy_id)
    bes_ec_initialize(index, enemy_id)
    @character_name = enemy.character_name
    @character_index = enemy.character_index
  end
 
  #--------------------------------------------------------------------------
  # alias method: use_charset?
  #--------------------------------------------------------------------------
  alias bes_ec_use_charset? use_charset?
  def use_charset?
    flag = @character_name.nil? && @character_index.nil?
    return true if !flag
    return bes_ec_use_charset?
  end
 
  #--------------------------------------------------------------------------
  # new method: use_8d?
  #--------------------------------------------------------------------------
  def use_8d?
    return @character_name =~ /(_8D)/i if use_charset?
  end
 
  #--------------------------------------------------------------------------
  # new method: dual_wield?
  #--------------------------------------------------------------------------
  def dual_wield?
    self.enemy.eweapon_1 && self.enemy.eweapon_2
  end
 
  #--------------------------------------------------------------------------
  # new method: weapons
  #--------------------------------------------------------------------------
  def weapons
    result = []
    result.push($data_weapons[self.enemy.eweapon_1]) if self.enemy.eweapon_1
    result.push($data_weapons[self.enemy.eweapon_2]) if self.enemy.eweapon_2
    result
  end
 
  #--------------------------------------------------------------------------
  # new method: equips
  #--------------------------------------------------------------------------
  def equips
    result = []
    result.push($data_armors[self.enemy.eshield]) if self.enemy.eshield
  end
 
end # Game_Enemy

#===============================================================================
#
# END OF FILE
#
#===============================================================================
JapoZero
JapoZero
PJ Principal
PJ Principal

Masculino
Chile
RPG Maker : MV
Mensajes : 858
Monedas : 4828
Reputación : 310
Localización : ¿Alguien vio la película TRON?

Volver arriba Ir abajo

¡¡Necesito ayuda para aprender a usar los Scripts!! Empty Re: ¡¡Necesito ayuda para aprender a usar los Scripts!!

Mensaje por Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.