Hey there,
Although I did not find yet the problem with the system, I wish to share something in the hope it will be useful.
As I've already mentioned, there are two ways to fill pages with the elements to display, assuming that the dialog script mimics the template provided/recommended by the author, Paul Speed:
- In the PageInit() function
- In the HandleSelection() function
In one of my own dialogs, a big(700-800 lines) script for all the merchants of my PW, I'm setting the pages in the PageInit() function, and it never ever broke in 3-4 years. However, in all of the situations where I have seen the bug appearing, the pages were set in the PageInit() function.(I did not know this when I coded my dialog, and since it works well I did not change it)
Looking at Funky's HGLL system, one can see that the pages are set in the HandleSelection() function instead, and I have never seen a single problem with HGLL so far, wich is impressive considering the number of operations involved during the level-up process.
So, for now, I'm forced to conclude that Funky's approach is the way to go. If anyone has some problems with this approach, I would be truly grateful if you let me know, as it will confirm if the above theory is right or wrong(I'm not saying it will fix the bug, but if it never appears, it's almost the same).
Thank you all
Kato
Modifié par Kato_Yang, 05 février 2012 - 08:22 .