condition, all enemies destroyed?

Started by flrodude, December 16, 2009, 06:49:57 pm

Previous topic - Next topic

flrodude

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?

Aqua

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?

Blizzard

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. >.<
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

flrodude

 >:( 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.

Aqua

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


>.>...

flrodude

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!

Blizzard

December 17, 2009, 07:29:22 pm #6 Last Edit: December 17, 2009, 07:32:51 pm by Blizzard
Compare the value with 0, duh.

Oh, BTW. I'm the only one allowed here to get pissed. So, would you please mind?
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

G_G

put this in in a conditional branch
$game_map.battlers.size == 0

Spaceman McConaughey

Do what Ronnie said, flrodude.

By the way, man: how would you like to be my forum punching bag? :D

RoseSkye

I'm supposed to be the forum troll... it seems like Aqua wants in on my territory.

winkio

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.

flrodude

and i thought forums were supposed to be about being friendly and helping others. >:(

RoseSkye

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.

flrodude

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

G_G

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]

flrodude

 :haha: ronnie, please make this resolved  :haha:

Blizzard

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.
Check out our game brands:

Daygames
Game Night Games
Chugnar Games

Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

GAX

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.

Rule 2: ShowHide
Quote from: Rule No.2Keep your signatures at reasonable size. The pictures in your signature may altogether be no more than 200kB and take up an area of 1600px2. That means 2 pictures of 400x200 are fine, one picture of 800x200 is fine and so on. Also your pictures height must not exceed 200 pixels, width can be as big as you want as long as your pictures match the other criteria. Every signature not matching this criteria is a subject of the moderator team to remove and leave this rule as message in your signature.