Drupogame
 5 personajes Imagen12

Si quieres formar parte del staff tienes que enviar un MP al administrador o al Co-Administrador

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

Drupogame
 5 personajes Imagen12

Si quieres formar parte del staff tienes que enviar un MP al administrador o al Co-Administrador
Drupogame
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Conectarse

Recuperar mi contraseña

Buscar
 
 

Resultados por:
 


Rechercher Búsqueda avanzada

Últimos temas
» Reglas del foro
 5 personajes EmptyLun Ene 23, 2012 11:32 pm por edux

» edux returns
 5 personajes EmptyLun Ene 23, 2012 11:30 pm por edux

» The Elder Scrolls IV: Oblivion
 5 personajes EmptyVie Ene 20, 2012 11:28 pm por Aljevalsar

» Kojima promete que habrá un Metal Gear Solid de auténtico sigilo
 5 personajes EmptyJue Dic 22, 2011 7:33 pm por Anime_Maker

» Este fin de semana habrá nuevos modos para Modern Warfare 3
 5 personajes EmptyJue Dic 15, 2011 12:03 pm por Akeo

» Kojima quiso crear un Metal Gear Solid 5 ambientado en la Segunda Guerra Mundial
 5 personajes EmptyJue Dic 15, 2011 11:01 am por Akeo

» Darksiders II se dejará ver en los Spike VGA
 5 personajes EmptyMiér Dic 14, 2011 11:50 am por Akeo

» El creador de Bayonetta desmiente estar implicado en el desarrollo de Metal Gear Rising
 5 personajes EmptyMiér Dic 14, 2011 1:54 am por Akeo

» Los creadores de Bayonetta se encargan del desarrollo de Metal Gear Rising
 5 personajes EmptyMiér Dic 14, 2011 1:52 am por Akeo

» En Construccion: Mundo Abismal
 5 personajes EmptyLun Oct 24, 2011 4:03 am por SagahonArturo

» Visceral Games busca nuevo personal para la franquicia Dead Space
 5 personajes EmptyMar Oct 11, 2011 3:22 am por The_King_Jaas

» buenas
 5 personajes EmptyMar Oct 11, 2011 3:21 am por The_King_Jaas

» Batman: Arkham City llegará "sin ninguna limitación"
 5 personajes EmptySáb Oct 08, 2011 1:44 am por Akeo

» Los creadores de Bulletstorm admiten divertidos que el juego tenía demasiadas palabras malsonantes
 5 personajes EmptySáb Oct 08, 2011 1:41 am por Akeo

» PES 2012: El primer DLC estará disponible el 11 de octubre
 5 personajes EmptySáb Oct 08, 2011 1:39 am por Akeo

Los posteadores más activos del mes
No hay usuarios

Estadísticas
Tenemos 98 miembros registrados
El último usuario registrado es Lawdesifi

Nuestros miembros han publicado un total de 6208 mensajes en 777 argumentos.
Compañeros
Crear foro
Crear foro
Crear foro
Crear foro
PFC
Crear foro
Crear foro
Otakus Activos
Diviértete acá
Crear foro
Foro de anime y RM2k3/XP/VX
contador.
contador de visitas
Noviembre 2024
LunMarMiérJueVieSábDom
    123
45678910
11121314151617
18192021222324
252627282930 

Calendario Calendario


5 personajes

Ir abajo

 5 personajes Empty 5 personajes

Mensaje por Akeo Lun Mar 28, 2011 3:18 pm

Sacado de: Planeta RPG


Código:
#==============================================================================
# 5 Actor Party
#==============================================================================
# Raice
# Version 1
# 06-21-2006
#------------------------------------------------------------------------------
# I edit game_party, window_menustatus, spriteset_battle, window_battlestatus,
# game_actor, and scene_battle
#==============================================================================

#==============================================================================
# ** Game_Party
#------------------------------------------------------------------------------
#  This class handles the party. It includes information on amount of gold
#  and items. Refer to "$game_party" for the instance of this class.
#==============================================================================
class Game_Party
#--------------------------------------------------------------------------
# * Add an Actor
#    actor_id : actor ID
#--------------------------------------------------------------------------
def add_actor(actor_id)
  # Get actor
  actor = $game_actors[actor_id]
  # If the party has less than 5 members and this actor is not in the party
  if @actors.size < 5 and not @actors.include?(actor)
    # Add actor
    @actors.push(actor)
    # Refresh player
    $game_player.refresh
  end
end
end


Código:
#==============================================================================
# ** Spriteset_Battle
#------------------------------------------------------------------------------
#  This class brings together battle screen sprites. It's used within
#  the Scene_Battle class.
#==============================================================================
class Spriteset_Battle
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
  # Make viewports
  @viewport1 = Viewport.new(0, 0, 640, 320)
  @viewport2 = Viewport.new(0, 0, 640, 480)
  @viewport3 = Viewport.new(0, 0, 640, 480)
  @viewport4 = Viewport.new(0, 0, 640, 480)
  @viewport2.z = 101
  @viewport3.z = 200
  @viewport4.z = 5000
  # Make battleback sprite
  @battleback_sprite = Sprite.new(@viewport1)
  # Make enemy sprites
  @enemy_sprites = []
  for enemy in $game_troop.enemies.reverse
    @enemy_sprites.push(Sprite_Battler.new(@viewport1, enemy))
  end
  # Make actor sprites
  @actor_sprites = []
  @actor_sprites.push(Sprite_Battler.new(@viewport2))
  @actor_sprites.push(Sprite_Battler.new(@viewport2))
  @actor_sprites.push(Sprite_Battler.new(@viewport2))
  @actor_sprites.push(Sprite_Battler.new(@viewport2))
  @actor_sprites.push(Sprite_Battler.new(@viewport2))#adds additional actor
  # Make weather
  @weather = RPG::Weather.new(@viewport1)
  # Make picture sprites
  @picture_sprites = []
  for i in 51..100
    @picture_sprites.push(Sprite_Picture.new(@viewport3,
      $game_screen.pictures[i]))
  end
  # Make timer sprite
  @timer_sprite = Sprite_Timer.new
  # Frame update
  update
end

Código:
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
  # Update actor sprite contents (corresponds with actor switching)
  @actor_sprites[0].battler = $game_party.actors[0]
  @actor_sprites[1].battler = $game_party.actors[1]
  @actor_sprites[2].battler = $game_party.actors[2]
  @actor_sprites[3].battler = $game_party.actors[3]
  #updates the additional actor sprite
  @actor_sprites[4].battler = $game_party.actors[4]  #added this
  # If battleback file name is different from current one
  if @battleback_name != $game_temp.battleback_name
    @battleback_name = $game_temp.battleback_name
    if @battleback_sprite.bitmap != nil
      @battleback_sprite.bitmap.dispose
    end
    @battleback_sprite.bitmap = RPG::Cache.battleback(@battleback_name)
    @battleback_sprite.src_rect.set(0, 0, 640, 320)
  end
  # Update battler sprites
  for sprite in @enemy_sprites + @actor_sprites
    sprite.update
  end
  # Update weather graphic
  @weather.type = $game_screen.weather_type
  @weather.max = $game_screen.weather_max
  @weather.update
  # Update picture sprites
  for sprite in @picture_sprites
    sprite.update
  end
  # Update timer sprite
  @timer_sprite.update
  # Set screen color tone and shake position
  @viewport1.tone = $game_screen.tone
  @viewport1.ox = $game_screen.shake
  # Set screen flash color
  @viewport4.color = $game_screen.flash_color
  # Update viewports
  @viewport1.update
  @viewport2.update
  @viewport4.update
end
end

Código:
#==============================================================================
# ** Window_MenuStatus
#------------------------------------------------------------------------------
#  This window displays party member status on the menu screen.
#==============================================================================
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
  self.contents.clear
  @item_max = $game_party.actors.size
  for i in 0...$game_party.actors.size
    x = 64
    y = i * 90  #this is the spacing of the actor info in menu
    actor = $game_party.actors[i]
    draw_actor_graphic(actor, x - 40, y + 80) 
    draw_actor_name(actor, x, y)
    draw_actor_class(actor, x + 144, y)
    draw_actor_level(actor, x, y + 32)
    draw_actor_state(actor, x + 90, y + 32)
    draw_actor_exp(actor, x, y + 64)
    draw_actor_hp(actor, x + 236, y + 32)
    draw_actor_sp(actor, x + 236, y + 64)
  end
end
#--------------------------------------------------------------------------
# * Cursor Rectangle Update
#--------------------------------------------------------------------------
def update_cursor_rect
  if @index < 0
    self.cursor_rect.empty
  else
    # this is the cursor spacing when selecting the actor for skills and such
    # the index * number has to be the same as the number used above in the refresh
    self.cursor_rect.set(0, @index * 90, self.width - 32, 96)
    #self.cursor_rect.set(0, @index * 116, self.width - 32, 96)
  end
end
end

Código:
#==============================================================================
# ** Window_BattleStatus
#------------------------------------------------------------------------------
#  This window displays the status of all party members on the battle screen.
#==============================================================================
class Window_BattleStatus < Window_Base
def refresh
  self.contents.clear
  @item_max = $game_party.actors.size
  for i in 0...$game_party.actors.size
    actor = $game_party.actors[i]
    #this i*120 adjusts the hero info spacing in battle
    actor_x = i * 120 + 4
    draw_actor_name(actor, actor_x, 0)
    draw_actor_hp(actor, actor_x, 32, 120)
    draw_actor_sp(actor, actor_x, 64, 120)
    if @level_up_flags[i]
      self.contents.font.color = normal_color
      self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
    else
      draw_actor_state(actor, actor_x, 96)
    end
  end
end
end

Código:
#==============================================================================
# ** Scene_Battle (part 3)
#------------------------------------------------------------------------------
#  This class performs battle screen processing.
#==============================================================================
class Scene_Battle
#--------------------------------------------------------------------------
# * Actor Command Window Setup
#--------------------------------------------------------------------------
def phase3_setup_command_window
  # Disable party command window
  @party_command_window.active = false
  @party_command_window.visible = false
  # Enable actor command window
  @actor_command_window.active = true
  @actor_command_window.visible = true
  # Set actor command window position
  @actor_command_window.x = @actor_index * 120 #command window spacing in battle
  # Set index to 0
  @actor_command_window.index = 0
end
end


#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
#  This class handles the actor. It's used within the Game_Actors class
#  ($game_actors) and refers to the Game_Party class ($game_party).
#==============================================================================
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# * Get Battle Screen X-Coordinate
#--------------------------------------------------------------------------
def screen_x
  # Return after calculating x-coordinate by order of members in party
  if self.index != nil
    return self.index * 120 + 80  #spacing of battlers
  else
    return 0
  end
end
end
Akeo
Akeo
Administrador
Administrador

Mensajes : 1876
Fecha de inscripción : 02/01/2011
Edad : 30

https://drupogame.superforo.net

Volver arriba Ir abajo

Volver arriba

- Temas similares

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