Nome Script: napco's Side View BS
Versione: 0.1
Autore/i: napco
Informazioni:
Lo script è ancora nelle sue fasi iniziali. Si tratta di un plugin al sistema di combattimento che dovrebbe trasformarlo in battaglie laterali. Purtroppo i membri del gruppo sono statici (mancano di animazioni), ma risolverò al più presto.
Screenshots:
Spoiler
Istruzioni:
Inserite lo script sotto "materials".
Script:
module Cache
def self.character(filename, hue = 0)
load_bitmap("Graphics/Characters/", filename, hue)
end
end
class Game_Actor < Game_Battler
def use_sprite?
return true
end
def screen_x
return 512 - ($game_party.members.size - self.index) * 16
end
def screen_y
return 160 + self.index * 32
end
def screen_z
return 100
end
end
class Sprite_Battler < Sprite_Base
def update_battler_bitmap
if @battler.actor?
update_actor_bitmap
else
update_enemy_bitmap
end
end
def update_actor_bitmap
if @battler.character_name != @battler_name or
@battler.battler_hue != @battler_hue
@battler_name = @battler.character_name
@battler_hue = @battler.battler_hue
self.bitmap = Cache.character(@battler_name, @battler_hue)
sign = @battler_name[/^[!$]./]
if sign != nil and sign.include?('$')
@width = bitmap.width / 3
@height = bitmap.height / 4
else
@width = bitmap.width / 12
@height = bitmap.height / 8
end
self.ox = @width / 2
self.oy = @height
index = @battler.character_index
pattern = 1
sx = (index % 4 * 3 + pattern) * @width
sy = (index / 4 * 4 + (4 - 2) / 2) * @height
self.src_rect.set(sx, sy, @width, @height)
if @battler.dead? or @battler.hidden
self.opacity = 0
end
end
end
def update_enemy_bitmap
if @battler.battler_name != @battler_name or
@battler.battler_hue != @battler_hue
@battler_name = @battler.battler_name
@battler_hue = @battler.battler_hue
self.bitmap = Cache.battler(@battler_name, @battler_hue)
@width = bitmap.width
@height = bitmap.height
self.ox = @width / 2
self.oy = @height
if @battler.dead? or @battler.hidden
self.opacity = 0
end
end
end
end
class Spriteset_Battle
def create_battleback
source = $game_temp.background_bitmap
bitmap = Bitmap.new(640, 480)
bitmap.stretch_blt(bitmap.rect, source, source.rect)
bitmap.radial_blur(90, 12)
@battleback_sprite = Sprite.new(@viewport1)
@battleback_sprite.bitmap = bitmap
@battleback_sprite.ox = 320
@battleback_sprite.oy = 240
@battleback_sprite.x = 272
@battleback_sprite.y = 176
@battleback_sprite.wave_amp = 8
@battleback_sprite.wave_length = 240
@battleback_sprite.wave_speed = 120
end
def create_battlefloor
@battlefloor_sprite = Sprite.new(@viewport1)
@battlefloor_sprite.bitmap = Cache.system("BattleFloor")
@battlefloor_sprite.x = -136
@battlefloor_sprite.y = 48
@battlefloor_sprite.z = 1
@battlefloor_sprite.zoom_x = 1.5
@battlefloor_sprite.zoom_y = 2.0
@battlefloor_sprite.opacity = 128
end
end
Incompatibilità:
Presumo che lo script sia incompatibile con altri Side View Battle scripts.















