Video není dostupné.
Omlouváme se.
Making Dialogue with Inky and Unity Tutorial
Vložit
- čas přidán 11. 06. 2020
- Ever wonder how to convey your characters' thoughts or have your game talk to your player? In this tutorial, we take a look into a script tool called Inky from Inklestudios and write up a small dialogue for Phoenix wright in Unity!
**Resources**
Ink by Inklestudios: www.inklestudi...
Brackey's Dialogue System: • How to make a Dialogue...
Github: github.com/Ris...
Join the discord group: / discord
Catch me Live on Twitch: / the_phantom3
*Disclaimer: The characters and music involved in this level do not belong to me. All of them belong to their respectful owner(s). Usually Nintendo.
Thanks for this- very clear walkthrough of an Ink setup in unity!
Great tutorial. Btw, not sure if I missed it, but what did you put in your "Selectable" script? You add it to the choice game objects at 10:38
In the selectable script, essentially it acts like a small temporarily data container with a method called Decide() which refers back to the SetDecision() function underneath. This is a way to dynamically create and attach something to the button. Honestly, it can be done better and maybe more properly with ScriptableObjects. In the script, it just looks like this:
public class Selectable : MonoBehaviour
{
public object element;
public void Decide()
{
DialogueManager.SetDecision(element);
}
}
the object element is created with the intention to store the actual choice option object there. Since its an object types, it can store other datatypes as well like int, string, etc. If the person selects that, it will pass that stored choice in element back to the Dialogue Manager via SetDecision().
Hope this helps!
Much appreciated!
Thank you for the video, this was a very simple tutorial and was very easy to follow.
Mind if I ask if you have found a solution to this problem...
I have a global VAR in ink that if true reveals more questions.
The idea is to achieve something in the game and when returning to an NPC now have that new questions available.
It works if the story run from the beginning. But not so well if I load a story progress.
What I'm looking for is away of refreshing the current load of a stroy to be able to access any new questions.
Does this make sense?
Thanks for you time.
And for sharing your video.
Thank you! This is a great tutorial!
Great tutorial, probably one of my favorites ever, but I have a problem. Unity keeps throwing "NullReferenceException: Object reference not set to an instance of an object". The only difference between my script and yours is mine has no reference to the animations, otherwise it's copy paste. I'm a programming noob, so maybe it's simple, but I've looked it up and can't find the issue
Edit: Nevermind, I fixed my issue. For anyone in the same situation make sure your ink fine is compiled into a text asset (I thought turning it into a json did this already but for some reason doing it in unity instead is the only thing that worked. Again wonderful tutorial exactly what I wanted
"Inky knows those are comment" - I am not afraid of mass surveillance but THAT SCARES ME
Thanks, good tutorial :)
You're welcome! :D
Great video thanks!
this is amazing thank you!
Great vid, just earned yourself a sub :)
Great tutorial, would love to see you teaching Yarn Spinner too =) there aren't any good tutorials out there about Yarne
Es genial, deberias de hacer mas
and if i have more actor of my story? how i connect my response with a actor with the dialogue of another actor?
Thanks!
can u explain how to setup the showchoices?
after next dialogue it doesn't show up anymore
and how to move a side duplicate button?
How do i start making a vn in unity? Is the learning curve too hard?
It really depends on the scope of your vn idea. Have to think it really through and what exactly you want to put into the visual novel game. Personally, I don't think its too hard but I can see it being tricky with syncing up animation and doing some effects on time.
There may be some beginner or easy basic visual novel series out there that you can follow. Use it as a base and try to expand upon it to your liking. Hope this helps.
I think you should just buy naninovel from the assetstore and go on with your game. not cheap, but its worth it .
Check for Fungus in assets store
How do I put in a point system using inky?
In the c# script is there a way to take the index of the line from the dialogue? Or any other way to save it?
Hey, very good tutorial, but what did you put in your CharacterScript.cs ?
you can look at the script on github. The link is in the description and the file is Ink-with-Unity-2019.3/Assets/CharacterScript.cs
What about conditionals or stat checks
Is there any way to enumerate tags so that I don't have to parse a string each time?
afaik your AdvanceFromDecision is never reached.
7;25, you just jump into a script without explaining what it is or how to get it...
Does it work with 3d?
Yo can you recreate the day system of pikmin in unity
If anyone doesn't want to waste their time instantiating buttons and destroying them, simply remove the listener, or else inky will complain nonstop
temp.GetComponent().onClick.RemoveAllListeners();