Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- #
- # Shanghai Simple Script - Large Enemy Party
- # Last Date Updated: 2010.06.22
- # Level: Hard
- #
- # This script allows you to have more than 8 enemies in a single troop party.
- # Unfortunately, since troops in the database don't have noteboxes, all of the
- # work needs to be done inside of the module.
- #===============================================================================
- # Instructions
- # -----------------------------------------------------------------------------
- # To install this script, open up your script editor and copy/paste this script
- # to an open slot below ▼ Materials but above ▼ Main. Remember to save.
- #
- # The instructions are difficult so pay attention if you know what's good for
- # you. Just like the introduction said, to add more enemies to your troops, you
- # must edit the module itself. They are worked as follows:
- #
- # X => [ #------------------------------------------------------------------
- # # Add your troops in between these lines
- # # [Enemy ID, X Position, Y Position, Hidden, Immortal],
- # #------------------------------------------------------------------
- # [ 2, 70, 240, false, false],
- # #------------------------------------------------------------------
- # # This ends Troop # 1.
- # ], #------------------------------------------------------------------
- #
- # X is the troop ID in the database that you want to edit to have the extra
- # members in. If you look in the database and Slime*2 is the first item on the
- # list, then X is 1. If it is the fifth item on the list, then X is 5. Easy.
- #
- # Next, you'll have to edit this array. This array makes the new enemy.
- #
- # [Enemy ID, X Position, Y Position, Hidden, Immortal],
- #
- # Enemy ID is the ID of the enemy, plain and simple. If you want a Rat added in
- # and its number in the database is 5, then the ID is 5.
- #
- # X Position and Y Position are the screen positions of the enemy on the screen.
- # The X Position is the horizontal position and the Y Position is the vertical
- # position. Far left is 0. Far right is 544. Top is 0 while bottom should be
- # 288 at most (you can go further, but that goes below the status window).
- #
- # Hidden and Immortal are the right click options you get in the troops editor.
- # Setting either of these to true or false will make the enemy hidden or
- # immortal. I strongly suggest you don't mess with these and leave them as false
- # unless you know what you're doing, because the only way to alter these in
- # battle would be through some rather complicated script calls.
- #
- # There, you have your first enemy done. If you want to add more, just make a
- # new line under it and add in another one of those arrays like this:
- #
- # [Enemy ID, X Position, Y Position, Hidden, Immortal],
- # [Enemy ID, X Position, Y Position, Hidden, Immortal],
- #
- # There, now you've added another new enemy. Do the same thing you did before
- # to change how you want the enemy to appear for the first and you're done. If
- # you still can't figure it out, follow the examples below.
- #
- # And a slight warning, the more enemies you add, the more likely there is going
- # to be lag in your game. This is not something I can fix.
- #===============================================================================
- $imported = {} if $imported == nil
- $imported["LargeEnemyParty"] = true
- module SSS
- # This hash is the very core of setting up certain troops to have more than
- # 8 members. Follow the examples below and you can add an unlimited amount of
- # extra toops.
- EXTRA_TROOPS ={
- # ---------------------------------------------------------------------------
- 1 => [ #------------------------------------------------------------------
- # Add your troops in between these lines
- # [Enemy ID, X Position, Y Position, Hidden, Immortal],
- #------------------------------------------------------------------
- [ 2, 70, 240, false, false],
- [ 3, 170, 240, false, false],
- [ 4, 270, 240, false, false],
- [ 5, 370, 240, false, false],
- [ 6, 470, 240, false, false],
- [ 7, 122, 200, false, false],
- [ 8, 222, 200, false, false],
- [ 9, 320, 200, false, false],
- [ 10, 422, 200, false, false],
- [ 11, 70, 160, false, false],
- [ 12, 170, 160, false, false],
- [ 13, 270, 160, false, false],
- [ 14, 370, 160, false, false],
- [ 15, 470, 160, false, false],
- #------------------------------------------------------------------
- # This ends Troop #1.
- ], #------------------------------------------------------------------
- # ---------------------------------------------------------------------------
- 2 => [ #------------------------------------------------------------------
- # Add your troops in between these lines
- # [Enemy ID, X Position, Y Position, Hidden, Immortal],
- #------------------------------------------------------------------
- [ 20, 70, 240, false, false],
- [ 19, 170, 240, false, false],
- [ 18, 270, 240, false, false],
- [ 17, 370, 240, false, false],
- [ 16, 470, 240, false, false],
- [ 15, 122, 200, false, false],
- [ 14, 222, 200, false, false],
- [ 13, 320, 200, false, false],
- [ 12, 422, 200, false, false],
- #------------------------------------------------------------------
- # This ends Troop #2.
- ], #------------------------------------------------------------------
- # ---------------------------------------------------------------------------
- 3 => [ #------------------------------------------------------------------
- # Add your troops in between these lines
- # [Enemy ID, X Position, Y Position, Hidden, Immortal],
- #------------------------------------------------------------------
- [ 10, 70, 240, false, false],
- [ 15, 170, 240, false, false],
- [ 20, 270, 240, false, false],
- [ 12, 370, 240, false, false],
- [ 14, 470, 240, false, false],
- #------------------------------------------------------------------
- # This ends Troop #3.
- ], #------------------------------------------------------------------
- # ---------------------------------------------------------------------------
- } # Remove this and perish.
- end
- #==============================================================================
- # RPG::Troop
- #==============================================================================
- class RPG::Troop
- #--------------------------------------------------------------------------
- # * Members
- #--------------------------------------------------------------------------
- def members
- return @members if @added_extra_members
- @added_extra_members = true
- return @members unless SSS::EXTRA_TROOPS.include?(@id)
- new_members = SSS::EXTRA_TROOPS[@id]
- for array in new_members
- new_member = RPG::Troop::Member.new
- new_member.enemy_id = array[0]
- new_member.x = array[1]
- new_member.y = array[2]
- new_member.hidden = array[3]
- new_member.immortal = array[4]
- @members.push(new_member)
- end
- return @members
- end
- end
- #==============================================================================
- # ** Window_TargetEnemy
- #==============================================================================
- unless $imported["BattleEngineMelody"]
- class Window_TargetEnemy < Window_Command
- #--------------------------------------------------------------------------
- # * Object Initialization
- #--------------------------------------------------------------------------
- def initialize
- commands = []
- @enemies = []
- for enemy in $game_troop.members
- next unless enemy.exist?
- commands.push(enemy.name)
- @enemies.push(enemy)
- end
- super(Graphics.width-128, commands, 2)
- self.height = 128
- end
- end
- end
- #===============================================================================
- #
- # END OF FILE
- #
- #===============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement