Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:40 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.