Ok here it is call me silly...
This is my dialog
@1 What a wonderful day.
@2 What a crappy Day.
@3 I pooped my pants.
Here is the code.
function talk_score()
{
if Parser.Said("What a wonderful day.");
{
GiveScore(100);
}
}
it give me an error...
Error (line 6): expected '('
What i want is 100 points for the first answer, -100 for the second, and finally 1 point added for pooping your pants. Then I want to exit the dialog.
:
Thanks for not calling me stupid in advance.

This is my dialog
@1 What a wonderful day.
@2 What a crappy Day.
@3 I pooped my pants.
Here is the code.
function talk_score()
{
if Parser.Said("What a wonderful day.");
{
GiveScore(100);
}
}
it give me an error...
Error (line 6): expected '('
What i want is 100 points for the first answer, -100 for the second, and finally 1 point added for pooping your pants. Then I want to exit the dialog.
:

Thanks for not calling me stupid in advance.