Search found 110 matches

by timbecile
Sun Nov 25, 2018 7:41 pm
Forum: Dialogue System for Unity
Topic: Adding a quest state
Replies: 1
Views: 478

Adding a quest state

I've found that I have a need to add a quest state now and again that I can check for in script. Is there a way to add a quest state? for instance, a guy who unlocks a door assigns a quest. when quest is success he gives the player his reward and sets the quest state to "done" or something...
by timbecile
Mon Apr 16, 2018 9:25 pm
Forum: Dialogue System for Unity
Topic: Set Quest state from script?
Replies: 3
Views: 1168

Re: Set Quest state from script?

Thanks Tony!

Is there a way at runtime to see what state a quest is in?
by timbecile
Sat Apr 14, 2018 9:51 pm
Forum: Dialogue System for Unity
Topic: Set Quest state from script?
Replies: 3
Views: 1168

Set Quest state from script?

I'm sure this has been asked a bunch, but I couldn't find it anywhere in the search.

What I'm trying to do is set the quest state from a c# script that's triggered after all the spawned enemies have been killed.

How do I do that?
by timbecile
Sat Mar 17, 2018 5:59 pm
Forum: Dialogue System for Unity
Topic: Calling script to set a variable
Replies: 1
Views: 943

Re: Calling script to set a variable

duh. Nevermind.

My problem was that the function wasn't public.
by timbecile
Sat Mar 17, 2018 5:06 pm
Forum: Dialogue System for Unity
Topic: Calling script to set a variable
Replies: 1
Views: 943

Calling script to set a variable

Hey Tony! on to another problem... I'm trying to use a script to set a value called "HealingCost", but it doesn't seem to be working. The LUA Script code: Variable["HealingCost"] = GetHealingCost() and the script code: private void OnEnable() { Lua.RegisterFunction("GetHeali...
by timbecile
Sat Mar 17, 2018 1:58 pm
Forum: Dialogue System for Unity
Topic: If Click Node Then
Replies: 19
Views: 2603

Re: If Click Node Then

Thanks Tony! I've got it all sorted now.
by timbecile
Thu Mar 15, 2018 9:31 pm
Forum: Dialogue System for Unity
Topic: If Click Node Then
Replies: 19
Views: 2603

Re: If Click Node Then

Thanks for the help Tony! You rule.

all are great options, but I think passing the variable is the best idea. How many vars can you pass from Lua?
by timbecile
Wed Mar 14, 2018 10:53 pm
Forum: Dialogue System for Unity
Topic: If Click Node Then
Replies: 19
Views: 2603

Re: If Click Node Then

ok, so I guess this is more complicated than I thought. Here is the scenario: * Player has a certain amount of skills that can be promoted * different NPCs teach different skills * I need to check to see if the player has the same skill that the NPC teaches The issue that I've been having is that mu...
by timbecile
Wed Mar 14, 2018 9:27 pm
Forum: Dialogue System for Unity
Topic: If Click Node Then
Replies: 19
Views: 2603

Re: If Click Node Then

I see how it's supposed to work now. Thanks a bunch!
by timbecile
Mon Mar 12, 2018 11:04 pm
Forum: Dialogue System for Unity
Topic: If Click Node Then
Replies: 19
Views: 2603

Re: If Click Node Then

Hi Tony! I've been working with your Dialog system for a few months now. This was almost exactly what I was looking for! I need to check to see if a player has a specific variable set to a certain value (ie if they have a certain skill) to allow a dialog node to appear. How would I check a value in ...