Search found 44 matches
- Tue Jul 23, 2024 6:02 pm
- Forum: Dialogue System for Unity
- Topic: How to get reference to actor GO from dialogue in custom lua function?
- Replies: 3
- Views: 533
Re: How to get reference to actor GO from dialogue in custom lua function?
Hey! Thanks for reply! I figured out another way, i don't know about pifalls, but it seems like it is working private bool InventoryContainsItem(string actorName, double itemId, double amount) // Condition { Transform character = PixelCrushers.DialogueSystem.CharacterInfo.GetRegisteredActorTransform...
- Tue Jul 23, 2024 2:51 am
- Forum: Dialogue System for Unity
- Topic: How to get reference to actor GO from dialogue in custom lua function?
- Replies: 3
- Views: 533
How to get reference to actor GO from dialogue in custom lua function?
Hey Tony and everybody! I have my own inventory system, and i wish to check for some items during conversations. So i implemented and register Custom Lua Functions. But there is 1 problem: i wish i can get a reference to actor gameobject or any component, so i could actorGO.GetComponent<IHaveInvento...
- Sat Nov 11, 2023 4:46 am
- Forum: Dialogue System for Unity
- Topic: 3D Quest objective marker?
- Replies: 15
- Views: 2072
Re: 3D Quest objective marker?
Hey, Tony! Another question: I made my own system for tracking targets during a quest, bounded to QuestStateListener But here's the problem: let's say we took a quest and enabled its tracking. And then the quest goes to "Success" state, we complete it. The quest tracking is not turned off ...
- Mon Oct 30, 2023 4:12 am
- Forum: Dialogue System for Unity
- Topic: 3D Quest objective marker?
- Replies: 15
- Views: 2072
Re: 3D Quest objective marker?
I apologize for being so noisy, but I wanted to know one more thing. Is there a patch for the QuestStateListener class? There are fields public QuestStateIndicatorLevel[] questStateIndicatorLevels public QuestEntryStateIndicatorLevel[] questEntryStateIndicatorLevels[0]; and I would really like it to...
- Sun Oct 29, 2023 1:16 pm
- Forum: Dialogue System for Unity
- Topic: 3D Quest objective marker?
- Replies: 15
- Views: 2072
Re: 3D Quest objective marker?
Thanks, you are llterally the best asset dev out there
- Sun Oct 29, 2023 11:16 am
- Forum: Dialogue System for Unity
- Topic: 3D Quest objective marker?
- Replies: 15
- Views: 2072
Re: 3D Quest objective marker?
As far as I understand OnQuestStateChange() is not called when we start / stop tracking a quest. This is the responsibility of OnQuestTrackingEnabled() method The only solution I can see is to modify the QuestStateDispatcher component and add the OnQuestTrackingEnabled/Disabled() method there, and a...
- Sat Oct 28, 2023 11:00 am
- Forum: Dialogue System for Unity
- Topic: 3D Quest objective marker?
- Replies: 15
- Views: 2072
Re: 3D Quest objective marker?
I have one more question :) I need to draw mark on map when player starts tracking some quest. I know about OnQuestTrackingEnabled(string questTitle) However, I don't want to write additional managers and I decided to extend your QuestStateListener by deriving Since it is connected to QuestDispatche...
- Fri Oct 27, 2023 9:45 am
- Forum: Dialogue System for Unity
- Topic: 3D Quest objective marker?
- Replies: 15
- Views: 2072
Re: 3D Quest objective marker?
I have question about quest manager - is it some event in Dialogue System telling listeners that any quest change its state?
Like watcher pattern with quests state
Like watcher pattern with quests state
- Wed Oct 25, 2023 11:30 am
- Forum: Dialogue System for Unity
- Topic: Custom savers doesn't reset when restarting game
- Replies: 3
- Views: 374
Re: Custom savers doesn't reset when restarting game
Yeah, i know about that, but empty method doesn't fix it.
How can i reset data itself? Thanks!
How can i reset data itself? Thanks!
- Wed Oct 25, 2023 10:53 am
- Forum: Dialogue System for Unity
- Topic: Custom savers doesn't reset when restarting game
- Replies: 3
- Views: 374
Custom savers doesn't reset when restarting game
Hi, Tony! I've got some custom savers. For example this one. public class InventorySaver : Saver { [Serializable] public class Data //Contains data for serializing { public InvItem[] items = new InvItem[6]; public InvItem[] itemsMare = new InvItem[6]; } //Arrays to operate with private InvItem[] ite...