I still can't seem to figure it out.
NPCSINTERACT is a family, and NPCID is a variable. Is it possible to call that into my string based JSON dialogue system?
You do not have permission to view this post
Figured it out! Thanks for the help guys!
Works perfectly now.. But whenever I get to the last line of dialogue, it doesn't disappear/end? Everything should work..?
I ran a JSON validator, and it said that it should work. So, there's a good chance it isn't the JSON, and there's a problem within the visual code. I've looked through my visual code, and can't seem to find the problem.
like this?
MY CODE
{ "scene": [ { "id": 0, "dialogs": [ { "type": "end", "nextscene": 1 } ] }, { "id": 1, "dialogs": [{ "char": "Maura", "type": "line", "line": "Well.. Looky here--" }, { "char": "Maura", "type": "line", "line": "You got the text box working!" }, { "char": "Maura", "type": "line", "line": "Hard work pays off.. Huh?" } ] }, { "type": "end" } ] }
THEIR CODE
{ "scene": [ { "id": 0, "dialogs": [ { "type": "end", "nextscene": 3 } ] }, { "id": 3, "dialogs": [ { "char": "Jessie", "type": "line", "line": "Hi there, looks like you're in another one of these dialogue system tests." }, { "char": "Jessie", "type": "line", "line": "There have been so many of these test projects now." }, { "char": "Jessie", "type": "question", "question": "Are you bored of these projects yet? I sure am.", "nbanswers": 3, "answer0": "Of course not!", "nextscene0": 7, "answer1": "Maybe a little.", "nextscene1": 8, "answer2": "I am so done with this.", "nextscene2": 9 } ] },
I may not know much about JSON script, but have you traced back to see where the script code was working at in your project or wasn't working at? That could be a good place to start if you know where it was working at. Edit: I found this tutorial that might could help you with your chat box. https://www.construct.net/en/tutorials/talking-npcs-213
I may not know much about JSON script, but have you traced back to see where the script code was working at in your project or wasn't working at? That could be a good place to start if you know where it was working at.
Edit: I found this tutorial that might could help you with your chat box.
https://www.construct.net/en/tutorials/talking-npcs-213
I still cant seem to figure it out--
Develop games in your browser. Powerful, performant & highly capable.
Here's the file with the fixed JSON.
(REMOVED FOR PRIVACY)
Completely fixed the deceleration, used some code from the Demonoire example, helped tons!
I fixed the json, but-- The text box still wont appear.
You could probably set up some instance variables that change based on the line of sight. I didn't get to prototype it, so I have no idea. Let me know if the variable idea works!
My dialogue box won't show up, I've tried everything. I really need help here--
Project Download:
(I really can't progress if this isn't fixed, I'll take any help I can get.)
Tutorial I copied from:
construct.net/en/tutorials/branching-dialogue-using-json-2395