¡Bienvenid@ a Mundo Maker!

¿Quieres aprender todo sobre el RPG Maker?



Regístrate y forma parte de Mundo Maker.
Conectarse

Recuperar mi contraseña

Temas importantes
----------------------------------------
Páginas con recursos RPG Maker
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
----------------------------------------
Afiliados
Estadísticas
Tenemos 3995 miembros registrados.
El último usuario registrado es Vash-W17.

Nuestros miembros han publicado un total de 83801 mensajes en 11931 argumentos.
Navega con Google Chrome
[DESCARGA]

(XP) Problema con Blood Mage

 :: RPG Maker :: Ayuda RPG

Ver el tema anterior Ver el tema siguiente Ir abajo

RPG Maker XP (XP) Problema con Blood Mage

Mensaje por marconando90 el 2017-06-27, 14:50

Encontré un script hace poco que me pareció muy interesante, el cual trata de elegir una profesión y que el personaje con dicha profesión gaste PV en vez de PM en sus habilidades. Lo malo es que al probarlo me sale este error y no tengo idea de por qué.


Si alguien pudiera echarle un ojo al script le estaria muy agradecido.
Blood mage:
#==============================================================================
# Blood Mage Magic Script v 1.0.0
# by WcW & Akkrin
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# - code reviewed, optimized, integrated into Tons of Add-ons, freed from
#   potential bugs and beta tested by Blizzard
# - compatible with RTAB and skill cost modifying scripts (by Blizzard)
# - this add-on is part of Tons of Add-ons with full permission of the original
#   author(s)
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
# Features:
#
# - Allows for certain classes to use up their HP instead of MP when using
#   spells.
# - Lightweight.
#
# Instructions:
#
# Add the IDs of all your "Blood Mage" classes to the [] thingy in the
# CONFIG section.
#
# Compatibility:
#
# This has no known compatibility issues. Might not be compatible with CBS-es.
# If you find any problems, please post them at http://forum.chaos-project.com
#
# WcW, Signing Off
#==============================================================================

#------------------------------------------------------------------------------
# * CONFIG
#     Configuration section
#------------------------------------------------------------------------------

BLOODMAGES = [1] # Between the "[" and "]", add the ID of each class the you
               # want to be a blood mage and seperate each with a comma.

# Below lies the code

#------------------------------------------------------------------------------
# * Battle Scene
#------------------------------------------------------------------------------

class Scene_Battle
 
 #----------------------------------------------------------------------------
 # * Make Skill Action Result
 #----------------------------------------------------------------------------
 alias make_skill_action_result make_skill_action_result_bloodmage_later
 def make_skill_action_result(battler = nil)
   if battler == nil
     battler, sp = @active_battler, @active_battler.sp
     make_skill_action_result_bloodmage_later
   else
     sp = battler.hp
     make_skill_action_result_bloodmage_later(battler)
   end
   if (battler.current_action.forcing || battler.skill_can_use?(@skill.id)) &&
       battler.is_a?(Game_Actor) && BLOODMAGES.include?(battler.class_id)
     battler.hp -= sp - battler.sp
     battler.sp = sp
     @status_window.refresh
   end
 end
 
end
avatar
marconando90
Iniciado
Iniciado

0/3

Créditos 26

Gracias : 6

Volver arriba Ir abajo

RPG Maker XP Re: (XP) Problema con Blood Mage

Mensaje por Wecoc el 2017-06-27, 18:28

Pusieron el alias al revés. Prueba ahora.

Código:
#==============================================================================
# Blood Mage Magic Script v 1.0.0
# by WcW & Akkrin
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# - code reviewed, optimized, integrated into Tons of Add-ons, freed from
#  potential bugs and beta tested by Blizzard
# - compatible with RTAB and skill cost modifying scripts (by Blizzard)
# - this add-on is part of Tons of Add-ons with full permission of the original
#  author(s)
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
# Features:
#
# - Allows for certain classes to use up their HP instead of MP when using
#  spells.
# - Lightweight.
#
# Instructions:
#
# Add the IDs of all your "Blood Mage" classes to the [] thingy in the
# CONFIG section.
#
# Compatibility:
#
# This has no known compatibility issues. Might not be compatible with CBS-es.
# If you find any problems, please post them at http://forum.chaos-project.com
#
# WcW, Signing Off
#==============================================================================

#------------------------------------------------------------------------------
# * CONFIG
#    Configuration section
#------------------------------------------------------------------------------

BLOODMAGES = [1] # Between the "[" and "]", add the ID of each class the you
              # want to be a blood mage and seperate each with a comma.

# Below lies the code

#------------------------------------------------------------------------------
# * Battle Scene
#------------------------------------------------------------------------------

class Scene_Battle
 
 #----------------------------------------------------------------------------
 # * Make Skill Action Result
 #----------------------------------------------------------------------------
 alias make_skill_action_bloodmage make_skill_action_result unless $@
 def make_skill_action_result(battler = nil)
  if battler == nil
    battler, sp = @active_battler, @active_battler.sp
    make_skill_action_bloodmage
  else
    sp = battler.hp
    make_skill_action_bloodmage(battler)
  end
  if (battler.current_action.forcing || battler.skill_can_use?(@skill.id)) &&
      battler.is_a?(Game_Actor) && BLOODMAGES.include?(battler.class_id)
    battler.hp -= sp - battler.sp
    battler.sp = sp
    @status_window.refresh
  end
 end
end
avatar
Wecoc
Administrador
Administrador



Créditos 9041

Gracias : 453

Volver arriba Ir abajo

RPG Maker XP RE:(XP) PROBLEMA CON BLOOD MAGE

Mensaje por marconando90 el 2017-06-27, 19:55

Como siempre has solucionado mi problema, ¡gracias Wecoc! Very Happy notworthy
avatar
marconando90
Iniciado
Iniciado

0/3

Créditos 26

Gracias : 6

Volver arriba Ir abajo

RPG Maker XP Re: (XP) Problema con Blood Mage

Mensaje por Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Ver el tema anterior Ver el tema siguiente Volver arriba


 :: RPG Maker :: Ayuda RPG

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