RPG Maker Forums

Using the Side-View Battle graphics script by Fomar0153, it's possible to get sprites of the player to show up during battle. I've messed around with this for my first game (which I'll release this Friday) and made it so headshots of the actors appear along the bottom of the battle screen; just over the command box.


But I want to take it a step further... But I also don't know how...


At one point in the game, the actor graphic changes. So I was wondering if it's possible to make it so the battler graphics that appear are graphic-specific rather than actor-specific. In other words, the player battler graphic in battle is different depending on what they look like.


So I'm wondering what I need to adjust/change/add in the original script to get this to work.


Here is the script for reference:


=begin
Basic Side View Battle Script
by Fomar0153
Version 1.0
----------------------
Notes
----------------------
No requirements
Displays battlers for the player's party.
----------------------
Instructions
----------------------
You will need to import battlers for the party to use
they should be named like this:
name_battler
e.g.
Ralph_battler
----------------------
Known bugs
----------------------
None
=end
class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# ? New Method battler_name
#--------------------------------------------------------------------------
def battler_name
return actor.name + "_battler"
end
#--------------------------------------------------------------------------
# ? Rewrites use_sprite?
#--------------------------------------------------------------------------
def use_sprite?
return true
end
#--------------------------------------------------------------------------
# ? New Method screen_x
#--------------------------------------------------------------------------
def screen_x
return 450
end
#--------------------------------------------------------------------------
# ? New Method screen_y
#--------------------------------------------------------------------------
def screen_y
return 120 + self.index * 40
end
#--------------------------------------------------------------------------
# ? New Method screen_z
#--------------------------------------------------------------------------
def screen_z
return 100
end
end

class Spriteset_Battle
#--------------------------------------------------------------------------
# ? Rewrites create_actors
#--------------------------------------------------------------------------
def create_actors
@actor_sprites = $game_party.battle_members.reverse.collect do |actor|
Sprite_Battler.new(@viewport1, actor)
end
end
end


Anyone have any ideas?

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,551
Members
137,837
Latest member
Dabi
Top