Hello everyone! Sorry for my English, tryin' my best. I have an idea. After quest complete, I want my NPC to answer with a 2-3 different replics by clicking on him. If NPC will answer with only 1 message, its gonna be too boring. Is it real to make?
Random message when talking to an NPC.
RPG Maker MV SupportYou could probably make the event set a variable you're not using to a random number between 1 and 3, then display a reply for each result? Something like this would work.
It works, but only one time. After the second click on NPC, the event doesn't work. What do you think?
Well, the solution is easy. I just added "control variables: random = 0" after every message.
the above solution basicly loops as long you dont use a selfswitch on it.
Using control variables like stated above is great if you just want to use eventing~ If you want to go a bit more intermediate you can make if statements too, so that if something happens or hasn't happened in your story npcs will comment on it. This is slightly more advanced, but it adds a ton of character to your npcs!
Below you can see when 1 is randomly rolled, if the "battle" switch is on (turned on when they slayed a specific monster) they will comment on you killing it. But if the switch is off when 1 is rolled, they will comment on the beast still being alive.
I also put Exit event processing after every dialog, as this will immediately end the event rather than it also checking "if this is 2, if this is 3, if this is 4, if this is 5, if this is 6". You won't really see a performance dip not using Exit Event Processing unless it's a huuuuuuge event with a ton going on, but when you get into more advanced eventing it's a lifesaver! I just have OCD about it hahaha.
Below you can see when 1 is randomly rolled, if the "battle" switch is on (turned on when they slayed a specific monster) they will comment on you killing it. But if the switch is off when 1 is rolled, they will comment on the beast still being alive.
I also put Exit event processing after every dialog, as this will immediately end the event rather than it also checking "if this is 2, if this is 3, if this is 4, if this is 5, if this is 6". You won't really see a performance dip not using Exit Event Processing unless it's a huuuuuuge event with a ton going on, but when you get into more advanced eventing it's a lifesaver! I just have OCD about it hahaha.
You think so?
Sounds interesting! I will save that! Right now I don't have any ideas how I can use it in my game. Its only in alpha. Mb in future I'll try it. Thanks for your support!
I have multiple test project, each with its own mechanic. so you can make a project or tutorial
project and make an NPC using that (you can use YEP_MiniLabel so you can use 1 map for
for multiple test events, so you can test and recheck how it's made and impliment that into
the main project.
this keeps your project from corrupting, but also make backup's from time to time.
project and make an NPC using that (you can use YEP_MiniLabel so you can use 1 map for
for multiple test events, so you can test and recheck how it's made and impliment that into
the main project.
this keeps your project from corrupting, but also make backup's from time to time.
Good, thanks
You might also want to have a look at this:
forums.rpgmakerweb.com
Random Dialogue v1.03a
Random Dialogue v1.03a Author: Michael Morris @Blue Booth Studios Demo thanks to Anthony Xue: http://ancient-architects.com/files/Conversation Demo.zip Introduction Sometimes you just need NPCs to say random stuff. Not completely random, per say, but for example, let's say you have an NPC...
forums.rpgmakerweb.com
@NeoShima , please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.
You can quote more than one post in a reply by clicking quote for each, then clicking insert quotes. Also, instead of quoting to reply, you can tag a person using @ and their username as I've done above.
Got it, thanks!
have you tried using a LOOP function? or would that cause the messages to keep appear?
This thread is over three years old.
Also, the OP you're asking the question of hasn't logged into the site in three years.
Yes it would, because that's what a loop does.
@Nightshade , please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/random-message-when-talking-to-an-npc.121943/