CloudDealer's Recent Forum Activity

  • 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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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 still cant seem to figure it out--

  • Here's the file with the fixed JSON.

    (REMOVED FOR PRIVACY)

  • Completely fixed the deceleration, used some code from the Demonoire example, helped tons!

CloudDealer's avatar

CloudDealer

Member since 7 Mar, 2021

Twitter
CloudDealer has 1 followers

Connect with CloudDealer