Events

I'm having trouble with an event that doesn't disappear automatically.  For example,  I created a event NPC where it's telling to me get an item.  It goes into the last page (a simple dialogue) and stays there, which is what I want.  But once I get the item, I want the NPC to disappear.  I put the code on the last page of the event (after the dialogue), but it needs to be trigger with a action button, which means the NPC is still there until I push the action button.  I want it to auto trigger once I get the item.  I've been trying to add different events, put the code somewhere else, have a different trigger method, but it's not working.  Need help.  Thanks.

P.S.  I made an event where a NPC appears automatically when I get a specific item, but I can't figure out how to do the opposite....
Please show a screenshot of the event pages if you want detailed help.


But what it sounds like is that you need an additional last page conditioned to the item but without a sprite.


And please give your topics a better title, one that tells us what the problem is - you can edit the title by clicking on "more options" when editing the topic
I can't find the "more options," but I'll make a better title next time.

I've uploaded the events.  Page 1 is cut off from the top, but it's only text anyways.

Page 1

1.gif

Page 2

2.gif

Page 3

3.gif

Page 3 is the trouble one, as you can see, the only way for the NPC to disappear when I have either of the item is to do a action button.  If I go auto trigger, it's gonna keep giving me the text.

Page 4

4.gif
Page 4 needs to be action button.


NEVER make a page without content to parallel process or autorun, that will cause a lot of problems.


If you want the contents of page 3 happen without action button, then move them to page 2, to the place where you have the "control self-switch B=ON" and remove all uses of self-switch B from the event.


By the way, you don't need to turn on self-Switch A on the second page - it already is on or the page wouldn't execute.
If I do that, it's going to trigger all of page 2 again until i get the item, which I don't want.  Even if I put the code from page 3 to page 2, I still would need the action button to make the NPC disappear.  I want to repeat page 3 until I get the item, and then go to page 4 to make the NPC disappear.
No it woun't - I said it has to go to the place of the control selfswitch command, which is inside the conditional branch, which means it will only trigger on that condition.


It looks like the problem you have is because you are not entirely experienced in logic sequences - of course you can't simply add the commands from page 3 below the existing commands of page 2, that would cause problems.


There is another solution if that is more like what you want.


Delete the conditional branches from page three, leaving only the show text.


Delete page 4 to remove the mistakes you made there.


Make a new page 4, activate condition "item" on forest gem


Make a new page 5, activate condition "item" on nature's gem


no switches, no triggers, no content, nothing.

Original thread: https://forums.rpgmakerweb.com/threads/events.54326/