You need 3 strings:

1 for the question, 2 (or more) for the answers

each string will be controlled through a TEXT, so you can swap out the chars* later for multiple texts, without having several panels for your task.

Next you need 3 panels for each string. The strings will sit ontop of the panels, and the therfore giving the illusion of having 1000's of different text panels.


Then, when you click the witch (you can use vec_for_screen to check if your clicking anything)

Clicking the witch will activate the panels.

the panels buttons will have to be controlled through one function that outputs the approriate strings per NPC.

Code:
if(npc_number == 1){
if(mouse_panel)...
//do this
}
if(npc_number == 2){
if(mouse_panel)...
//do this
}

//then turn on the texts ;)




Last edited by DLively; 05/03/14 00:15.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com