Search found 39 matches

by Timeslip
Mon May 27, 2019 6:40 am
Forum: Dialogue System for Unity
Topic: Disable certain responses after they have been selected
Replies: 25
Views: 7385

Re: Disable certain responses after they have been selected

I replaced the script and configured it like your example. It's strange, because Dialog[thisID].Show_Invalid = false; just threw an error at first. Spent a few hours trying to figure out what was wrong and eventually wrote a method to change the field through code (which worked). Then went back to D...
by Timeslip
Fri May 24, 2019 7:00 pm
Forum: Dialogue System for Unity
Topic: Disable certain responses after they have been selected
Replies: 25
Views: 7385

Re: Disable certain responses after they have been selected

Still stuck on this. Getting this error message: Dialogue System: Lua code 'Dialog[thisID].Show_Invalid = false' threw exception 'Lookup of field '6' in the table element failed because the table element itself isn't in the table.' UnityEngine.Debug:LogError(Object) PixelCrushers.DialogueSystem.Lua:...
by Timeslip
Fri May 24, 2019 1:34 pm
Forum: Dialogue System for Unity
Topic: Disable certain responses after they have been selected
Replies: 25
Views: 7385

Re: Disable certain responses after they have been selected

Nevermind, think I have it figured out. Will post again if can't figure it. Leaving this here in case it's any use to someone else. Thanks for help! DialogueEntry dialogueEntry = dialogueDatabase.GetDialogueEntry(conversationIDIn, dialogueEntryIn); Field.SetValue(dialogueEntry.fields, "Show Inv...
by Timeslip
Fri May 24, 2019 1:18 pm
Forum: Dialogue System for Unity
Topic: Disable certain responses after they have been selected
Replies: 25
Views: 7385

Re: Disable certain responses after they have been selected

It's working now, but seems that I need to change the state of the dialogue entry field "show invalid" from true to false once the option has been selected. This is the behaviour I'm trying to get. [Player lacks skill to heal & character not healed] -> response is invalid, but visible ...
by Timeslip
Fri May 24, 2019 11:21 am
Forum: Dialogue System for Unity
Topic: Disable certain responses after they have been selected
Replies: 25
Views: 7385

Re: Disable certain responses after they have been selected

In reference to step 2: 2. Replaced the Unity UI Dialogue UI component with Unity UI Dialogue UI Show Invalid Responses. To do this, I changed the Inspector to Debug mode using the three-bar menu in the top right of the Inspector. Then I dragged UnityUIDialogueUIShowInvalidResponses.cs onto the Scri...
by Timeslip
Fri May 24, 2019 10:05 am
Forum: Dialogue System for Unity
Topic: Disable certain responses after they have been selected
Replies: 25
Views: 7385

Re: Disable certain responses after they have been selected

Hi Tony,

Since I'm trying to show options which are not available based on the player's current stats and skills, (so the player knows there are other options), I've ticked the show invalid entries option. This seems to prevent the solution from working.
by Timeslip
Tue May 21, 2019 12:33 pm
Forum: Dialogue System for Unity
Topic: Disable certain responses after they have been selected
Replies: 25
Views: 7385

Disable certain responses after they have been selected

Hi Tony, My game has a number of skill checks and these are shown, even if the player lacks the requirements to select them. For the most part, I'd like to allow players to revisit dialogue, but in the case when a response results in an action (like healing an NPC), I'd like to have that response re...
by Timeslip
Tue May 21, 2019 7:15 am
Forum: Dialogue System for Unity
Topic: ArgumentException: failed to convert parameters
Replies: 1
Views: 243

Re: ArgumentException: failed to convert parameters

Nevermind - forgot that Lua requires double, and was passing an int.
by Timeslip
Tue May 21, 2019 7:03 am
Forum: Dialogue System for Unity
Topic: ArgumentException: failed to convert parameters
Replies: 1
Views: 243

ArgumentException: failed to convert parameters

Hi Tony, I'm getting the error in the title when trying to run a Lua function. The function is registered like this and also unregistered. Lua.RegisterFunction("GetHighestTeamSkill", this, SymbolExtensions.GetMethodInfo(() => GetHighestTeamSkill(0, false))); This is what is being called in...
by Timeslip
Wed May 08, 2019 6:58 am
Forum: Dialogue System for Unity
Topic: Update Variable in Quest Entry
Replies: 2
Views: 305

Re: Update Variable in Quest Entry

Cheers, Tony.