Yin's Extra Troops - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Material Development (https://www.save-point.org/forum-8.html) +--- Forum: Scripts Database (https://www.save-point.org/forum-39.html) +---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html) +---- Thread: Yin's Extra Troops (/thread-3846.html) |
Yin's Extra Troops - DerVVulfman - 12-21-2011 Yin's Extra Troops
Version: 1.0 Introduction With this, you can make a battle have more than two troops engaged at the same time. All actions in the troops window are based on the initial troop that's called when entering a battle (random battles, map event 'Battle Processing'). So the battle conditions in the second troop will not come into play. The only caveat to this is that the enemies in the second troop will not be controlled or a part of the first troop's event system. Script The Script Instructions Got plenty in the script. Notes Keep in mind that the second troop loaded into the battle cannot be controlled by the TROOPS list of battle events. They act merely as fillers. Only the battle events defined by the main/master troop are being recognized and only affect the enemies in that troop alone. Thanks To Yin, who requested the script. Compatibility and Installation Pretty much aliases everything. If you put a script BELOW this one that does overwrites stuff, I cannot guarantee that it will work. Terms and Conditions Free for use, both freeware and commercial. However, credit for both Yin and myself is required. RE: Yin's Extra Troops - Victor Sant - 12-21-2011 Wow i'm just working on a very similar script for VX Ace. XD I saw a japanese script to add more than 8 enemies on battle, but it was so confusing and hard to use that i thought about using other troops as reference. RE: Yin's Extra Troops - Yin - 12-21-2011 I said thank you before, but here it is again. Thank you!! How would I use the other troop as a condition? (Like if an enemy from the second troop dies, make this happen) Is there a script call that I can use that can call the other troop's events? Or maybe i can pull information like if an enemy dies and use it in the main troop. And also, how would I make it so that if the first (original troop) is killed, that the battle is over as a win? RE: Yin's Extra Troops - DerVVulfman - 12-22-2011 Atoa: Yeah, SephirothSpawn wrote a script that could add more enemies to a troop. And then there's RPG Advocate's Random Enemies. But here's the problem with those two and this one. You cannot write event commands in the TROOPS database to handle the additional enemies. These enemies (in all of these scripts) are added only in-game and not while you're creating your troops, so you cannot create any troop commands to control them. The enemies (for all intents and purposes) are not present. Now you CAN perform checks in troop 1 to see if Enemy X (of that troop) is dead. I did that with a simple group of ghosts.... with a set of basilists as the second troop. Having it check if Ghost #2 had HP of 0 or less, I had it run a script call: Code: for enemy in $game_troop.enemies RE: Yin's Extra Troops - Yin - 12-22-2011 That works perfectly, so once everyone in the master troop is dead, the battle is over! You mentioned that you checked to see if an enemy in the next troop was dead or alive, but you didn't mention how you did it. |