Search found 13 matches

by lupiyo
Sat May 06, 2023 3:29 pm
Forum: Dialogue System for Unity
Topic: Bark condition always false
Replies: 3
Views: 163

Re: Bark condition always false

in the same operation as the Block On False Link, or are you calling GetEnemyRace() yourself, such as in another script? Sorry, I didn't get the question. About the possibility of having some trash or space, I changed the return value as "Wolf", in hard code and this worked. But when i re...
by lupiyo
Sat May 06, 2023 1:18 pm
Forum: Dialogue System for Unity
Topic: Bark condition always false
Replies: 3
Views: 163

Bark condition always false

Hello! I'm having trouble on get the true condition to bark works, i'm using a custom function (which is registered on lua) that return a string with the enemy type, which is Wolf. In the dialog inspector, the condition to trigger the bark is always false, even if the type is Wolf. I managed to show...
by lupiyo
Tue Apr 04, 2023 5:11 am
Forum: Dialogue System for Unity
Topic: Problem with barks
Replies: 3
Views: 193

Re: Problem with barks

Thank you Tony! I have commented the onDisable and now it is finem in parts haha I have another problem now, i wrote the register on enable in the enemy class, and for some reason, it gives me the same value when Lua execute it. #region Lua public string GetEnemyRace() { Debug.Log("Start: "...
by lupiyo
Mon Apr 03, 2023 9:16 pm
Forum: Dialogue System for Unity
Topic: Problem with barks
Replies: 3
Views: 193

Problem with barks

Hello! It is me again Tony, sorry. I tried to implement bark system, but i'm getting an error. At first it worked great! The tutorial is good. But I did something that broke. I can assure you that the function is registered. I changed the debug level to information and it appears there. I'm getting ...
by lupiyo
Wed Mar 29, 2023 9:38 pm
Forum: Dialogue System for Unity
Topic: Problems with my project 2D
Replies: 6
Views: 305

Re: Problems with my project 2D

I just read on documentation class called Npc, which gives gold, etc. Is there a problem creating another class called NPC? Can I use the same, in this case? I was looking for how to reward a player after quest. Can i create a function, on my own script and registrate it on the lua? and call it in t...
by lupiyo
Wed Mar 29, 2023 9:26 pm
Forum: Dialogue System for Unity
Topic: Problems with my project 2D
Replies: 6
Views: 305

Re: Problems with my project 2D

Hello, thanks for the tip! I wrote that but now i get an error: Failed to call function OnUse of class DialogueSystemTrigger Calling function OnUse with no parameters but the function requires 1. UnityEngine.Component:BroadcastMessage (string) NPC:OnMouseDown () (at Assets/Scripts/NPC/NPC.cs:9) Unit...
by lupiyo
Wed Mar 29, 2023 9:25 pm
Forum: Dialogue System for Unity
Topic: Custom inventory and quest items count
Replies: 8
Views: 298

Re: Custom inventory and quest items count

Thanks! Work perfect.
by lupiyo
Tue Mar 28, 2023 9:59 pm
Forum: Dialogue System for Unity
Topic: Problems with my project 2D
Replies: 6
Views: 305

Re: Problems with my project 2D

If you're using the Selector component (with Select At set to Mouse Position) and you don't see the selector UI at the top of the screen when you hover over the NPC, make sure you've enabled 2D support. In case of a android game, if I hold the touch it is the same as mouse over? My game is for mobi...
by lupiyo
Tue Mar 28, 2023 9:56 pm
Forum: Dialogue System for Unity
Topic: Custom inventory and quest items count
Replies: 8
Views: 298

Re: Custom inventory and quest items count

Many thanks! Sorry if my questions are very simple hahah, but I figured out that I could change drom double to int whenever i wanted. But everything is working now, thank you!! I have another problem, on the crate example you put the "update" in a Dialog system trigger on the crate, and ad...
by lupiyo
Tue Mar 28, 2023 8:34 pm
Forum: Dialogue System for Unity
Topic: Custom inventory and quest items count
Replies: 8
Views: 298

Re: Custom inventory and quest items count

There are 2 prints almost indentical, just the condition changes and this is a doubt that i have, which sintax is correct, please?