RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
How to make an NPC talk somewhat randomly

0 Members and 2 Guests are viewing this topic.

***
Rep:
Level 82
Weeeee!
Oh, here I'm going to show you how to make an NPC say different sentences nearly everytime you talk to him...

Step 1.  Make an event.

Step 2. Make a variable called talk randomizer.



Step 3. Set talk randomizer to random 1~4.



Step 4. Make a Conditional Branch. Make the condition "talk randomizer is equal to 1".



Step 5. Make a Conditional Branch. Make the condition "talk randomizer is equal to 2".



Step 6. Make a Conditional Branch. Make the condition "talk randomizer is equal to 3".



Step 7. Make a Conditional Branch. Make the condition "talk randomizer is equal to 4".



Step 8. Your Event Commands list should look like this now...



Step 9. In each Conditional Branch just put in whatever you want the NPC to say or do.
End result...


If you have any questions just post.
I hope it helps!
 :)

EDIT: You can also put all this in a Common Event and simply call it through an event when you need it. :D Mr_Wiggles
« Last Edit: January 20, 2010, 02:22:55 AM by Blue »

****
Rep:
Level 83
You can make the event look cleaner if you unchecked the "set handling conditions" for the Conditional branches, since you don't have anything under "else".
Spoiler for:
METALFRESH is a paint contractor that specializes in refinishing metal and vinyl siding. We paint metal buildings as well as siding on homes.

We also

    Refinish decks
    Do custom interior painting
    Strip wallpaper
    Refinish cedar siding
    Metal front doors and sidelights
    Metal garage and service doors
    Grained fiberglass doors

    If your structure is *RUSTED *FADED *CHALKING *IN NEED OF COLOR CHANGE, we can fix it with a guarentee!

northern Illinois and southern Wisconsin.

http://metalfreshcoatings.com


***
Rep:
Level 82
Weeeee!
I know, but just in case a super-n00b (like me  ::)) asks "hey! how do I do that?"

****
Rep:
Level 83
Ah ok then, yea this can be a useful tut, you might even wanna add that you can make it use a common event.
Spoiler for:
METALFRESH is a paint contractor that specializes in refinishing metal and vinyl siding. We paint metal buildings as well as siding on homes.

We also

    Refinish decks
    Do custom interior painting
    Strip wallpaper
    Refinish cedar siding
    Metal front doors and sidelights
    Metal garage and service doors
    Grained fiberglass doors

    If your structure is *RUSTED *FADED *CHALKING *IN NEED OF COLOR CHANGE, we can fix it with a guarentee!

northern Illinois and southern Wisconsin.

http://metalfreshcoatings.com


***
Rep:
Level 82
Weeeee!
What do you mean?


***
Rep:
Level 82
Weeeee!
Oh soz Irock.
I didn't realize (I didn't see it either...)
 :-\