Main Menu
  • Welcome to The RPG Maker Resource Kit.

How to make an NPC talk somewhat randomly

Started by Blue, January 20, 2010, 12:59:53 AM

0 Members and 1 Guest are viewing this topic.

Blue

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

Mr_Wiggles

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]
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

[/spoiler]

Blue

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

Mr_Wiggles

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]
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

[/spoiler]

Blue


Irock


Blue

Oh soz Irock.
I didn't realize (I didn't see it either...)
:-\