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
> ABS Event Question
trhh
post Mar 13 2012, 07:56 AM
Post #1


Level 2
Group Icon

Group: Member
Posts: 18
Type: Mapper
RM Skill: Beginner




I'm working on this ABS in RMK3 and have 4 enemies on this one map. Once all the enemies are killed, how would I go about having an event happen once they are all killed? Like a message pop up box. Do I need to set up a variable on the map that would be titled something like, "all enemies gone" and set it to 0 as a precondition then have the message in the event command box and then for each enemy have that variable stored with them? Does that make sense?


__________________________
GET TO DA CHOPPAH!
Go to the top of the page
 
+Quote Post
   
Essenceblade
post Mar 13 2012, 08:34 AM
Post #2


Crystallite Hope.
Group Icon

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




You would create a variable and call it "Kill Count". Set it to 0

Every time a monster is killed, at the end of THAT monster's event, add "<>Variable Oper: [XXXX: Kill Count] +, 1"

Then you simply make a parallel process in a separate event (I.e top corner of the map), and make a conditional branch saying;

"<>Branch if VAR [XXXX: Kill Count] is 4 or more
<>---Event dialogue after monsters are killed here---

: End
<>


(You don't need an else handler, so untick that box.)


Because the event is constantly going over and checking, it will automatically execute upon killing the 4th monster. To make it more realistic, simply make a tint screen effect in the event that checks if Kill Count is 4 or more.


__________________________
My current project:


--------------------------------------------------






--------------------------------------------------



-------------------------------------------------------------------------------------------
"I want to have encampment dreams, where everything is as it seems, Harmony everywhere, finally there is peaceful air" -- Fatesboon. 11/4/2011
Go to the top of the page
 
+Quote Post
   
trhh
post Mar 13 2012, 10:04 AM
Post #3


Level 2
Group Icon

Group: Member
Posts: 18
Type: Mapper
RM Skill: Beginner




QUOTE (Essenceblade @ Mar 13 2012, 09:34 AM) *
You would create a variable and call it "Kill Count". Set it to 0

Every time a monster is killed, at the end of THAT monster's event, add "<>Variable Oper: [XXXX: Kill Count] +, 1"

Then you simply make a parallel process in a separate event (I.e top corner of the map), and make a conditional branch saying;

"<>Branch if VAR [XXXX: Kill Count] is 4 or more
<>---Event dialogue after monsters are killed here---

: End
<>


(You don't need an else handler, so untick that box.)


Because the event is constantly going over and checking, it will automatically execute upon killing the 4th monster. To make it more realistic, simply make a tint screen effect in the event that checks if Kill Count is 4 or more.


Thanks again man for the help, this worked perfectly. biggrin.gif


__________________________
GET TO DA CHOPPAH!
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: 18th May 2013 - 08:29 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker