Super Simple Sideview Battle VX [& ACE]

Super Simple Sideview Battle VX - Version: 1.0
By: Brewmeister

Introduction

Inspired by Amanda's (aka Amaranth / Lambchop) system for RMXP. In response to several requests.

Features
  • Add Actor Battlers
  • Move Actor Battlers to right side of battlefield
  • Actor & Enemy Battlers Blink to aid selection

Screenshots

Image

Demo

http://www.hbgames.org/user_files/Super_Simple_Sideview_VX.exe

Script

  1. #==============================================================================
  2. # ** Super_Simple_Sideview_Battle_VX - Brewmeister
  3. # Inspired by Amanda's (aka Amaranth / Lambchop) system for RMXP
  4. #------------------------------------------------------------------------------
  5. #  Turns on battler sprites for actors.
  6. #  Moves actor sprites to the right side of screen
  7. #  Blinking Active Actor & Enemy sprites to aid selection
  8. #
  9. #  You need to add the battlers in the /Graphics/Battlers folder
  10. #  Use the enemy/actor name. i.e. Ralph.png, Slime.png, etc...
  11. #  (Right facing character for enemies, left facing for actors)
  12. #  You will also need to move the enemy battlers in the Troops tab to the
  13. #  left side of the battlefield.
  14. #==============================================================================
  15.  
  16. class Game_Actor
  17.   alias sss_initialize initialize
  18.  
  19.   def initialize(actor_id)
  20.     sss_initialize(actor_id)
  21.     @battler_name = actor.name
  22.   end
  23.   #--------------------------------------------------------------------------
  24.   # * Use Sprites?
  25.   #--------------------------------------------------------------------------
  26.   def use_sprite?
  27.     return true
  28.   end
  29.   #--------------------------------------------------------------------------
  30.   # * Get Battle Screen X-Coordinate
  31.   #--------------------------------------------------------------------------
  32.   def screen_x
  33.     # Return after calculating x-coordinate by order of members in party
  34.     if self.index != nil
  35.       return self.index * 16 + 432
  36.     else
  37.       return 0
  38.     end
  39.   end
  40.   #--------------------------------------------------------------------------
  41.   # * Get Battle Screen Y-Coordinate
  42.   #--------------------------------------------------------------------------
  43.   def screen_y
  44.     return self.index * 64 + 64
  45.   end
  46.   #--------------------------------------------------------------------------
  47.   # * Get Battle Screen Z-Coordinate
  48.   #--------------------------------------------------------------------------
  49.   def screen_z
  50.     # Return after calculating z-coordinate by order of members in party
  51.     if self.index != nil
  52.       return 4 - self.index
  53.     else
  54.       return 0
  55.     end
  56.   end
  57. end
  58.  
  59. class Scene_Battle
  60.   alias sss_start_actor_command_selection start_actor_command_selection
  61.   alias sss_start_target_enemy_selection start_target_enemy_selection
  62.   #--------------------------------------------------------------------------
  63.   # * Start Actor Command Selection
  64.   #--------------------------------------------------------------------------
  65.   def start_actor_command_selection
  66.     sss_start_actor_command_selection
  67.     for i in 0..$game_party.members.size - 1
  68.       $game_party.members[i].blink = false
  69.     end
  70.     if @actor_index > -1
  71.       @active_battler.blink = true
  72.     end
  73.   end
  74.   #--------------------------------------------------------------------------
  75.   # * Start Target Enemy Selection
  76.   #--------------------------------------------------------------------------
  77.   def start_target_enemy_selection
  78.     sss_start_target_enemy_selection
  79.     @target_enemy = -1
  80.   end
  81.   #--------------------------------------------------------------------------
  82.   # * Update Target Enemy Selection
  83.   #--------------------------------------------------------------------------
  84.   def update_target_enemy_selection
  85.     @target_enemy_window.update
  86.     if @target_enemy != @target_enemy_window.enemy.index   ###BREW
  87.       @target_enemy = @target_enemy_window.enemy.index
  88.       @target_enemy_window.enemy.blink = true
  89.     end
  90.     if Input.trigger?(Input::B)
  91.       Sound.play_cancel
  92.       end_target_enemy_selection
  93.     elsif Input.trigger?(Input::C)
  94.       Sound.play_decision
  95.       @active_battler.action.target_index = @target_enemy_window.enemy.index
  96.       end_target_enemy_selection
  97.       end_skill_selection
  98.       end_item_selection
  99.       next_actor
  100.     end
  101.   end
  102. end
Expand to see the code.


Script - ACE version (no guarantees)

  1. #==============================================================================
  2. # ** Super_Simple_Sideview_Battle_VX_ACE - Brewmeister
  3. # Inspired by Amanda's (aka Amaranth / Lambchop) system for RMXP
  4. # 21JUN12 - updated from VX to ACE. (no guarantees)
  5. #------------------------------------------------------------------------------
  6. #  Turns on battler sprites for actors.
  7. #  Moves actor sprites to the right side of screen
  8. #  Blinking Active Actor & Enemy sprites to aid selection
  9. #
  10. #  You need to add the battlers in the /Graphics/Battlers folder
  11. #  Use the enemy/actor name. i.e. Ralph.png, Slime.png, etc...
  12. #  (Right facing character for enemies, left facing for actors)
  13. #  You will also need to move the enemy battlers in the Troops tab to the
  14. #  left side of the battlefield.
  15. #==============================================================================
  16.  
  17. class Game_Actor
  18.   alias sss_initialize initialize
  19.  
  20.   def initialize(actor_id)
  21.     sss_initialize(actor_id)
  22.     @battler_name = actor.name
  23.   end
  24.   #--------------------------------------------------------------------------
  25.   # * Use Sprites?
  26.   #--------------------------------------------------------------------------
  27.   def use_sprite?
  28.     return true
  29.   end
  30.   #--------------------------------------------------------------------------
  31.   # * Get Battle Screen X-Coordinate
  32.   #--------------------------------------------------------------------------
  33.   def screen_x
  34.     # Return after calculating x-coordinate by order of members in party
  35.     if self.index != nil
  36.       return self.index * 16 + 432
  37.     else
  38.       return 0
  39.     end
  40.   end
  41.   #--------------------------------------------------------------------------
  42.   # * Get Battle Screen Y-Coordinate
  43.   #--------------------------------------------------------------------------
  44.   def screen_y
  45.     return self.index * 40 + 172
  46.   end
  47.   #--------------------------------------------------------------------------
  48.   # * Get Battle Screen Z-Coordinate
  49.   #--------------------------------------------------------------------------
  50.   def screen_z
  51.     # Return after calculating z-coordinate by order of members in party
  52.     if self.index != nil
  53.       return 4 - self.index
  54.     else
  55.       return 0
  56.     end
  57.   end
  58. end
  59.  
  60. class Scene_Battle
  61.   alias sss_start_actor_command_selection start_actor_command_selection
  62.   alias sss_start_target_enemy_selection select_enemy_selection
  63.   #--------------------------------------------------------------------------
  64.   # * Start Actor Command Selection
  65.   #--------------------------------------------------------------------------
  66.   def start_actor_command_selection
  67.     sss_start_actor_command_selection
  68.     for i in 0..$game_party.members.size - 1
  69.       $game_party.members[i].sprite_effect_type = nil
  70.     end
  71.     if BattleManager.actor.index > -1
  72.       BattleManager.actor.sprite_effect_type = :blink
  73.     end
  74.   end
  75.   #--------------------------------------------------------------------------
  76.   # * Start Target Enemy Selection
  77.   #--------------------------------------------------------------------------
  78.   def select_enemy_selection
  79.     sss_start_target_enemy_selection
  80.     @target_enemy = -1
  81.   end
  82.   #--------------------------------------------------------------------------
  83.   # * Update Target Enemy Selection
  84.   #--------------------------------------------------------------------------
  85.   def update_target_enemy_selection
  86.     @target_enemy_window.update
  87.     if @target_enemy != @target_enemy_window.enemy.index   ###BREW
  88.       @target_enemy = @target_enemy_window.enemy.index
  89.       @target_enemy_window.enemy.sprite_effect_type = :blink
  90.     end
  91.     if Input.trigger?(Input::B)
  92.       Sound.play_cancel
  93.       end_target_enemy_selection
  94.     elsif Input.trigger?(Input::C)
  95.       Sound.play_decision
  96.       @active_battler.action.target_index = @target_enemy_window.enemy.index
  97.       end_target_enemy_selection
  98.       end_skill_selection
  99.       end_item_selection
  100.       next_actor
  101.     end
  102.   end
  103. end
Expand to see the code.


Instructions

  • Copy the script and insert below "(Insert Here)" in the "Materials" section of the script editor.
  • Add a battler for each actor & enemy to the \Graphics\Battlers folder in your game project
    Use the actor's/enemy's name for battlers. (i.e. Ralph.png, Ulrika.png, Slime.png, etc..)
  • In the database, under the Troops tab, move the enemy battlers to the left side of the battlefield

FAQ

NA

Compatibility

No known issues

Credits and Thanks

Based on Amanda's Super Simple Sideview script for XP

Author's Notes

In response to several requests.

Terms and Conditions

Do with it whatever your little heart desires. Give credit where credit is due.
I would prefer updates / improvements happen here so I can keep the script up to date.
very nice, maybe you could add battle backs as well? its up to you either way its still really simple and nice
That was a thought, but I think there's already a 'battleback' script available for VX. (I'll have to look)
MOG Battleback
http://www.atelier-rgss.com/RGSS/Battle/VX_BAT01.html
Where can i find Ralph and the battlers pictures like slime and other already in project? please tell me....
I just extracted one cell (Left facing for actors, right facing for enemies) from the character sets. Then save the extracted image in the battlers folder. I don't see a character set for Slime, for that one you'll have to wing it. (or just shrink the slime battler to match.)
Uh I can't get this script to work.Could you post demo?





Sorry for bad english
http://www.hbgames.org/user_files/Super_Simple_Sideview_VX.exe
Thanks,but I have question.I'm going to make party selection thing at the beginning of the game and theres is problem.

You can chosze from difirent classes for example:

Knight I chose Knight and give him name LOL.So if I'm gonna run in yhe battle it will work or not??
Because his oryginal name was Knight .

Help

Sorry for english
In XP, the system used the .character_name (name of the character set file) property, so you'd have a 001-Fighter01.png file in both the Characters & Battlers folders.
In VX, the character sets have multiple characters in one file, and we want to associate a single battler with each character, so we used the .name property.
If you want to associate the battler graphic with the character graphic, you'll need to modify this to use the .character_name & .character_index properties, and create a matching battler for each character graphic.
If you want to associate the battler graphic with a class, change line 21 in the Sideview script to:

@battler_name = actor.class_id

Then create a battler graphic for each class. (1.png, 2.png, etc...)

Another option would be to copy the appropriate graphic during your party selection script. If the player selects Knight & the name "Mjack", copy the Knight battler to Mjack.png.
I will look at this and try out.
I don't know how many people are still following this thread but the script works great from the "battle test" button under the troop tab of the database but when I start a playtest I get this message:

"Script 'Super_Simple_Sideview' line20: SystemStackError occurred.
stack level too deep"

Any ideas on how to fix this?

Thank you!!
Does the demo (above) work? Do you have any other scripts in your project?
Added an "ACE" version per a request. A few minor tweaks & I got it to work.
I didn't spend a lot of time familiarizing myself with RGSS3, but it seems to work for me in test mode.
If I have time, I'll give it a good runthrough to make sure it won't puke.
Otherwise, "Sold - As Is, no guarantees"
Is there a way to get each individual battler position with this script? So that I have coordinates to place something over a battler's head?
krazykat1980 wrote:
Is there a way to get each individual battler position with this script? So that I have coordinates to place something over a battler's head?


The Game_Actor.screen_x & screen_y methods should return the position

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=66224