AcerOne's Forum Posts

  • 4 posts
  • Thank you for your response dop2000.

    I understand it's hard to give an accurate solution without seeing the full dialogue engine.

    However, your response and the C3 attachment has gotten close to a potential solution.

    Thank you.

  • Hello,

    I bought this really cool dialogue system for Construct 3.

    What I am trying to do is run a C3 block of code when certain line executed in the dialogue system.

    Basically, I am trying to execute a C3 block of code once the last line array of "dialogue" is shown using the "JSON compare value" attempting to compare it's "id" within the "dialogue" nested array. I looked at the JSON documentation online on how to execute this. Unfortunately, it is not working. Is there something I am doing wrong or I am missing?

    JSON file code:

    	{
    	"scene": [
    		{
    			"id": 0,
    			"dialogue": [
    				{
    					"id": 0,
    					"char": "npc0",
    					"voice": "",
    					"line": "This is scene 0."
    				},
    				{
    					"id": 1,
    					"char": "npc0",
    					"voice": "",
    					"line": "Here is a 2nd line."
    				},
    				{
    					"id": 2,
    					"char": "npc0",
    					"voice": "",
    					"line": "Here is a 3nd line."
    				}
    			]
    		}
    	]
    }
    

    C3 code block:

    Any Help is appreciated.

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You do not have permission to view this post

  • After about an hour spent on stackoverflow, I found the code that seems to work in C3.

    https://www.dropbox.com/s/is9gpb0gmod9zfu/SimulateKeyCodeJS.c3p?dl=0

    Thank you so much dop2000 I appreciate your help!

  • Hello,

    A few months ago, I decided to take the leap and move/re-build my platformer game from C2 to C3. I have an old dialogue engine from C2 that I am using in C3 that had relied on custom keycode events to be pressed to automatically execute to the next dialogue message within a condition block for cutscenes in my game. in C2 there is a plugin had I used called "SimulateKeyEvent" I noticed there seems to not be a feature/plugin simulating a custom key event in C3 from searching around the forums and the C3 plugins.

    Is there any way to achieve this event if I had to write a bit of JavaScript code to accomplished this?

    More specifically, the keycode event I would like to press down and up is keycode 88 (the X key).

  • 4 posts