![]() |
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:
|
PHP Code:
HTML Code:
for (temp.curMessage: this.replymsg[0]) |
Quote:
|
I figured out a solution for my old problem. Now my problem is that, when the NPC message gets to more than 6 lines (im using tokenize). I want it to create a new page, and keep creating new pages for every 6 lines until theres no more lines. This part completely boggles me
|
what do you mean by 'page'?
|
Quote:
6 lines = 1 page |
That statement still seems very vague... are you displaying 6 lines and then want to display the next six?
|
Quote:
your really slow |
Ok, I figured out how to seperate each page by 6 lines
PHP Code:
} |
Quote:
|
PHP Code:
if (this.linesperpage - 1 => this.i) |
Just something.. dude, please work on your styling. Its horrible and its very hard to read for us others if you ever need help.
|
Oh, thats not the actual script. I just typed it up
|
| All times are GMT +2. The time now is 07:11 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.