Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • how do you make an event so that a door opens when all monsters are gone
« previous next »
  • Print
Pages: [1] 2

Author Topic: how do you make an event so that a door opens when all monsters are gone  (Read 6550 times)

Offline silverfang

  • Member
  • Associate
  • *
  • Posts: 126
how do you make an event so that a door opens when all monsters are gone
« on: August 10, 2008, 02:57:14 AM »
i got 5 monsters on screen and i want a door to appear after thier all gone.
they each have thier own event saying like
zombie one dead
how do i set it so that after all 5 zombies are dead a door appears.
Logged

Offline Hawkfrost

  • Member
  • Associate
  • *
  • Posts: 236
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #1 on: August 10, 2008, 03:01:38 AM »
have it so every time you kill one it adds a one to a variable. Make the door open when you get X amount.
Logged
Cable/Deadpool #4
"....been thinking of starting up a super hero porn site...nothin too rude, i mean tasteful nakedshots of SUE RICHARDS...when's she VISIBLE, 'cos otherwise, DUH..."

Deadpool: Cannonballs!

Cannonball: it's Cannon-- never mind

Offline silverfang

  • Member
  • Associate
  • *
  • Posts: 126
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #2 on: August 10, 2008, 03:57:28 AM »
can you write out the code for me ^_^
Logged

Offline Hawkfrost

  • Member
  • Associate
  • *
  • Posts: 236
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #3 on: August 10, 2008, 06:18:19 AM »
I would but i don't have the rpg maker on this computer. Someone else can u plz get it to him
Logged
Cable/Deadpool #4
"....been thinking of starting up a super hero porn site...nothin too rude, i mean tasteful nakedshots of SUE RICHARDS...when's she VISIBLE, 'cos otherwise, DUH..."

Deadpool: Cannonballs!

Cannonball: it's Cannon-- never mind

Offline Prpl_Mage

  • Administrator
  • Sage
  • *
  • Posts: 7,645
  • The Administrator Mage
    • Check out our itch website
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #4 on: August 10, 2008, 07:19:22 AM »
You need to learn how to do something so simple yourself.

Simple!

Add this to each event that initiates a battle(the monsters)

-----

I guess you already have something like "Enemy encounter; Plains 3" and such for the actuall battle.

Now, make sure that you've checked the box for "Execute custom handler" under "Escape" in that event command. Or the player will be able to run away from the battle and still get the 'points' for killing the enemy.

Under the "Victory" branch, add "Erase event"(so that the enemy event dies after- well, dying.) and then "Variable Operations".

Now, create a new variable called "Dark,dark dungeon's dreaded door"(or anything you want really, it's a good thing to remember where and when each variable is used though so it doesn't mess things up.).
Then add the command(operation) "Add" and then write a '1' so that it only adds one 'point' for each kill.

This will do so that everytime you win the battle against any of the monsters in the room, a variable will increase with 1 point. But running away and losing will not increase it.


Now, over to the actuall door.
-----------------------------------
First off, make sure that the event got two(2) pages.
You might want to add a different graphic on the second page(to show the player that it's opened).

Now then, first page. No pre-conditiond.
"Add message: "(something like) An evel presence still lurks within this room, defeat it to grant passage"

And that's pretty much all you need for that page, perhaps some sound effect. You could tell them how many monsters they must kill as well or use the" /#v"(or what it was) command to show how many you've defeated.

Second page.
Add the pre-condition "Variable: dark.dark dungeons dreaded door" is "equal to or higher": #(the number of enemy events in the room).

Now for the actuall door, just add the "hide screen-teleport-show screen" as any teleportation event to the place you want to go.
If you want the player to be forced to kill all the monsters if you return, just add a "Variable operation" at the bottom of the event list(under teleport) where you set the variable "dark,dark dungeons dreaded door" to 0.

That''s all you need. Perhaps you'd like a third page on the door event so that the player actually unlocks it with soem flasy battle animation? but that's not neccessary.
-------------------------------------------

I hope it helped and made enough sense that you'd understand how to do it yourself.
Logged
Cool RPGM Project!
Sprite till you die

Oh my god, this was ...10 years ago...

Offline silverfang

  • Member
  • Associate
  • *
  • Posts: 126
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #5 on: August 10, 2008, 05:16:20 PM »
THANK YOU hahah i figured out what i did wrong haha thank you so very much ^_^
« Last Edit: August 10, 2008, 05:18:08 PM by silverfang »
Logged

Offline _JeT_

  • Exemplar
  • *
  • Posts: 1,316
  • A larger Mysterious Mystery of Mysteriousness
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #6 on: August 10, 2008, 05:20:10 PM »
Are you having the door open when the variable is set at 5, or does it just unlock?

If it is to open, make sure the 2nd page is below hero, with touched by hero as trigger condition.
If it is to unlock, make sure the 2nd page is set at same layer as hero, with action key as trigger condition.
Logged

Offline silverfang

  • Member
  • Associate
  • *
  • Posts: 126
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #7 on: August 10, 2008, 05:37:38 PM »
Well i manged to figure the door part out so it works now but i got a new problem now.
Logged

Offline _JeT_

  • Exemplar
  • *
  • Posts: 1,316
  • A larger Mysterious Mystery of Mysteriousness
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #8 on: August 10, 2008, 05:39:46 PM »
That being?
Logged

Offline silverfang

  • Member
  • Associate
  • *
  • Posts: 126
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #9 on: August 10, 2008, 06:06:39 PM »
how do i make him shift to another character without losing the status and hp and mp and skills from the other one.
like
hero 1 is normal
hero 2 is wolf
and i switfch back and forth using a comon event
Logged

Offline _JeT_

  • Exemplar
  • *
  • Posts: 1,316
  • A larger Mysterious Mystery of Mysteriousness
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #10 on: August 10, 2008, 06:11:16 PM »
In or out of battle?

Out, you can just make a new class for the wolf, and switch the hero's class.
In, you would have to store the characters HP, MP, and EXP into variables, remove hero 1(human), add hero 2(wolf), and use the variables to change the stats.
Logged

Offline silverfang

  • Member
  • Associate
  • *
  • Posts: 126
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #11 on: August 10, 2008, 06:39:14 PM »
Hmm i'll try that right now hold on

tried that but the problem is the wolf class has two weapon option
because he uses two claw weapons. one for both hands
« Last Edit: August 10, 2008, 06:41:52 PM by silverfang »
Logged

Offline _JeT_

  • Exemplar
  • *
  • Posts: 1,316
  • A larger Mysterious Mystery of Mysteriousness
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #12 on: August 10, 2008, 06:42:55 PM »
Is it in or out of battle?
Logged

Offline silverfang

  • Member
  • Associate
  • *
  • Posts: 126
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #13 on: August 10, 2008, 06:53:55 PM »
Its out of battle
Logged

Offline _JeT_

  • Exemplar
  • *
  • Posts: 1,316
  • A larger Mysterious Mystery of Mysteriousness
Re: how do you make an event so that a door opens when all monsters are gone
« Reply #14 on: August 10, 2008, 07:04:31 PM »
Then make two heroes, and switch out, using the variables for HP and MP.

EXP, on the other hand, may be different... Try setting the EXP of the one switching out into one variable, then set the other one's EXP into another variable, next, subtract the amount of the first variable from the second variable. Then add that to the second one's EXP.

I may be over complicating this, though.
« Last Edit: August 10, 2008, 07:08:17 PM by _JeT_ »
Logged

  • Print
Pages: [1] 2
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • how do you make an event so that a door opens when all monsters are gone
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum