- Joined
- Apr 18, 2015
- Messages
- 112
- Reaction score
- 12
- First Language
- English
- Primarily Uses
- RMMV
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?
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?
Last edited by a moderator:
