So I've been trying to edit the battle symphony script in order to remove just the enemy battler's shadow sprite and keep the actor's
shadow sprite intact.
Since I'm using resized battlers from the rtp instead of small sprite characters the tiny shadow just looks outta place on enemy battlers
which most already have shadows drawn into the base image.
I've searched forums, and tried my hand at editing the the "Battle Symphony" script with little success.
I have limited scripting knowledge but I'm a fast learner. Just need someone to tell me if what I want will require a full rewrite
or i'm just overlooking a simple fix which it typically tends to be with most other script edits and mods I've made.
After 3 weeks of trying various edits in the script I'm stumped. I can get the actor's to have the shadows but then my enemies
disappear. I've also messed around with creating a new class to handle the shadow sprite similar to the sprite_object class
that is used to make the icons appear in the "Battle Symphony" script.
It seems as if the script treats both the enemy and actors as battler then ties the shadow sprite to the battler but is there a way to separate the battler types as enemy or actor then draw the shadow accodingly only to the actors as id like instead of to both battlers.
Scripts used include
I'm curious if anyone can point me in the direction I need to go about modifying the script to get the result I'm looking for.
Any help would be appreciated ! 😀
shadow sprite intact.
Since I'm using resized battlers from the rtp instead of small sprite characters the tiny shadow just looks outta place on enemy battlers
which most already have shadows drawn into the base image.
I've searched forums, and tried my hand at editing the the "Battle Symphony" script with little success.
I have limited scripting knowledge but I'm a fast learner. Just need someone to tell me if what I want will require a full rewrite
or i'm just overlooking a simple fix which it typically tends to be with most other script edits and mods I've made.
After 3 weeks of trying various edits in the script I'm stumped. I can get the actor's to have the shadows but then my enemies
disappear. I've also messed around with creating a new class to handle the shadow sprite similar to the sprite_object class
that is used to make the icons appear in the "Battle Symphony" script.
Battle symphony Script
Battle Symphony v1.15 core.txt
The core script is here I know it creates the sprite around here
Line 1834
#==============================================================================
# ¡ Sprite_Battler
#==============================================================================
class Sprite_Battler < Sprite_Base
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_accessor :effect_type
attr_accessor :battler_visible
#--------------------------------------------------------------------------
# new method: pose
#--------------------------------------------------------------------------
alias bes_initialize initialize
def initialize(viewport, battler = nil)
bes_initialize(viewport, battler)
correct_change_pose if @battler
#---
self.visible = false if SYMPHONY::View::EMPTY_VIEW && (@battler.nil? || @battler.actor?)
#---
return if SYMPHONY::View::EMPTY_VIEW
#---
return unless SYMPHONY::Visual::BATTLER_SHADOW
#---
@charset_shadow = Sprite.new(viewport)
@charset_shadow.bitmap = Cache.system("Shadow")
@charset_shadow.ox = @charset_shadow.width / 2
@charset_shadow.oy = @charset_shadow.height
end
Line 1865
updates it here
Line 1873
#--------------------------------------------------------------------------
# alias method: update
#--------------------------------------------------------------------------
alias bes_update update
def update
bes_update
#---
return if SYMPHONY::View::EMPTY_VIEW
#---
return unless SYMPHONY::Visual::BATTLER_SHADOW
#---
@charset_shadow.opacity = self.opacity
@charset_shadow.visible = self.visible
@charset_shadow.x = self.x + (self.mirror ? 0 : - 2)
@charset_shadow.y = self.y + 2
@charset_shadow.z = self.z - 1
#---
@charset_shadow.opacity = 0 if @battler.nil?
end
Line 1891
Battle Symphony v1.15 core.txt
The core script is here I know it creates the sprite around here
Line 1834
#==============================================================================
# ¡ Sprite_Battler
#==============================================================================
class Sprite_Battler < Sprite_Base
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_accessor :effect_type
attr_accessor :battler_visible
#--------------------------------------------------------------------------
# new method: pose
#--------------------------------------------------------------------------
alias bes_initialize initialize
def initialize(viewport, battler = nil)
bes_initialize(viewport, battler)
correct_change_pose if @battler
#---
self.visible = false if SYMPHONY::View::EMPTY_VIEW && (@battler.nil? || @battler.actor?)
#---
return if SYMPHONY::View::EMPTY_VIEW
#---
return unless SYMPHONY::Visual::BATTLER_SHADOW
#---
@charset_shadow = Sprite.new(viewport)
@charset_shadow.bitmap = Cache.system("Shadow")
@charset_shadow.ox = @charset_shadow.width / 2
@charset_shadow.oy = @charset_shadow.height
end
Line 1865
updates it here
Line 1873
#--------------------------------------------------------------------------
# alias method: update
#--------------------------------------------------------------------------
alias bes_update update
def update
bes_update
#---
return if SYMPHONY::View::EMPTY_VIEW
#---
return unless SYMPHONY::Visual::BATTLER_SHADOW
#---
@charset_shadow.opacity = self.opacity
@charset_shadow.visible = self.visible
@charset_shadow.x = self.x + (self.mirror ? 0 : - 2)
@charset_shadow.y = self.y + 2
@charset_shadow.z = self.z - 1
#---
@charset_shadow.opacity = 0 if @battler.nil?
end
Line 1891
Scripts used include
- Battle Symphony v1.15
- Yanfly Ace Core Engine v1.09
- Ace Battle Engine v1.22
I'm curious if anyone can point me in the direction I need to go about modifying the script to get the result I'm looking for.
Any help would be appreciated ! 😀