How to make an npc un-activate after a an option..

Status
Not open for further replies.

skyblue

Warper
Member
Joined
Dec 30, 2013
Messages
2
Reaction score
0
First Language
English
Primarily Uses
I have no idea how to make an npc no longer interact with a player after a certain option is picked. IE npc talks, gives option yes or no, if player picks no, then the interaction is finished but the npc can be spoken to again, but if the option picked is yes, then it follows that string (giving item for example) and then makes the player unable to talk to the npc again. Basically i need this so the player cannot keep using the yes option to get infinite items. I'm very new to this, so simple explanations would be greatly appreciated! Thank you in advance :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
Your problem comes because the RM engine doesn't work on principles like "activate" or "unactivate".


What you need is events with several pages, one page for each "storypoint".


One page would contain the commands before the item is given, the other page would contain what happens after the item is given (like a text "I no longer have XY").


Then you need to use the conditions on each page - the starting page has no conditions, the "after" page (which has to have a higher page number due to priority) can be conditioned in several ways, the best is probably condition it on self-switch A.


On the first page, after getting the item you activate the self-switch A, and then the second page (with the higher priority) takes precedence over the first because now the conditions for that page are all true.


Follow the link in my signature to some tutorials.


Switches and Variables are the basics for making almost everything work with events, and you need to learn those basics before you can sequence events.
 

skyblue

Warper
Member
Joined
Dec 30, 2013
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Hey thanks a bunch, i managed to get what i wanted working ^.^ - I didn't realize switches required other event pages
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
Hey thanks a bunch, i managed to get what i wanted working ^.^ - I didn't realize switches required other event pages
either other event pages with page conditions, or conditional branches with different commands depending on what the switches are set to.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top