Tutorials for Lua / C#

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
randomcat
Posts: 3
Joined: Sun May 14, 2023 7:00 pm

Tutorials for Lua / C#

Post by randomcat »

Hi. Brand new. Going through the the PC tutorials and they're good. I'm looking for more in-depth / walk throughs for how to integrated with my C# code. example - trigger a conversation when npc clicked on, and get the NPC name from their data. I'll continue thru the videos and documentation, I figured if anyone knew of anything, would be great
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Tutorials for Lua / C#

Post by Tony Li »

Hi,

Here's the tutorial on connecting your C# with Lua:

Video: How to Connect Your Own Code to Lua

You can also refer to the Lua section of the manual.
randomcat
Posts: 3
Joined: Sun May 14, 2023 7:00 pm

Re: Tutorials for Lua / C#

Post by randomcat »

thanks for the reply Tony, though in the tutorial, and my Unity when I do
create - pixel crushers - Dialogue System - the Customer Lua Function Info (it wasn't there) ??
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Tutorials for Lua / C#

Post by Tony Li »

Hi,

Are there any errors or warning the Console window?

Are you right-clicking in the Project view or selecting menu item Assets > Create > Pixel Crushers > Dialogue System > Custom Lua Function Info? Either method will create a Custom Lua Function Info asset. Here's an example of right-clicking in the Project view:

createCustomLuaFunctionInfo.png
createCustomLuaFunctionInfo.png (169.35 KiB) Viewed 416 times
randomcat
Posts: 3
Joined: Sun May 14, 2023 7:00 pm

Re: Tutorials for Lua / C#

Post by randomcat »

it's available in the right click menu, just not under tools, so I am good! thank you very much!
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Tutorials for Lua / C#

Post by Tony Li »

Glad to help!
Post Reply