Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: tor.brandt on Mon 07/11/2016 20:47:59

Title: "function dialog_request(int param) { }" keeps getting added to my global script
Post by: tor.brandt on Mon 07/11/2016 20:47:59
For some reason AGS keeps adding the line
Code (ags) Select
function dialog_request(int param) { }
at the bottom of my global script.

I take it that I add it accidentally myself, but I cannot figure out what I keep doing to add the line to the script.
Does anyone have suggestions for what could (semi-)automatically add the line?
Title: Re: "function dialog_request(int param) { }" keeps getting added to my global script
Post by: Cassiebsg on Mon 07/11/2016 20:59:24
I had the same problem not long ago, and you can't get rid of it. Just move it to the top of the script and forget it's there...
It's some legacy code, or so...
Title: Re: "function dialog_request(int param) { }" keeps getting added to my global script
Post by: tor.brandt on Tue 08/11/2016 01:34:25
Thanks!

So it's actually an AGS bug, kind of?
Title: Re: "function dialog_request(int param) { }" keeps getting added to my global script
Post by: Khris on Tue 08/11/2016 09:42:27
Do you have a run-script in any of your dialog scripts? That's the only thing I can imagine would cause that, other than some weird bug.
Title: Re: "function dialog_request(int param) { }" keeps getting added to my global script
Post by: tor.brandt on Tue 08/11/2016 09:54:23
Quote from: Khris on Tue 08/11/2016 09:42:27
Do you have a run-script in any of your dialog scripts? That's the only thing I can imagine would cause that, other than some weird bug.

That's exactly the thing, so far I've been working solely on the UI for my game, and so I haven't even gotten to any dialog scripts yet, which is why I couldn't figure out what I could have possibly done to make the line appear.
Maybe by mistake I could have switched some "run script" on somewhere dialog-related, I'll have to look for that, thanks!