How can I make it so that when someone attacks they get hit by recoil damage?
Recoil Damage
RPG Maker VXAce SupportPlease describe what is "recoil damage" for you. For me it would be pushing the target back, but because the default battle system has no positions it would make no changes to move a battler...
I mean that it does damage to the user (the recoil) and damage to the foe.
Call a common event from the skill that you are using to inflict damage then in that common event have it change the actor's hp that used the damaging skill.
I'm sorry if it seems like i'm hijacking this Topic, but I was wondering how to use that method to decrease an Actor's HP by a percent (Like 25%).
Actually, I wouldn't use a common event, I would put it straight into the damage formula.
EDIT
Somehow this got posted without giving an example of how to do that.
This is for giving damage of 25% of the user's HP
c=your_damage_formula;a.hp-=0.25;c
If you only wanted to do e.g. 10%, then change the 0.25 to 0.1
Where it says your_damage_formula that's where you put your a.atk * 4 - b.def * 2 or whatever you are using.
EDIT AGAIN
Wait a minute
Skills can't call common events.
EDIT
Somehow this got posted without giving an example of how to do that.
This is for giving damage of 25% of the user's HP
c=your_damage_formula;a.hp-=0.25;c
If you only wanted to do e.g. 10%, then change the 0.25 to 0.1
Where it says your_damage_formula that's where you put your a.atk * 4 - b.def * 2 or whatever you are using.
EDIT AGAIN
Wait a minute
Skills can't call common events.
How would that work? I thought the damage formula only affected the Target.
@Jackus
I think perhaps you posted before I went back in and edited it - somehow I managed to hit post before putting in an example.
And as you can see, it's easy. The damage formula can be used to do lots of things concerning the user, not just the target - add states etc. etc.
Also, I don't see how your suggestion would work. How did you intend the skill to call the CE?
I think perhaps you posted before I went back in and edited it - somehow I managed to hit post before putting in an example.
And as you can see, it's easy. The damage formula can be used to do lots of things concerning the user, not just the target - add states etc. etc.
Also, I don't see how your suggestion would work. How did you intend the skill to call the CE?
True, I forgot that. Also, it wasn't your suggestion it was Vox Novus. I'm having one of those days. I was actually thinking of equipment, not skills.
It's alright, everyone has one of those days 🙂
And yeah, the Equipment features and Skills 'effects' are very similar, I confuse them a lot 😛
@Coolconor98: Sorry for the Semi-Topic Hijack. I suppose it was sort of relevant though 😛
Thinking of this without testing it out; You can set an actors hp as a variable when you call the common event then change that variable by dividing that variable by the constant 4 Then lastly change the actors hp by the divided variable.
Im so sprry for necroposting but I would like say that there was an easier way to do this.... On Rpg Maker Vx Ace, The above poster, Kea. "c=your_damage_formula;a.hp-=0.25;c"
Your formula only subtracts 0.25 point of damage not 25% of the HP. to do this, I just put a.hp/4 instead of 0.25 and it worked. I am not knowlesgable enough to use common events but... Um yeah. (Awkwardly disappears into oblvion)
Your formula only subtracts 0.25 point of damage not 25% of the HP. to do this, I just put a.hp/4 instead of 0.25 and it worked. I am not knowlesgable enough to use common events but... Um yeah. (Awkwardly disappears into oblvion)
AntagonizedSun, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/recoil-damage.40816/