View Single Post
  #1  
Old 02-12-2007, 04:40 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Interaction Script

I'm scripting an NPC interaction script. For example, once you first start the script the npc asks a question, and there are 2-3 answers that you can respond to, when you answer that question, there are another set of answers you can do. I'm stuck on the second set of answers. I have no idea how to get to the third dimension -_-. Help Please? PS: The last option always ends the script so I dont add into the array for the last option, and the size of the replymsg's and replyopt's must equal to the size of 'this.options'

PHP Code:
// In this example the NPC asks how are you?
this.options = {"Good","Alright","Leave me alone"};
this.replymsg = {{"Thats good to hear, I've got some business to handle ill talk to you later"},{"Only alright? Why is that?"}};
this.replyopt = {{"","","Alright then, bye."},{"I need some help","Forget it","I'm leaving"},{"Nice","","Bye"},}; 
Reply With Quote