So I've been trying to use scripts to create conversation trees, and I've been running into a bit more trouble. When using the regular "show text" event, the npc automatically faces the player character. How do I do that with a script?
Here is the code I have right now:
Here is the code I have right now:
Code:
var interpreterCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
// to be overridden by plugins
interpreterCommand.apply(this);
if (command === 'test') {
$gameMessage.setFaceImage('actor2', 3);
$gameMessage.add("\\<WordWrap> \\n<test> I'm talking! But this is a veeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeery long message, I wonder how it will fit." );
$gameMessage.setChoices([ 'ch0', 'ch1', 'ch2', 'cry', 'cancel'], 1, 4);
};
};