Search found 11 matches

by danieltorok
Fri Dec 01, 2023 11:17 am
Forum: Quest Machine
Topic: Custom SceneEventQuestAction
Replies: 5
Views: 6025

Re: Custom SceneEventQuestAction

Hi, Thank you, I was missing the Editor folder part. Just for completeness sake, this is what I needed to include to be able to drag-and-drop a scene game object: var t = target as Custom; t.gameObject = (GameObject) EditorGUILayout.ObjectField(t.gameObject, typeof(GameObject), true); Also, placing ...
by danieltorok
Fri Dec 01, 2023 8:34 am
Forum: Quest Machine
Topic: Custom SceneEventQuestAction
Replies: 5
Views: 6025

Re: Custom SceneEventQuestAction

Hello, That's what I did first time but I noticed that I cannot drag and drop scene objects into the declared fields. I suppose it's a limitation of how these classes are handled, and thats why there is a separate SceneEventQuestAction. So my question is would it be possible to create custom scene e...
by danieltorok
Fri Dec 01, 2023 5:08 am
Forum: Quest Machine
Topic: Custom SceneEventQuestAction
Replies: 5
Views: 6025

Custom SceneEventQuestAction

Hello! I'm wondering if it would be possible to create a custom SceneEventQuestAction, that doesn't just contain the onExecute UnityEvent field. I tried to modify the QuestMachineSceneEvent class to include more fields, but they are not showing in the editor ui.
by danieltorok
Fri Dec 01, 2023 3:53 am
Forum: Quest Machine
Topic: Custom Lua function helper not showing in Editor UI
Replies: 5
Views: 7286

Re: Custom Lua function helper not showing in Editor UI

So I started to debug this. I noticed a significant code duplication in LuaScriptWizard.cs . There are two variants of the method DrawScriptItem, with seemingly the same content. One is called by Quest Machine the other by Dialogue System. The Dialogue System variant uses EditorGUILayout.BeginHorizo...
by danieltorok
Fri Dec 01, 2023 2:59 am
Forum: Quest Machine
Topic: Custom Lua function helper not showing in Editor UI
Replies: 5
Views: 7286

Re: Custom Lua function helper not showing in Editor UI

Hello, Yes I did, It is even working with Dialogue System. When I say the custom Lua functions not showing I'm talking about not just mine, but the integration custom functions like PlayMaker's FSMEvent etc. There is just an empty space. If I did the setup for Dialogue System and it is working fine ...
by danieltorok
Thu Nov 30, 2023 4:13 pm
Forum: Quest Machine
Topic: Custom Lua function helper not showing in Editor UI
Replies: 5
Views: 7286

Custom Lua function helper not showing in Editor UI

Hello! I wanted to add a custom Lua action as a state action, however If I choose Lua -> Custom, the custom helpers are not showing in the editor. The non-custom Lua options from the drop down are all showing their associated helpers. Picture with non-custom Lua dropdown https://ibb.co/pfPg6hT Pictu...
by danieltorok
Thu Nov 30, 2023 4:03 pm
Forum: Dialogue System for Unity
Topic: GameObject as Lua parameter
Replies: 3
Views: 1375

Re: GameObject as Lua parameter

Hi! "OnExecute" actually works for my use case, I overlooked it first time. Thank you for helping me!
by danieltorok
Thu Nov 30, 2023 7:01 am
Forum: Dialogue System for Unity
Topic: GameObject as Lua parameter
Replies: 3
Views: 1375

GameObject as Lua parameter

Hello! I'm wondering if it would be possible to use (drag and drop) GameObject references to custom dialogue action/conditions? It would make it more robust and convenient to use.
by danieltorok
Wed Nov 29, 2023 3:44 am
Forum: Dialogue System for Unity
Topic: OnConversationStart / End not firing by default
Replies: 3
Views: 456

Re: OnConversationStart / End not firing by default

Thank you for the quick reply! The tooltip got me confused as it doesn't mention the rules you linked in the doc. In my case this rule was taking effect: "It will look for a GameObject that has a Dialogue Actor component whose actor dropdown matches the conversation's conversant." (rather ...