Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Minitay

#1
i want to make an object appear only after the player has chosen a specific dialoge option.
i've been thinking to use something like this...

Code: ags

function PC_Talk()
{
  dDialog1.Start ();
  if (dDialog1.HasOptionBeenChosen(5))
  //continue script here
  
}


but i really dont know what to do since the object's name (H74) isnt identified in the global script itself...
#2
i dont know why it does it, it always finds a problem in that script no matter what.
it started when i tried to make a character. then it said, that the command doesnt have closing braces (it did.)
so i erased all the character interactions, and the character itself, and now it finds problems within the script (that i didnt write).

GlobalScript.asc(32): Error (line 32): Parse error: unexpected 'System'

GlobalScript.asc(-10): Runtime error: Function still open, missing }

i tried to temper with the second error a little, and i counted the braces and all, and it still shows that. as for the first error im afraid to do anything with it.
SMF spam blocked by CleanTalk