Using Actor[Variable["Conversant"]] in the Conversations worked. IncRelationship is now working.
I have temporarily set it so that ActorName will be equal to gameObject.name. DisplayName is currently gameObject.name so that works for now.
Search found 22 matches
- Thu Sep 17, 2020 4:34 pm
- Forum: Dialogue System for Unity
- Topic: IncRelationship not working
- Replies: 13
- Views: 486
- Thu Sep 17, 2020 4:27 pm
- Forum: Dialogue System for Unity
- Topic: IncRelationship not working
- Replies: 13
- Views: 486
Re: IncRelationship not working
That returns Fred.
- Thu Sep 17, 2020 4:19 pm
- Forum: Dialogue System for Unity
- Topic: IncRelationship not working
- Replies: 13
- Views: 486
Re: IncRelationship not working
Yes the conversant is showing up as Fred.
And the DialogueActor Actor field is showing up as Fred as well. Relationship value still remains at InitialValue though.
And when I do return Variable["ConversantIndex"] in the console I still get "NPC".
And the DialogueActor Actor field is showing up as Fred as well. Relationship value still remains at InitialValue though.
And when I do return Variable["ConversantIndex"] in the console I still get "NPC".
- Thu Sep 17, 2020 4:07 pm
- Forum: Dialogue System for Unity
- Topic: IncRelationship not working
- Replies: 13
- Views: 486
Re: IncRelationship not working
Just did so. However, the output returned is still "NPC" rather than "Fred".
I know that "Fred" gets created as an actor at runtime, as the dialogue actor component that is added at runtime has three options- "Player", "NPC" and "Fred".
I know that "Fred" gets created as an actor at runtime, as the dialogue actor component that is added at runtime has three options- "Player", "NPC" and "Fred".
- Thu Sep 17, 2020 3:51 pm
- Forum: Dialogue System for Unity
- Topic: IncRelationship not working
- Replies: 13
- Views: 486
Re: IncRelationship not working
The Output when using return Variable["ConversantIndex"] in the Lua console during conversation is "NPC". That seems to be the built-in actor name. This means that for some reason "Fred" is not being assigned as the actor to the conversation even though I have a Dialogu...
- Wed Sep 16, 2020 5:59 pm
- Forum: Dialogue System for Unity
- Topic: IncRelationship not working
- Replies: 13
- Views: 486
Re: IncRelationship not working
Hello Tony, Thanks for the quick response, as usual. This Lua console component is extremely helpful. On testing it out, it does seem that the actor is being assigned correctly(the GetRelationship with ActorName as "Fred" for both the console and the dialogue actor script is working and re...
- Wed Sep 16, 2020 3:25 pm
- Forum: Dialogue System for Unity
- Topic: IncRelationship not working
- Replies: 13
- Views: 486
IncRelationship not working
Context- we have a C# script set up that 1)adds a dialogue actor component to a NPC and 2)assigns an initial relationship value between that actor and the player. This script was made because the NPCs in the game will be instantiated at runtime and randomly generated. For testing purposes, the NPC i...
- Sun Sep 06, 2020 8:26 am
- Forum: Dialogue System for Unity
- Topic: Passing Display Name of conversant as a string parameter to a registered function
- Replies: 1
- Views: 104
Passing Display Name of conversant as a string parameter to a registered function
Hello, I have a created a C# method and tried to register it in Lua. This method accepts a string parameter. A snippet of that is available below- public void OnEnable() { // Make the functions available to Lua: (Replace these lines with your own.) Lua.RegisterFunction("ExampleMethod", thi...
- Wed Aug 26, 2020 1:42 pm
- Forum: Dialogue System for Unity
- Topic: Registering methods for scripts that are attached to multiple game objects
- Replies: 3
- Views: 225
Re: Registering methods for scripts that are attached to multiple game objects
Ahh, I see. I will first attempt to use the built-in relationship functions. Here's an implementation that I have created for testing within a sample scene, based on the built-in relationship functions- public float relationValue; public float initialValue; void Start() { dialogueActor = gameObject....
- Tue Aug 25, 2020 6:21 pm
- Forum: Dialogue System for Unity
- Topic: Registering methods for scripts that are attached to multiple game objects
- Replies: 3
- Views: 225
Registering methods for scripts that are attached to multiple game objects
Hello, I was wondering about registering methods with Lua for scripts that are used in multiple gameobjects. If, for example, I wanted to create a relationship system where the player's relationship with the NPC is associated only with that NPC and not with all NPCs, then I would also like to use th...