State that changes default attack

Morizel

Veteran
Veteran
Joined
Sep 28, 2018
Messages
96
Reaction score
6
First Language
Russian
Primarily Uses
RMMV
I want to make a state that changes default attack. Actor in that state can not deal damage, only heal targets.
How to change default attack in MV?
 

Solar_Flare

Veteran
Veteran
Joined
Jun 6, 2020
Messages
533
Reaction score
235
First Language
English
Primarily Uses
RMMV
It's not entirely clear what you want, but here are two possible answers.

If you want the state to make the actor unable to attack, but still use skills, add a "Seal Skill" trait and select the default attack skill.

If you want the state to make the target heal when it attacks, you might want to investigate the WeaponSkill Kadokawa plugin. With some programming skills it could be modified to make a state alter the attack skill.
 

Blair Pendragon

Veteran
Veteran
Joined
Jul 15, 2012
Messages
99
Reaction score
44
First Language
English
Primarily Uses
as said above, if seal skill isnt what you're looking for, but you want their basic attack to heal, you can also put that in the damage formula. if (!b.isStateAffected(id)) a.atk*4-b.def*2; else b.gainHp(a.atk*4-b.def*2)
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,531
Reaction score
1,424
First Language
English
Primarily Uses
RMMV
If I might toot my own horn, there's a plugin for this in my signature, AES_CommandControl. After installing it, making this state is as simple as a note tag: <Replace Attack: 12345> Replace 12345 with the id of the healing skill that you want to replace basic attack with and that should do it.
 

Morizel

Veteran
Veteran
Joined
Sep 28, 2018
Messages
96
Reaction score
6
First Language
Russian
Primarily Uses
RMMV
If you want the state to make the actor unable to attack, but still use skills, add a "Seal Skill" trait and select the default attack skill.
I need to make state that do not allows to use skills and forces to attack allies.
If you want the state to make the target heal when it attacks, you might want to investigate the WeaponSkill Kadokawa plugin. With some programming skills it could be modified to make a state alter the attack skill.
WeaponSkill works only with weapons, no?
 

Solar_Flare

Veteran
Veteran
Joined
Jun 6, 2020
Messages
533
Reaction score
235
First Language
English
Primarily Uses
RMMV
WeaponSkill works only with weapons, no?
Yes, but a similar approach could be used to make a state switch the weapon skill. That's why that option requires some programming skills - you'd have to modify the plugin.

When an actor has a restriction forcing it to attack, it always uses its basic attack, so the approach of changing the attack skill (either by modifying WeaponSkill or by using Aesica's plugin) should work for what you want.
 

Morizel

Veteran
Veteran
Joined
Sep 28, 2018
Messages
96
Reaction score
6
First Language
Russian
Primarily Uses
RMMV
Yes, but a similar approach could be used to make a state switch the weapon skill. That's why that option requires some programming skills - you'd have to modify the plugin.

When an actor has a restriction forcing it to attack, it always uses its basic attack, so the approach of changing the attack skill (either by modifying WeaponSkill or by using Aesica's plugin) should work for what you want.
Okay, I understand.
I will try AES_CommandControl. I hope that there will be no errors because I am also using FROG_SignatureSkill plugin (to add Wait command).
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,531
Reaction score
1,424
First Language
English
Primarily Uses
RMMV
If it doesn't work, let me know because there's a possible workaround for such a conflict.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top