RPG maker VX


Unirse al foro, es rápido y fácil

RPG maker VX
RPG maker VX
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Últimos temas
» Script de menu
por maxi Jue 04 Dic 2014, 1:44 pm

» Ayuda intro animado!!!
por maxi Miér 03 Dic 2014, 9:41 pm

» ayuda con este engin
por maxi Miér 03 Dic 2014, 8:42 am

» Hud de Vida 100% Personalizable - Engine Sencillo! Sin Scripts :)
por davidaikago Jue 20 Nov 2014, 10:58 am

» Ultimate parallax control by:GDS [ace]
por arellano Miér 08 Oct 2014, 8:28 pm

» Script Touhou (animated) Map name (v1.4)
por davidaikago Miér 08 Oct 2014, 2:09 pm

» tutorial puerta nueva
por davidaikago Miér 08 Oct 2014, 9:08 am

» cámara de fotos
por davidaikago Miér 08 Oct 2014, 9:05 am

» Imperial Action System II Demo
por davidaikago Miér 08 Oct 2014, 8:47 am

» VE Batalla animada [ACE]
por FhierusIV Jue 18 Sep 2014, 10:57 am

» Nuevo Reglamento del Foro [Vigente desde Septiembre 2014]
por maxi Miér 17 Sep 2014, 8:37 am

» MOG|Animated Title
por Souta21 Mar 09 Sep 2014, 7:24 pm

» Tutorial Engine - Cambiar Character al Equipar Objeto
por maxi Lun 21 Jul 2014, 10:19 am

» Script de climas
por gambasoxd Sáb 19 Jul 2014, 8:58 am

» Script de contraseña(codigo) para abrir un cofre
por rpgame Jue 03 Jul 2014, 6:03 pm

¿Quién está en línea?
En total hay 2 usuarios en línea: 0 Registrados, 0 Ocultos y 2 Invitados

Ninguno

[ Ver toda la lista ]


El record de usuarios en línea fue de 117 durante el Mar 09 Ago 2011, 3:39 pm

Teach Skill Items

Ir abajo

Teach Skill Items Empty Teach Skill Items

Mensaje por katsius Mar 06 Jul 2010, 4:39 pm

Este script te permite enseñar tecnicas a cualquier personaje sin necesidad de un
engine y es facil de usar ....Aqui el script :P
Código:
                      #===============================================================================
#
# Shanghai Simple script - Teach Skill Items
# Last Date Updated: 2010.05.03
# Level: Normal
#
# This script allows the target character to learn a skill (outside of battle)
# when an item containing those skill teaching properties is applied to that
# character.
#===============================================================================
# Instructions
# -----------------------------------------------------------------------------
# To install this script, open up your script editor and copy/paste this script
# to an open slot below ▼ Materials but above ▼ Main. Remember to save.
#
# <teach skill: x>
# <teach skill: x, x, x>
# Place this in the item's notebox. Replace x with the ID of the skills you want
# to teach the character. Use the comma version for multiple skills.
#===============================================================================
 
$imported = {} if $imported == nil
$imported["TeachSkillItems"] = true
 
#==============================================================================
# RPG::BaseItem
#==============================================================================
 
class RPG::BaseItem
  #--------------------------------------------------------------------------
  # teach_skills
  #--------------------------------------------------------------------------
  def teach_skills
    return @teach_skills if @teach_skills != nil
    @teach_skills = []
    self.note.split(/[\r\n]+/).each { |line|
      case line
      when /<(?:TEACH SKILL|LEARN SKILL):[ ](\d+(?:\s*,\s*\d+)*)>/i
        $1.scan(/\d+/).each { |num|
        @teach_skills.push(num.to_i) if num.to_i > 0 }
      end
    }
    return @teach_skills
  end
end
 
#==============================================================================
# ** Game_Battler
#==============================================================================
 
class Game_Battler
  #--------------------------------------------------------------------------
  # * Item Application Test
  #--------------------------------------------------------------------------
  alias item_test_sss_teachskillitems item_test unless $@
  def item_test(user, item)
    return true if item.teach_skills != []
    return item_test_sss_teachskillitems(user, item)
  end
  #--------------------------------------------------------------------------
  # * Apply Item Effects
  #--------------------------------------------------------------------------
  alias item_effect_sss_teachskillitems item_effect unless $@
  def item_effect(user, item)
    item_effect_sss_teachskillitems(user, item)
    return if @skipped or @missed or @evaded
    teach_item_skills(item) if actor?
  end
  #--------------------------------------------------------------------------
  # * teach_item_skills
  #--------------------------------------------------------------------------
  def teach_item_skills(item)
    for skill_id in item.teach_skills do learn_skill(skill_id) end
  end
end
 
#===============================================================================
#
# END OF FILE
#
#===============================================================
 
PD: solo se puede usar en objetos y no en tecnicas
ATTE:Katsius
katsius
katsius
50
50

Masculino

Edad 29

Cantidad de envíos 119

Maker Cash 120

Reputación 6


Extras
Sobre mí:: Me gusta muchisimo el Final Fantasy y Kingdom Hearts

Volver arriba Ir abajo

Volver arriba

- Temas similares

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