- Joined
- Jun 3, 2019
- Messages
- 11
- Reaction score
- 4
- First Language
- English
- Primarily Uses
- RMMV
I already have the base logic for my command to auto replace actor images at map load IF they are set to be able to run, but it'd be nice to have a plugin command to auto go over every event and re-assign them if either 1 the actor's sprite changed or 2 they were not active until after the map loaded.
I have a basic command made that runs a console.log but it doesn't seem to run at all?
Following is relevant parts snipped out, full file will be attached.
The command comes up as an option in the plugin command event, but it never seems tor run to begin with. I was using another plugin as reference and I am doing something very specific wrong.
I tried calling console.log next to where the assignActors function gets called, it doesn't run.
I tried putting it ouside the (()=>{ but it gets errors when I do that.
I have a basic command made that runs a console.log but it doesn't seem to run at all?
Following is relevant parts snipped out, full file will be attached.
JavaScript:
*@command assignActors
*@text Assign Actors
*@desc Update every event to match its actor.
//inside the (()=>{ section
PluginManager.registerCommand(DLemon.AA.pluginName,"assignActors",args=> {
DLemon.assignActors();
});
DLemon.assignActors = function(){
console.log("it runs");
}
I tried calling console.log next to where the assignActors function gets called, it doesn't run.
I tried putting it ouside the (()=>{ but it gets errors when I do that.