[Plugin] Ink interpreter

0 favourites
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • INK interpreter

    Hello guys !!! I'm a newbie to this forum thing so tell me if I'm making stuff I shouldn't do. It's also the first time I'm making my code public and an addon so it could/will be really buggy. So...

    What's INK ?

    INK is a open-source narrative script language by Inkle made to help writers working on interactive fiction.

    How can I write INK ?

    Just use the inky program here and learn the syntax here.

    How does the plugin work ?

    First thing you have to know : this plugin won't be able to read an .ink file, it can read only an JSON file made with inky. You can paste the JSON in the plugin properties or use an action to set the data.

    My code isn't working ! Just be sure to build the story via the action associated.

    I've build the story but the output is empty, sure this is a bug ! Nope, have you called beforehand the Continue action ? You must call it and then get your first output.

    The event when an INK variable has changed didn't trigger, WTF ??? You must beforehand use the trancking variable action.

    Why don't you make an example project ?

    I want you guys to try every functionality of this plugin and to give feedback so I can correct the bugs. If I give you a pre-made code you can use it always this way and I won't be able correct everything. Just test stuff ! If you really want somewhere to start with, just adapt this.

    If I use this in my game, do I have to give you credit ?

    Putting it simply, NOPE you don't have to. But I would absolutely love that you give me credit, or at least show what you've made with it below. Also it's not only my work this plugin : the source code is from y-lohse, I only made the adaptation for construct 2.

    ???????????

    Download link/GitHub Link

    By the way, sorry guys, I'm not an native english speaker/writer. So my english is pretty sh*ty.

  • It seems interesing, it might be useful for rpg games about decisions, I will try it if can callbacks when an user answered a choice

  • Thanks for this, I've got it working!

  • AlexFrancois Glad to help. Don't hesitate to tell me if you want a functionality that's not already embedded. It would be also awesome to see what you've made with my plugin.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just to make you guys know, I've updated the plugin and the links (no more dead links). You should download it.

  • CeyFun Thanks a lot! I'll be sure to sure to keep you updated on my progress. Is it possible to add conditions like On End or On Choice? If not it's not a big deal as this can be called with the compare two values function, just a thought. Thanks again

  • It would also be great if the plugin could detect when knots, stitches and labels are called by name. This would extremely useful as there doesn't seem to be another way of tracking the ink at the moment apart from variables and choices. I see you already have have a go to scene function, an action that tracks the scene and triggers when this succeeds would be awesome.

  • AlexFrancois Thanks for the replies but right now it's hard to track the knot you're in via the code, but as soon as there's a way that does not make me write a part of the engine (stay tuned here) I'll implement that (if I start to write something in the engine that'll go nuts). Also right now I'm still studying so there's not as much time as I would like to take to code, so that might take some time. Anyway as soon as I can, I'll see what I can do about it.

    PS : It's really hard for me to implement things that are not said here 'cause I don't have the time to read the code of the engine. Sorry but studies first ).

  • CeyFun Don't worry, what you've done so far is awesome, good luck with the studies!

    I think I'm going to use a variable that tracks the knot, it's not much extra work and will do the trick for now

  • Hello guys !!! I have work to do but you know what ? F*ck it I do what I want to do. So, to be quick, there's an update to the plugin : I added TAGS support ! If you want to know what it is you can always check out there for further explanation. AlexFrancois I hope that'll help out if you want to know in which knot you're in (on the GitHub there are some that have tagged all theirs but hopefully you won't have to). Also I've passed some hours to try to implement a more direct way to get the knot name but I didn't get the things working (I think that's caused by my using of the JS version of ink). Sorry about that (but now I kinda understand how the engine work so that's not for nothing).

    Anyway, hope that'll prove to be usefull !

  • Hello, I created a pull request to update the plugin code to use the latest inkjs (and Ink) version:

    https://github.com/CeyFun/Construct2Ink/pull/1

    it's just a simple update to runtime.js which has the latest inkjs code.

  • Just discovered this really useful. I've managed to get Construct to display the main text output, but I'm at a loss on how to get the engine to display the choices and have them function? I'm sure it's something super easy but I can't for the life of me figure it out.

    thanks!

  • Did anyone find out how to solve this problem?

    Is this plugin being worked on by anyone else? Would be really good to see the main team from Scirra give this some love. Ink is becoming a significant force in IF and it would massively increase the capabilities of C3 and its marketability.

  • Azuresama Psynaptik Sorry guys ! I had to work quite hard since I started learning electronics. I updated the plugin quickly and made a little test project to show briefly how it works. Here it is.

  • If i click the window button more then 3 times, i get this error.

    is it because its a demo project, or is it a bug?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)