Page 1 of 1

Script block. Show Alert with SetQuestEntryState

Posted: Mon Jul 15, 2024 1:15 pm
by flyingv
Hi!

I've notice that alert popup is not showing with this lines of Lua code:

Code: Select all

SetQuestEntryState("Enemy Attack", 1, "active");
Variable["Alert"] = "New Text"
Throw exception 'Code has syntax error'

When I use

Code: Select all

SetQuestState("Enemy Attack", "active");
Variable["Alert"] = "New Text"
All goes fine. Alert is shown. Why I can't use it together with SetQuestEntryState?

Re: Script block. Show Alert with SetQuestEntryState

Posted: Mon Jul 15, 2024 3:50 pm
by Tony Li
Hi,

Does this Script work by itself?

Code: Select all

SetQuestEntryState("Billy's Debt", 1, "active")
If not, please try retyping it. Maybe one of the quote characters is the wrong type of quote, or maybe there's an invisible character that's invalid.

Re: Script block. Show Alert with SetQuestEntryState

Posted: Tue Jul 16, 2024 6:22 am
by flyingv
A weird situation, but I think you were right. When I retyped all the scripts, it started work.

Thanks!

Re: Script block. Show Alert with SetQuestEntryState

Posted: Tue Jul 16, 2024 8:46 am
by Tony Li
Glad to help!