I guess? Not sure how to label this one. If I'm in the wring place please let me know. Yesterday I loaded up the editor and put in some work, tested the game and everything ran fine.
Today I open up the editor and hit F5 and it's telling me
Dialog 4(1): Error (line 1): Nested functions not supported (you may have forgotten a closing brace)
Dialog in question (nvm that line one has the default ags stuff in it and not mine)
Code: ags
Most of my dialogs have similar structure. I've gone through them and can't see what's different about this one. Furthermore, I'd like to point out that I've made NO changes to this dialog in about a week.
Is my editor freaking out? Or am I missing something obvious? Using AGS 3.5. I started this project on 3.4.1 I think? It updated fine and I've had no issues until now.
Today I open up the editor and hit F5 and it's telling me
Dialog 4(1): Error (line 1): Nested functions not supported (you may have forgotten a closing brace)
Dialog in question (nvm that line one has the default ags stuff in it and not mine)
// Dialog script file
@S // Dialog startup entry point
Display("Hobo: 'I know what yer lookin fer! I've seen it, yes I have. Seen the stink coming off of them who pray to the unclean one!' ");
Wait(20);
Display("Hobo: 'If only I had a way to quench my terrible thirst...' ");
return
@1
int ran=Random(100);
if (ran <= 50)
{
Display("He chuckles raggedly.");
Display("Hobo: 'It's the OIL COMPANIES! They've been digging their dirty claws into our most sacred Mother Earth! The very air is unclean!' ");
Display("He rambles on as you realize your time and money have been wasted.");
Funds -= 50;
}
else if (ran > 50)
{
Display("Hobo: 'I thank you, strangers. Truly, these are worrisome times. There's a junkyard I seen...I watch em shuffling in and out of there, late in the night when nothing stirs. They are the UNCLEAN!' ");
Display("GAINED INTEL.");
object[3].Visible = true;
Funds -= 50;
}
ListBox1.AddItem("-Hobo Encountered.");
stop
@2
int ran=Random(100);
if (ran <= 80)
{
Display("Hobo: 'I thank you, strangers. Truly, these are worrisome times. There's a junkyard I seen...I watch em shuffling in and out of there, late in the night when nothing stirs. They are the UNCLEAN!' ");
Funds -=100;
object[3].Visible = true;
Display("GAINED INTEL.");
}
else if (ran > 80)
{
Display("The man cackles gleefully as he runs off with your money.");
Display("Finances won't be pleased.");
Funds -=100;
}
ListBox1.AddItem("-Hobo Encountered.");
stop
@3
aRadiochirp.Play(eAudioPriorityLow,eOnce);
cParty.SayBubble("Interrogation tactics authorized.");
int ran=Random(100);
if (ran <= 60)
{
Display("After a few moments, he cries out.");
Display("Hobo: 'Okay! Okay! I'll talk! Please, spare this unworthy acolyte! I have seen them moving in and out of a nearby junkyard. I will tell you where it is! Harm me no more!' ");
object[3].Visible = true;
Display("GAINED INTEL.");
}
else if (ran > 60)
{
Display("Despite continued aggression, the man only rambles incoherently. Perhaps he doesn't know anything after all.");
Agents += 1;
}
ListBox1.AddItem("-Hobo Encountered.");
stop
@4
Display("One of your agents shoos the man off as your team continues on it's way.");
ListBox1.AddItem("-Hobo Encountered.");
stop
Most of my dialogs have similar structure. I've gone through them and can't see what's different about this one. Furthermore, I'd like to point out that I've made NO changes to this dialog in about a week.
Is my editor freaking out? Or am I missing something obvious? Using AGS 3.5. I started this project on 3.4.1 I think? It updated fine and I've had no issues until now.