- Joined
- Feb 7, 2016
- Messages
- 4
- Reaction score
- 6
- First Language
- German
- Primarily Uses
Hello RPG and Coding-fans,
So I acquired RPGM MV and I have mediocre skills in scripting events in RPGMMV and javascript. I couldn't quite grasp the correlation and I have some questions about that. Sorry if wrong category. What I got so far as a plugin.js :
Now the following questions:
Thanks in Advance
So I acquired RPGM MV and I have mediocre skills in scripting events in RPGMMV and javascript. I couldn't quite grasp the correlation and I have some questions about that. Sorry if wrong category. What I got so far as a plugin.js :
var commands = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args)
{
commands.call(this, command, args);
if(command == 'aCommandTriggeredByEvent')
{
anotherCommand();
}
}
Game_Interpreter.prototype.pluginCommand = function(command, args)
{
commands.call(this, command, args);
if(command == 'aCommandTriggeredByEvent')
{
anotherCommand();
}
}
Now the following questions:
- I want to control the movement of the character in the plugin. Do I need to copy-pasta the entire Game_CharacterBase.prototype or is there a way so I can do something like
Game_CharacterBase.prototype.moveStraight(2); //2 for down
in the anotherCommand() ?
The bit parameter Game_Map.prototype.checkPassage = function(x, y, bit) (the Help-page doenst say anything about the expected value of a parameter) ? -> the implementation into my plugin is kinda related to the first question.
Is it possible to create a if-clause in the event-scripting which evaluates to true/false returned by a plugin? If so, where (I guess -> Tab 4 script) and how (pluginCommand() ?)
Thanks in Advance
Last edited by a moderator:


