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?
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?
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. >.<
>:( 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.
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. >.<
>.>...
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!
Compare the value with 0, duh.
Oh, BTW. I'm the only one allowed here to get pissed. So, would you please mind?
put this in in a conditional branch
$game_map.battlers.size == 0
Do what Ronnie said, flrodude.
By the way, man: how would you like to be my forum punching bag? :D
I'm supposed to be the forum troll... it seems like Aqua wants in on my territory.
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.
and i thought forums were supposed to be about being friendly and helping others. >:(
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.
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
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]
:haha: ronnie, please make this resolved :haha:
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.
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.