Search found 7 matches

by namelesswc
Fri Jan 19, 2018 5:03 pm
Forum: Dialogue System for Unity
Topic: Trigger custom method
Replies: 5
Views: 1221

Re: Trigger custom method

My idea was to create a scriptable object for that. You create a prefab game object which has a script like this: public class ItemGiver : MonoBehaviour { public void GiveItem(string itemName) { // Your code. } } In every dialogue entry there is a event section. Click on the "+" on it and ...
by namelesswc
Sun Jan 14, 2018 8:24 am
Forum: Dialogue System for Unity
Topic: Why add actors and conversants?
Replies: 1
Views: 940

Why add actors and conversants?

This is just a design question. When creating conversations inside the node editor we have to specify the actor and conversant for ever entry which makes sense to me. When creating a conversation trigger, I select the conversation it should trigger. Why do I also need to add a game object references...
by namelesswc
Sat Dec 23, 2017 9:39 am
Forum: Dialogue System for Unity
Topic: Keep track of variables
Replies: 5
Views: 1031

Re: Keep track of variables

Is there a onChangedEvent for variables one can subscribe to? E.g. I'm having a number variable "Money". In a script I want to get notified whenever the variable gets updated.
by namelesswc
Wed Dec 06, 2017 5:22 am
Forum: Dialogue System for Unity
Topic: Single line conversation without player click
Replies: 4
Views: 739

Re: Single line conversation without player click

If I untick Always Force Response Menu the conversation just skips every conversation entry in which the conversation actor speaks. I have tried setting up a new dialogue with the wizzard but the problem still remains.
by namelesswc
Thu Nov 23, 2017 10:31 am
Forum: Dialogue System for Unity
Topic: Local variables for each dialog?
Replies: 1
Views: 763

Local variables for each dialog?

Is there a way to have local variables for a dialogue instead of having all variables in the variables tab? My scenario: Node1 has links to Answer1 and Answer2. After Answer1 has been selected, it leads back to Node1 but now there is an additional Answer3 avaiable. Current solution: I create a bool ...
by namelesswc
Wed Nov 22, 2017 3:33 pm
Forum: Dialogue System for Unity
Topic: Reference actor by id?
Replies: 3
Views: 620

Re: Reference actor by id?

Thanks! I knew about display names but somehow haven't thought of this.
by namelesswc
Wed Nov 22, 2017 11:16 am
Forum: Dialogue System for Unity
Topic: Reference actor by id?
Replies: 3
Views: 620

Reference actor by id?

How can I get the actors name in a dialog by using the actors ID? Right now I am referencing a name like this [lua(Actor["Jimmy"].Name)], which doesn't make sense since I can just write Jimmy inside the text. If I change the name in the database everything would break.