RMMV How to make battles "attack" command work with Yanfly Instant cast & Skill Cooldowns

boulops1

Veteran
Veteran
Joined
Dec 6, 2020
Messages
64
Reaction score
1
First Language
english
Primarily Uses
RMMV
Heya!

im trying to get it so that all my characters basic attack functions in battle are instant cast and depending on what weapon they have equipped it will put the attack function on a cooldown for however many turns.

when i try it i am able to make the actors "attack" instant cast but after they perform it, it says I can still use attack despite putting a CD on it and when i select it the game crashes.

on the Great Axe weapon I have the following.


<Instant Skill: 1>
<Skill 1 Cooldown: 3>

i thought it would of greyed out the "attack" command or put a CD icon over the word but it still allows me to select it.


im currently working with Yanfly's instant cast and skill cooldown plugins.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
41,927
Reaction score
14,556
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,961
Reaction score
2,239
First Language
English
Primarily Uses
RMMV
Heya!

im trying to get it so that all my characters basic attack functions in battle are instant cast and depending on what weapon they have equipped it will put the attack function on a cooldown for however many turns.

when i try it i am able to make the actors "attack" instant cast but after they perform it, it says I can still use attack despite putting a CD on it and when i select it the game crashes.

on the Great Axe weapon I have the following.


<Instant Skill: 1>
<Skill 1 Cooldown: 3>

i thought it would of greyed out the "attack" command or put a CD icon over the word but it still allows me to select it.


im currently working with Yanfly's instant cast and skill cooldown plugins.
The plugin doesn't work like that with weapons: they can lower or extend a skill's existing cooldown, but they can't add a cooldown themselves.

What you want to do instead is give the Attack skill a "default" cooldown that'll align with your standard weapon speed, then have non-standard-speed weaponry add to or subtract from the cooldown by however many turns you wish. So for example if your standard cooldown was 2 turns, and the Great Axe is meant to be slower, you'd do <Skill 1 Cooldown: +1> to make it 3.
 

boulops1

Veteran
Veteran
Joined
Dec 6, 2020
Messages
64
Reaction score
1
First Language
english
Primarily Uses
RMMV
@Trihan

oh okay that's good to know!

do you know how i can implement this while still having the attack function in the battle menu as an instant cast.. i want people to be able to use the attack when its ready but also use a skill in the same turn.

i tried adding this to the attack skill and slower weapon respectively and it didn't work. the attack is still an instant cast but doesn't put it it on cooldown or stop me from using attack again:

1615247081187.png attack skill - even if i put the cooldown to 1 it doesn't do anything.

1615247184526.png great axe (1 swing per 3 turns)



thanks
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,961
Reaction score
2,239
First Language
English
Primarily Uses
RMMV
It's <Cooldown: x> for the skill itself. Also, if you don't want Attack to have a default cooldown at all, you don't need a notetag on it and just <Skill 1 Cooldown: +x> will work on the weapon.

You should make sure that you've also removed "1" from the "Cooldown Bypass" parameter in the plugin parameters, as by default Attack is prevented from going on cooldown at all regardless of notetags.
 

boulops1

Veteran
Veteran
Joined
Dec 6, 2020
Messages
64
Reaction score
1
First Language
english
Primarily Uses
RMMV
@Trihan

the cooldown bypass!! your so smart Trihan!

that made it so the attack will go grey and on cooldown until the weapon attack cooldown is over. w00t WooT
 

Latest Threads

Latest Posts

Latest Profile Posts

Doing RPG Maker News #18 | Moghunter is Back, Encrypt MV/MZ Plugins, Isometric Geometric Tiles
Unironically, no joke, after consideration and self-reflection, I have decided that the best thing for my creative/workflow/commitment problems is to spend EVEN MOAR hours a day playing videogames than I normally do. (Micro-thread)
FINALLY got my weather system implemented. Who needs a black mage when you have a weathermancer! :p
Oh boy! COVID19 lockdown again! Good thing I already never go outside! :D
This one is less showing off and more 'I really don't know how I feel about this one.' The 'child' sprite template I made either works great or doesn't at times. (She is a fairy, so I made her small).
Morgan.png

Forum statistics

Threads
110,640
Messages
1,054,886
Members
143,766
Latest member
systemdisco
Top