Search found 2 matches
- Thu Sep 02, 2021 4:04 am
- Forum: Dialogue System for Unity
- Topic: Edit DialogueDatabase Variables Through C#
- Replies: 3
- Views: 825
Re: Edit DialogueDatabase Variables Through C#
Hi, Use the DialogueLua class. Example: using PixelCrushers.DialogueSystem; //<-- Add to top of script. ... DialogueLua.SetVariable("itemName", "Magic Sword"); DialogueLua.SetVariable("lookingForPrice", 42); Alternatively, you can write C# methods (e.g., GetItemName() ...
- Wed Sep 01, 2021 2:21 am
- Forum: Dialogue System for Unity
- Topic: Edit DialogueDatabase Variables Through C#
- Replies: 3
- Views: 825
Edit DialogueDatabase Variables Through C#
Hello, My game is a dungeon crawler/open world that you collect items and then sell them at your shop. You set the price for these items, so if they are too high an NPC might try and haggle with you to get the price down. So what I need is to be able to set the item name that the NPC is trying to bu...