Illegal names for custom Lua functions.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ferakiii
Posts: 13
Joined: Tue Nov 19, 2019 12:25 am

Illegal names for custom Lua functions.

Post by ferakiii »

Just incase anyone else here comes across this weird corner case.

I registered a custom lua function called

Code: Select all

endJourney
, but ever time I tried to call it, it gave me a

Code: Select all

Line 2, Col 1 : Failed to parse Letter of Name.
error. When I renamed it to

Code: Select all

failJourney
it worked perfectly.

I am wondering are there certain keywords you can't begin function names with? Or am I going crazy.
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: Illegal names for custom Lua functions.

Post by Tony Li »

Hi,

Looks like my Lua implementation has a parsing issue with functions that start with "end" (case-sensitive). I'll try to address this in the next update. In the meantime, the workaround is to not start your Lua function names with "end". You can use "End", though.
ferakiii
Posts: 13
Joined: Tue Nov 19, 2019 12:25 am

Re: Illegal names for custom Lua functions.

Post by ferakiii »

Thanks Tony, yeah, it was super weird, but now I know, it's no biggie :D
Post Reply