Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> [SSS] Large Enemy Party, Have more than 8 enemies in your troops.
Shanghai
post Jun 21 2010, 04:17 PM
Post #1


Level 31
Group Icon

Group: Revolutionary
Posts: 747
Type: Developer
RM Skill: Skilled




Shanghai Simple Script - Large Enemy Party
made by Shanghai



Link/Script
Click here

Introduction
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.

How to Use
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:
CODE
  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.
CODE
     [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:
CODE
     [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 in the module.

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.

Compatibility
- Compatible with Battle Engine Melody

For more Shanghai Simple Scripts
Visit Here.

Message of Leave
And this will be my last script for a while. I'm leaving on vacation later this week and I figure I'll stop on script #50 after scripting something new for 50 straight days. Whether or not I come back and care to script more will depend on me after I come back from vacation.


__________________________
Go to the top of the page
 
+Quote Post
   
Locke
post Jun 22 2010, 09:31 PM
Post #2


Level 10
Group Icon

Group: Revolutionary
Posts: 151
Type: Mapper
RM Skill: Intermediate




Wow, Pretty clever smile.gif
I like biggrin.gif


__________________________
We are one (Really i,m not joking)



I've seen many things when mankind rule the land


Which Final Fantasy Character Are You?
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th May 2013 - 09:18 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker