The RPG Maker Resource Kit

RMRK RPG Maker Creation => VX => Topic started by: junkwisch on December 24, 2012, 07:40:17 AM

Title: [VX] Need help when one event to end another event
Post by: junkwisch on December 24, 2012, 07:40:17 AM
Hi, I just start RPG maker VX yesterday thank to steam sales. I end up enjoying this tool. However I have a problem regards to deleting one event when another event is finished.

the plot is that the player wont be able to cross the bridge (it is block by an NPC soldier) until the assassin squad is destroyed. However, I don't know to make these soldiers disappear after the assassins are annihilated. Any one have a clue?

Sorry for my bad english
Title: Re: Need help when one event to end another event
Post by: pacdiggity on December 24, 2012, 07:51:59 AM
After the assassins have been killed by the player, you can turn on a switch allocated to this purpose. It's a good idea to name this switch so you don't forget what it does. Then you can create an event page on the NPC events, leave it blank, and set the condition to when the switch you turned on with the assassin's death is activated.

I could explain this more if you'd like me to.
Title: Re: Need help when one event to end another event
Post by: junkwisch on December 24, 2012, 02:43:44 PM
Thankyou for a quick reply but what switch are you talking about? Do you mean switch in event command (under game progression) ? and I set assassin to spawn via event command (battle processing) I'm not sure if this is correct or not but assassin spawns just fine. Do I have to change this to get the switch to work?


thank you
Pat
Title: Re: Need help when one event to end another event
Post by: bluntsword on December 24, 2012, 02:52:21 PM
You may find this (http://finalbossblues.com/rmvx-ace-switches-and-variables-p1/) link helpful.
Title: Re: Need help when one event to end another event
Post by: Dark_Metamorphosis on December 24, 2012, 10:01:40 PM
You can create this with a switch, and a Conditional branch in the Event tabs.
First start off with creating the assasin event, and open up the event commands.
If you have a visible assasin, you can add a battle processing command first. If Its random you have to make the changes inside the troops section.

After adding the battle processing, select the command: control switches and name it to whatever you want (Asssasin Dead etc), and set the switch to be ON.


If you want your assasin to dissapear, but have the ability to come back after you exit the current map, you can add a erase event command after the switch. Or, if you want him to dissappear for good, you can use the self switch command. Set it to switch A and add another event page, then select "Self switch A is ON" to the left. Now when that event is done, we need to set the Npc that is blocking the way.

Just create your NPC as a new event.

Set the 1st page of the event tab, and open up the event commands:
Add a conditional branch and select the assasin switch as ON inside the branch.

Above the "Else" text, put in a Self-switch.

And under it put in whatever you want the Npc to say to your party, while the Assasin is still alive.
(or whatever you want him to do, leave it blank if you dont want him to do anything at all).

Add another page, and select the self switch to be ON. (Also make sure the next page doesnt have any graphics, this will make the NPC dissapear.)

Thats the way I usually do it, but you can skip the conditional branch and just trigger the Assasin Dead switch to ON.
There are of course other things you can edit, but thats a basic of it.

Hope it helped :)
Title: Re: Need help when one event to end another event
Post by: junkwisch on December 25, 2012, 05:42:58 AM
Thank you for you answer :D, I manage to followed most parts and adding switches. However, I still cannot get the guard to disappear. Although, the chat dialogue no longer appear (after the assassin is killed). What do you mean by "Add another page, and select the self switch to be ON. (Also make sure the next page doesn't have any graphics, this will make the NPC disappear.)"??   I added an event under "branch end" called control "self switch A = ON" however it doesn't seem to have any effect and there is no graphic option either. (My NPC is visible)
Title: Re: Need help when one event to end another event
Post by: Dark_Metamorphosis on December 27, 2012, 07:18:38 AM
Thank you for you answer :D, I manage to followed most parts and adding switches. However, I still cannot get the guard to disappear. Although, the chat dialogue no longer appear (after the assassin is killed). What do you mean by "Add another page, and select the self switch to be ON. (Also make sure the next page doesn't have any graphics, this will make the NPC disappear.)"??   I added an event under "branch end" called control "self switch A = ON" however it doesn't seem to have any effect and there is no graphic option either. (My NPC is visible)

When you create an Event, you can add several pages by clicking "New Event page". After you have set the self switch on, you have to add another page, if you want the NPC to dissapear. I add two screenshot for you and hope it helps :)

Spoiler for:

Page 1 of the Event:
(http://img23.imageshack.us/img23/7730/guard1.png)
Page 2 of the Event:
(http://img202.imageshack.us/img202/3713/guard2j.png)

If you dont want any conversation with the guard after killing the assassin, you can always skip the branch and just add another page and add the assassin switch to be on, and set the page to autorun. Then the NPC will automaticly disappear.