Need help on a bunch of complicated skills, can't figure out how to put them in.

So I have a bunch of skills I wanna add into my game, but these few genuinely have me stumped on how to add them in.
Please help me it's been two days and I can't find an answer even using google.

Skill 1
Basically it's a multiple repeat attack skill, but each time you hit someone, the chance of critting is higher
E.G : skill is named double attack, the second attack has a higher chance of crit, triple, yeah 👍

Skill 2
Same as skill 1, but you get 25% of your MP back if you kill an enemy wit hit 👍

Skill 3
A skill that charges for one turn, and then automatically uses the next turn to attack, then it lowers their maximum HP for the fight only 👍

Skill 4
An attack that does more damage if the user has any debuffs. 👍

Skill 5
A skill that lowers maximum MP by 20% to boost another ally's chance of critting by 45% for the rest of the battle. 👍

Dear god please help I've literally ripped out a few hairs because of this
I thought it was for rpg maker mv haha. I couldn't help you because I don't use vxace.
@Xaniro Yanfly's Tips & Tricks are for RPG Maker MV with the plugins he wrote for that engine.

This question is for RPG Maker VX Ace.
For skill 1, is it multiple attacks in one turn, or it's attack in one turn, then attack in the next, with higher chance of crit? From what you wrote I think it's the first one, but I'm not completely sure.

Skill 2 - not sure how to find out the hit killed the enemy, maybe someone else knows.

Skill 3 - there's a script for charging that I use, Casting time by Hime. If you want to use that and don't want to search, I can give a link. To lower maxHP, I'd add a state that goes away after the battle is over.

Skill 4 - if the debuffs are in the form of states, you could check if the user has the state and modify the damage formula, but you'd probably need a script for longer formulas. Or you could use a common event. I'd hazard to say that there's a script that would do this.

Skill 5 - I think this one could be doable in damage formula, if I understand it correctly. The skill will target an ally, whose crit chance will increase? Or the ally should be random?

Please give as much detail as possible so we can work with you :LZScool:
For skill 1, is it multiple attacks in one turn, or it's attack in one turn, then attack in the next, with higher chance of crit? From what you wrote I think it's the first one, but I'm not completely sure.

Skill 2 - not sure how to find out the hit killed the enemy, maybe someone else knows.

Skill 3 - there's a script for charging that I use, Casting time by Hime. If you want to use that and don't want to search, I can give a link. To lower maxHP, I'd add a state that goes away after the battle is over.

Skill 4 - if the debuffs are in the form of states, you could check if the user has the state and modify the damage formula, but you'd probably need a script for longer formulas. Or you could use a common event. I'd hazard to say that there's a script that would do this.

Skill 5 - I think this one could be doable in damage formula, if I understand it correctly. The skill will target an ally, whose crit chance will increase? Or the ally should be random?

Please give as much detail as possible so we can work with you :LZScool:
Hey, the first skill in more detail is like : the first attack has no increased chance of critting but the more repeats it has there's a higher chance of it critting.

Could you send me that script for charging? I went into the states tab and still can't understand how to do it.

The person who's crit chance will increase is the ally that it was used on.

In the meanwhile i'm gonna try doing what you said and see if I can figure out how to do it, thank you!
Skill 5 - is that lower max HP for the rest of the battle as well?
Skill 5 - is that lower max HP for the rest of the battle as well?
Yes
The link for Hime's script doesn't work for me right now, I'll send the script to you. Visit Hime's site for terms and conditions.

So let's try skill 1. I'm still not sure if it's one attack repeating more times in one turn, or one attack that can be used again in the following turn, but maybe it doesn't really matter.

You'll need a state which will increase the crit chance. Now, I'm not yet sure about how states work in Ace (will have to check it for my game, too), whether when you have a state that increases crit by 10% and you get that state again if it's now 20%, or it just gets replaced and it's still 10%. If someone can enlighten us here, I'd be grateful. Anyway, there are scripts that allow better state control, so you could look into it.

If the crit chance increase stacks, you'll need only one state, something like this:
crit increase.jpg



Then the skill can be set up like this:

skill 1.jpg


The a.add_state(N) in the damage formula adds state N(=the ID of your crit increase state) to the user of the skill. The formula after the ; then gives damage that will be done to the target.
It should also work if you set the scope to multiple enemies, since the formula should get evaluated for each.

I'm not sure how to check it does increase the chance, maybe you can make the state give 100% and see if the next attack is really critical.

Let me know if it seems like what you want and if you try it if it works. I have to go now, but will be back for the rest of the skills, unless someone else beats me to it.
The link for Hime's script doesn't work for me right now, I'll send the script to you. Visit Hime's site for terms and conditions.

So let's try skill 1. I'm still not sure if it's one attack repeating more times in one turn, or one attack that can be used again in the following turn, but maybe it doesn't really matter.

You'll need a state which will increase the crit chance. Now, I'm not yet sure about how states work in Ace (will have to check it for my game, too), whether when you have a state that increases crit by 10% and you get that state again if it's now 20%, or it just gets replaced and it's still 10%. If someone can enlighten us here, I'd be grateful. Anyway, there are scripts that allow better state control, so you could look into it.

If the crit chance increase stacks, you'll need only one state, something like this:
View attachment 312803


Then the skill can be set up like this:

View attachment 312804

The a.add_state(N) in the damage formula adds state N(=the ID of your crit increase state) to the user of the skill. The formula after the ; then gives damage that will be done to the target.
It should also work if you set the scope to multiple enemies, since the formula should get evaluated for each.

I'm not sure how to check it does increase the chance, maybe you can make the state give 100% and see if the next attack is really critical.

Let me know if it seems like what you want and if you try it if it works. I have to go now, but will be back for the rest of the skills, unless someone else beats me to it.
Thanks for the reply, going to do this immediately. :LZScheeze:

Thanks for the reply, going to do this immediately. :LZScheeze:
Did some testing on it, for some reason it does no damage?
I tried switching the order of them around, like a.atk * 4 first and then a.addstat, I didn't forget the ; of course. Then I tried to remove the b.def * 2, and still does no damage. Is there a reason for this or is it just cause I'm doing something wrong?
Skill 5
Create a state for the increase in CRI
1722081982871.png


Create a second state which reduces MHP to 80%
1722082115856.png


Note: both states have the 'Remove at battle end' box checked.

For the sake of the example we will say that MHP Forfeit is state #126 and CRI boost is state #127

Create a skill with the damage formula as shown, inflicting the CRI boost as shown. You will need, obviously, to add in all the other elements i.e. skill cost, skill type, hit type etc. As there is no second element in the damage formula I don't think it needs a semi-colon, but it's been so long since I used VXAce that I could be wrong. You will have to test that yourself.

1722082527017.png
Hm, it gives the damage for me. Can you take a screenshot of the skill and post it here?
Hm, it gives the damage for me. Can you take a screenshot of the skill and post it here?
I just woke up and when I tried to get a picture that it didn't work for me.... It just suddenly worked??

Skill 5
Create a state for the increase in CRI
View attachment 312811

Create a second state which reduces MHP to 80%
View attachment 312812

Note: both states have the 'Remove at battle end' box checked.

For the sake of the example we will say that MHP Forfeit is state #126 and CRI boost is state #127

Create a skill with the damage formula as shown, inflicting the CRI boost as shown. You will need, obviously, to add in all the other elements i.e. skill cost, skill type, hit type etc. As there is no second element in the damage formula I don't think it needs a semi-colon, but it's been so long since I used VXAce that I could be wrong. You will have to test that yourself.

View attachment 312813

Thank you for the help with this one, will be trying out soon! :LZSwink:
Skill 3 should be doable like skill 1, with the state added through the damage formula (and with the script).

I'm not sure about the debuffs and the hit killing the enemy (skills 2 and 4) :LZSsad:
The link for Hime's script doesn't work for me right now, I'll send the script to you. Visit Hime's site for terms and conditions.

So let's try skill 1. I'm still not sure if it's one attack repeating more times in one turn, or one attack that can be used again in the following turn, but maybe it doesn't really matter.

You'll need a state which will increase the crit chance. Now, I'm not yet sure about how states work in Ace (will have to check it for my game, too), whether when you have a state that increases crit by 10% and you get that state again if it's now 20%, or it just gets replaced and it's still 10%. If someone can enlighten us here, I'd be grateful. Anyway, there are scripts that allow better state control, so you could look into it.

If the crit chance increase stacks, you'll need only one state, something like this:
View attachment 312803


Then the skill can be set up like this:

View attachment 312804

The a.add_state(N) in the damage formula adds state N(=the ID of your crit increase state) to the user of the skill. The formula after the ; then gives damage that will be done to the target.
It should also work if you set the scope to multiple enemies, since the formula should get evaluated for each.

I'm not sure how to check it does increase the chance, maybe you can make the state give 100% and see if the next attack is really critical.

Let me know if it seems like what you want and if you try it if it works. I have to go now, but will be back for the rest of the skills, unless someone else beats me to it.
:LZScheeze:Hey! Just tried this out, exactly how I envisioned it worked. Thanks for the help with this one.

Skill 3 should be doable like skill 1, with the state added through the damage formula (and with the script).

I'm not sure about the debuffs and the hit killing the enemy (skills 2 and 4) :LZSsad:
For skill 2, I just decided to make it so that it regens 7 MP per hit instead of the 25% on enemy death. Still not sure on what to do on skill 4.
For skill 2, I think you should be able to do something like this:
Code:
c = FORMULA ; c >= b.hp ? a.mp += a.mmp / 4 : c
Just replace "FORMULA" with your actual formula.

The only thing about this is that is doesn't account for crits, so if the enemy has 100 HP, and the skill would normally do 70, you won't get the MP if it KO's the enemy with a crit. Same thing applies with variance.

As for skill 4, you can use this:
Code:
a.buffs[param_id] <0 ? better_formula : weak_formula
but that's only checking for one debuff, unfortunately. I have no idea if you'd be able to check all debuffs at once.


Edit: I got skill 4 working! Here's the formula:
Code:
c = 1;a.buffs.each { |x| x<0 ? c = 2 : 0};c * (FORMULA)
Just add in your formula and change the "c = 2" if you want. You could even change the "c = 2" to c += 1 if you wanted the skill to deal increasing damage the more debuffs the user has.

Edit 2: skill 4 requires this scriptlet to work:
Code:
class Game_BattlerBase
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_reader   :buffs
end
Just add the code into an empty slot below materials and above main.
For skill 2, I think you should be able to do something like this:
Code:
c = FORMULA ; c >= b.hp ? a.mp += a.mmp / 4 : c
Just replace "FORMULA" with your actual formula.

The only thing about this is that is doesn't account for crits, so if the enemy has 100 HP, and the skill would normally do 70, you won't get the MP if it KO's the enemy with a crit. Same thing applies with variance.

As for skill 4, you can use this:
Code:
a.buffs[param_id] <0 ? better_formula : weak_formula
but that's only checking for one debuff, unfortunately. I have no idea if you'd be able to check all debuffs at once.


Edit: I got skill 4 working! Here's the formula:
Code:
c = 1;a.buffs.each { |x| x<0 ? c = 2 : 0};c * (FORMULA)
Just add in your formula and change the "c = 2" if you want. You could even change the "c = 2" to c += 1 if you wanted the skill to deal increasing damage the more debuffs the user has.
Yo! Thanks for the solutions to 2 and 4, absolutely wouldn't have ever figured this out by myself.
How did you add the formula to skill 4 without crashing the game? I pasted the exact thing, but with c+= 1 on it, then put a.atk * 5 on it like this.
image.png
@The_Green You added an extra semicolon in the damage formula:
Extra Semicolon.png

Just remove that and you should be good to go.
@The_Green You added an extra semicolon in the damage formula:
View attachment 313053
Just remove that and you should be good to go.
Removed it, now it doesn't do any damage and says "NULL"
@The_Green Just add this as a new script below Materials and above Main:
Code:
class Game_BattlerBase
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_reader   :buffs
end
It only worked for me because one of the scripts I had installed happened to have this.
@The_Green Just add this as a new script below Materials and above Main:
Code:
class Game_BattlerBase
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_reader   :buffs
end
It only worked for me because one of the scripts I had installed happened to have this.
Just worked, thanks for the help!

Original thread: https://forums.rpgmakerweb.com/threads/need-help-on-a-bunch-of-complicated-skills-cant-figure-out-how-to-put-them-in.170636/