Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by JanusKirin

I'm working on making an RPG using Impact, but I'm not sure how to go about storing conversation data. I expect to have a lot of text, and would prefer to manage it from a separate file rather than as entities (or properties of entities) in Weltmeister.

What I'd like to do is make little JavaScript files that create a JSON variable and load that into one ConversationManager entity that I place in Weltmeister. Is it safe to use jQuery AJAX for this, or is there a way to load complicated variables into an entity without cluttering up the editor?

1 decade ago by Philip

Don't know if this is the right way, but I would just make a plugin for that. It would look like this:

ig.module('plugins.conversationData')
.defines(function() {

  conversationData = { /* Data here */ };

});

Don't forget to put the plugin in the required function of your main.js.

1 decade ago by Graphikos

If you did want to pull in JSON via AJAX via jQuery it shouldn't be a problem. Impact plays nice with jQuery.

1 decade ago by JanusKirin

Good to know. Thanks, guys!
Page 1 of 1
« first « previous next › last »