| Tutorial: | Random NPC Conversations |
| Difficulty: | Intermediate |
| RPG Maker: | 2000/2003 |
| Author: | Kiran |
Start by creating a Common Event and labeling it "NPC Conversation" then set the Trigger to Call. Next, create a Variable and also name it "NPC Conversation". Now the Event Commands should look like the following:
<>Variable Oper: [0001:NPC Conversation]Set,Rnd[1-5]
<>Branch if Var [0001:NPC Conversation]is 1
<>Message: <Insert Text Here>
<>:End
<>Branch if Var [0001:NPC Conversation]is 2
<>Message: <Insert Text Here>
<>:End
<>Branch if Var [0001:NPC Conversation]is 3
<>Message: <Insert Text Here>
<>:End
<>Branch if Var [0001:NPC Conversation]is 4
<>Message: <Insert Text Here>
<>:End
<>Branch if Var [0001:NPC Conversation]is 5
<>Message: <Insert Text Here>
<>:End
<>Variable Oper: [0001:NPC Conversation]Set,0
Now your Common Event should look like this:

To activate this event when talking to a NPC simply use the Event Command, Call Event. And select the Common Event "NPC Conversation".
Click to Return to the Tutorials Page