You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently only 2 dialog-specific keywords are styled properly in a dialog script: "return" and "stop".
Following is a full list of dialog keywords supported by a dialog compiler in AGS 3.* (many of them may be deprecated in AGS 4 though):
return
stop
goto-dialog
goto-previous
option-on
option-off
option-off-forever
run-script
set-speech-view
set-globalint
play-sound
add-inv
lose-inv
new-room
give-score
Although DialogEditor gathers dialog keywords, they are not applied to scintilla, and instead these 2 "return" and "stop" are hardcoded inside ScintillaWrapper:
This does not have to be so, and it might be possible to fill full list of dialog keywords, and match them in same way as standard script keywords are matched:
The problem here is that majority of dialog keywords have a non-standard syntax, they contain hyphen, which is not considered a valid keyword character by a standard parser. This has to be taken into account somehow, to ensure that only potential dialog keyword is parsed with a hyphen, and keywords in regular script within a dialog are not.
The text was updated successfully, but these errors were encountered:
Currently only 2 dialog-specific keywords are styled properly in a dialog script: "return" and "stop".
Following is a full list of dialog keywords supported by a dialog compiler in AGS 3.* (many of them may be deprecated in AGS 4 though):
Although DialogEditor gathers dialog keywords, they are not applied to scintilla, and instead these 2 "return" and "stop" are hardcoded inside ScintillaWrapper:
ags/Editor/AGS.Editor/Panes/ScintillaWrapper.cs
Lines 2778 to 2781 in 78aa1f9
This does not have to be so, and it might be possible to fill full list of dialog keywords, and match them in same way as standard script keywords are matched:
ags/Editor/AGS.Editor/Panes/ScintillaWrapper.cs
Line 2777 in 78aa1f9
The problem here is that majority of dialog keywords have a non-standard syntax, they contain hyphen, which is not considered a valid keyword character by a standard parser. This has to be taken into account somehow, to ensure that only potential dialog keyword is parsed with a hyphen, and keywords in regular script within a dialog are not.
The text was updated successfully, but these errors were encountered: