I have a state called Shock which caused an actor to take damage if they use a magical ability. I wanted to have an electrified skeleton effect when the state applies. I want to use the same skeleton for every actor.
I was thinking of using something like the BattleCore action sequence command MOTION: Motion Type, just supplying my own image, except that's not what the command does. I could make the actor invisible and apply an overlay for a second, but that seems fiddly. Is there a better way to do this? I have the VisuStella 8 Waves plugins.
Edit: the INJECT plugin command was the way to go. It works great inside the Common Event of the skill:
However, I want to to also play inside the Shock state when the actor casts a spell. He's the code of interest (the rest of it inside the <JS Post-Damage as User> works):
As suggested, I also tried "ActSeq_Inject_AnimationStart" instead of "INJECT: Animation Begin", but neither works.
Next I tried a simpler command, just to see if any of the BattleCore plugin commands could be called within a state notetag. Again, nothing:
Two questions:
1) Is there a reference for the command names to use as arguments for callCommand? I'm assuming the BattleCore documentation name is the one to use.
2) Can I even call a plugin from a state notetag, or does that screw up the context?
I was thinking of using something like the BattleCore action sequence command MOTION: Motion Type, just supplying my own image, except that's not what the command does. I could make the actor invisible and apply an overlay for a second, but that seems fiddly. Is there a better way to do this? I have the VisuStella 8 Waves plugins.
Edit: the INJECT plugin command was the way to go. It works great inside the Common Event of the skill:
Code:
◆Plugin Command:VisuMZ_1_BattleCore, INJECT: Animation Begin
:Plugin Command:Targets = ["current target"]
:Plugin Command:Filename = Shock
:Plugin Command:Horizontal Cells = 4
:Plugin Command:Vertical Cells = 1
:Plugin Command:Frame Delay = 16
:Plugin Command:Smooth Bitmap? = false
:Plugin Command:Offset =
:Plugin Command:Offset X = +0
:Plugin Command:Offset Y = +0
However, I want to to also play inside the Shock state when the actor casts a spell. He's the code of interest (the rest of it inside the <JS Post-Damage as User> works):
Code:
<JS Post-Damage as User>
PluginManager.callCommand(this, "VisuMZ_1_BattleCore", "INJECT: Animation Begin", {
Targets: ["user"],
Filename: "Shock",
HorizontalCells: "4",
VerticalCells: "1",
FrameDelay: "30",
SmoothBitmap: "false",
Offset: "",
OffsetX: "+0",
OffsetY: "+0"
});
<JS Post-Damage as User>
As suggested, I also tried "ActSeq_Inject_AnimationStart" instead of "INJECT: Animation Begin", but neither works.
Next I tried a simpler command, just to see if any of the BattleCore plugin commands could be called within a state notetag. Again, nothing:
Code:
PluginManager.callCommand(this, "VisuMZ_1_BattleCore", "ANIM: Show Animation", {
Targets: ["user"],
AnimationID: "65"
});
Two questions:
1) Is there a reference for the command names to use as arguments for callCommand? I'm assuming the BattleCore documentation name is the one to use.
2) Can I even call a plugin from a state notetag, or does that screw up the context?