Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Thu 14/08/2003 01:47:23

Title: Text parser implementation
Post by: on Thu 14/08/2003 01:47:23
I'm confused about where some script should go, I read the everything and I'm still stuck. The tutorial says my text parser actions should be triggered by an inter_face click of the textbox, which is obj 2 gui 0 in this instance. so.... Dis what I got:

function interface_click(int interface, int button, string input) {
 if (interface == 1) {
//gui 1 actions
 }
 else if (interface == 0) {
//my stuff goes here?
 }
}
If so, how do I refer to my SWEET text box?
I'm gonna go get my if on...
Title: Re:Text parser implementation
Post by: Ginny on Thu 14/08/2003 13:09:02
Hmm, as I understand it, you should use:
if (button==2) {
//your stuff for the parser here
}

inside this:
else if (interface==0) {
// here
}

It seems a bit odd that it uses the word button when it's a text box, but that's the parameter so this should work I think. :)