Make a skill that makes other skills apply a state

Zioxboy

Villager
Member
Joined
Aug 18, 2020
Messages
7
Reaction score
2
First Language
Spanish
Primarily Uses
RMMV
Hello, I need some help over here.

I need a "Poison Blade" skill that makes the next attack or skill cause Poison.

Tried adding a state with an "Attack State: Poison 100%" trait but that only applies to basic attacks. I need the state to apply Poison to basic attacks AND skills.

Is this possible? Any help will be highly appreciated; thanks in advance lovely people.
 

NeptuneTron

The Salticid Scholar of the North
Veteran
Joined
Jan 13, 2018
Messages
40
Reaction score
25
First Language
English
Primarily Uses
RMMV
So if I've got this right, you want this skill to add poison damage onto whatever whatever the next move made by the player is, right?

So for a hypothetical turn, it might look something like this.

Turn 1: Hector uses "Poison Blade". Poison damage will be added to next turn.
Turn 1: Enemy attacks, doing z damage.
Turn 2: Hector uses "Normal Attack". Normal attack does x damage, + y Poison Damage from last turn's "Poison blade".

Have I got that right?
 

Zioxboy

Villager
Member
Joined
Aug 18, 2020
Messages
7
Reaction score
2
First Language
Spanish
Primarily Uses
RMMV
No, it's not like that, sorry if I didn't explain myself well. Let me explain it with the Silence state.

Turn 1: Hector uses "Silence Blade". Next turn, Skills and basic attacks cause Silence state.
Turn 1: Enemy attacks, doing z damage.
Turn 2: Hector uses "Heavy Cut" Skill. Heavy Cut makes x damage, + applies Silence state from last turn's "Silence Blade".

I hope that makes it clearer.
 

NeptuneTron

The Salticid Scholar of the North
Veteran
Joined
Jan 13, 2018
Messages
40
Reaction score
25
First Language
English
Primarily Uses
RMMV
OK, same principle, slightly different implementation. Potentially easier implementation.

It's been a long time since I worked with attack things, and it was never really my forte, but I'll look into it for you tomorrow. Hopefully by then somebody with more knowledge in the area will have gotten back to you with a viable solution, and my findings will be unnecessary and inelegant in comparison.
 

Zioxboy

Villager
Member
Joined
Aug 18, 2020
Messages
7
Reaction score
2
First Language
Spanish
Primarily Uses
RMMV
Any slightest help will be appreciated at this point so many thanks!
 

rechronicle

Mystvaldia
Veteran
Joined
Oct 30, 2013
Messages
137
Reaction score
109
First Language
Bahasa
Primarily Uses
RMMV
Make the weapon adds state to the wearer. Then put this in all of your skill formula boxes that you wish to be affected by Poison Blade (I bet you want to exclude the defensive/healing skill):

if (a.isStateAffected('stateIdA')) b.addState('stateIdB'); 0

stateIdA = PoisonBlade (state that you gain by wearing the blade)
stateIdB = Poison (the actual Poison state that damage the target)

Not tested yet tho, I hope I get the formula right.
 

Soulrender

Jack Of All Trades
Veteran
Joined
Jan 12, 2019
Messages
839
Reaction score
467
First Language
Poland
Primarily Uses
RMMV
If Im correct, author wants to achieve this:
Hero has 3 skills:
Skill A
Skill B
Skill C

Skill B and Skill C by default deals regular damage, but using skill A will trigger method that in next turn Skill B and Skill C besides of default damage also will apply a state to a target. Simple (I'm going shopping so in 1hour, maybe two, I can give you a nice solution, unless someone will be faster,because I gave clear explanation - judging by post title)

Edit:
@Zioxboy - give me more details about your skills so I can do some coding :)
 
Last edited:

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,523
Reaction score
1,415
First Language
English
Primarily Uses
RMMV
Tried adding a state with an "Attack State: Poison 100%" trait but that only applies to basic attacks. I need the state to apply Poison to basic attacks AND skills.
If you want attack states to apply to physical attack skills like they do with the basic attack, you need to set those skills to apply the "Normal Attack" state (100% usually). If you do that, then your poisoned blade (as well as any other weapon or skill based effect that applies a state to targets) will work with every physical damage skill.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Make the weapon adds state to the wearer. Then put this in all of your skill formula boxes that you wish to be affected by Poison Blade (I bet you want to exclude the defensive/healing skill):

if (a.isStateAffected('stateIdA')) b.addState('stateIdB'); 0

stateIdA = PoisonBlade (state that you gain by wearing the blade)
stateIdB = Poison (the actual Poison state that damage the target)

Not tested yet tho, I hope I get the formula right.
I would go with this approach.
States are designed to be temporary, which is perfect for this use case.

I would combine it with formula effects plugin so that you can write the formula in the note tag


You could move the logic into a separate function defined in a plugin so that you don't need to duplicate the logic across every applicable skill.
 

Zioxboy

Villager
Member
Joined
Aug 18, 2020
Messages
7
Reaction score
2
First Language
Spanish
Primarily Uses
RMMV
Hello everyone, thank you very much for your responses!

If you want attack states to apply to physical attack skills like they do with the basic attack, you need to set those skills to apply the "Normal Attack" state (100% usually). If you do that, then your poisoned blade (as well as any other weapon or skill based effect that applies a state to targets) will work with every physical damage skill.
That worked wonders! That was exactly what I was trying to do, thank you very much! I didn't see that trait at all lol. What exactly does Add State: Normal Attack 100% do? Will this increase the damage of the skills ? I prefer not. Or just adds the Basic Attack states to skills?

Again, many thanks; problem solved.
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,523
Reaction score
1,415
First Language
English
Primarily Uses
RMMV
It won't increase damage or otherwise modify anything beyond allowing the skill to apply weapon states if it connects with the target. It's basically just a way to say, "this skill is utilizing the weapon, and should apply the weapon's states" vs "this skill does not use the weapon, so the weapon's states don't matter"
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top