Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: flrodude on December 16, 2009, 06:49:57 pm

Title: condition, all enemies destroyed?
Post by: flrodude on December 16, 2009, 06:49:57 pm
I'm pretty sure this is already a script but i canot find it in the help manuel.  I want a script that when you kill all the enemies in  map, an event happens.  Any help?
Title: Re: condition, all enemies destroyed?
Post by: Aqua on December 16, 2009, 06:57:33 pm
I assume this is for Blizz-ABS...

Quote
5.3.1. How many Battlers did the Map have in the first place?
If you want to know how many battlers or specific type of battlers the map originally had when it was entered, you can use an event Call Script command and use this syntax:
$game_variables[ID] = $game_system.battlers_number
$game_variables[ID] = $game_system.battlers_number_group(GROUP)

ID is the variable ID in which you will store the result. GROUP is the alignment group ID of the battler which you are requesting.

Couldn't find it, huh?
Title: Re: condition, all enemies destroyed?
Post by: Blizzard on December 17, 2009, 04:13:06 am
It's true that he should have looked in the manual, but I accidentally seemed to have remove it in a recent version. ._.
This is for how many battlers the map originally had. He needs to use "$game_map.battlers.size" or "$game_map.battlers_group(GROUP).size" for the number of battlers remaining on the map. >.<
Title: Re: condition, all enemies destroyed?
Post by: flrodude on December 17, 2009, 06:41:26 pm
 >:( i did look in the manuel.  No, i need to make a condition like for example
Enemies left = 0
Lieutant:  Ok we got them all, now let's get in the boat and prepare for a counter.
Title: Re: condition, all enemies destroyed?
Post by: Aqua on December 17, 2009, 07:08:57 pm
Quote from: Blizzard on December 17, 2009, 04:13:06 am
It's true that he should have looked in the manual, but I accidentally seemed to have remove it in a recent version. ._.
This is for how many battlers the map originally had. He needs to use "$game_map.battlers.size" or "$game_map.battlers_group(GROUP).size" for the number of battlers remaining on the map. >.<


>.>...
Title: Re: condition, all enemies destroyed?
Post by: flrodude on December 17, 2009, 07:25:18 pm
Ag!  THAT TELLS YOU HOW MANY FREAKIN BATTLERS ARE LEFT! >:( >:( I WANNA KNOW HOW TO MAKE IT SET OFF AN EVENT WHEN THERE ARE NO BATTLERS LEFT!
Title: Re: condition, all enemies destroyed?
Post by: Blizzard on December 17, 2009, 07:29:22 pm
Compare the value with 0, duh.

Oh, BTW. I'm the only one allowed here to get pissed. So, would you please mind?
Title: Re: condition, all enemies destroyed?
Post by: G_G on December 17, 2009, 07:30:10 pm
put this in in a conditional branch
$game_map.battlers.size == 0
Title: Re: condition, all enemies destroyed?
Post by: Spaceman McConaughey on December 17, 2009, 09:32:44 pm
Do what Ronnie said, flrodude.

By the way, man: how would you like to be my forum punching bag? :D
Title: Re: condition, all enemies destroyed?
Post by: RoseSkye on December 17, 2009, 11:38:03 pm
I'm supposed to be the forum troll... it seems like Aqua wants in on my territory.
Title: Re: condition, all enemies destroyed?
Post by: winkio on December 18, 2009, 01:05:43 am
Wow, that question caught everyone off guard.  Around here we assume that people know basic RMXP skills, and only ask questions about difficult stuff pertaining to certain scripts.  That's why everyone assumed you were just asking for the condition, not how to set up the whole event.  Next time, be more clear and less angry, and you might get a better answer more quickly.
Title: Re: condition, all enemies destroyed?
Post by: flrodude on December 18, 2009, 04:28:41 pm
and i thought forums were supposed to be about being friendly and helping others. >:(
Title: Re: condition, all enemies destroyed?
Post by: RoseSkye on December 18, 2009, 04:37:44 pm
Quote from: flrodude on December 18, 2009, 04:28:41 pm
and i thought forums were supposed to be about being friendly and helping others. >:(

pfft!! Trust me, the cake is a lie.
Title: Re: condition, all enemies destroyed?
Post by: flrodude on December 18, 2009, 04:38:40 pm
ps: ronnie i want to have allies that are battlers.  so how do i make it so only when enemies are dead the event occurs
Title: Re: condition, all enemies destroyed?
Post by: G_G on December 18, 2009, 05:18:15 pm
now that I've had my ice cream I can give you this
$game_system.battlers_number_group(GROUP)

GROUP is the Alignment ID so for instance if the enemy alignment id is 2 then replace GROUP with 2 and if that doesnt work make sure that all the enemy events have this in the name \g[2]
Title: Re: condition, all enemies destroyed?
Post by: flrodude on December 18, 2009, 06:50:06 pm
 :haha: ronnie, please make this resolved  :haha:
Title: Re: condition, all enemies destroyed?
Post by: Blizzard on December 20, 2009, 09:27:50 am
Quote from: flrodude on December 18, 2009, 04:28:41 pm
and i thought forums were supposed to be about being friendly and helping others. >:(


You get what you give. You don't act friendly towards us so I don't feel any obligation to be friendly towards you either.
Title: Re: condition, all enemies destroyed?
Post by: GAX on January 10, 2010, 04:19:23 pm
btw...reporting a moderator's post...seriously?  The report function is for harassment and spam, please don't clog my inbox.

play around with the info they've given you and see if it works.