Recoil Damage

Status
Not open for further replies.

Coolconor98

Villager
Member
Joined
Jun 5, 2015
Messages
17
Reaction score
0
First Language
English
Primarily Uses
How can I make it so that when someone attacks they get hit by recoil damage?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,367
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
Please 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...
 

Coolconor98

Villager
Member
Joined
Jun 5, 2015
Messages
17
Reaction score
0
First Language
English
Primarily Uses
Please 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.
 

Vox Novus

Knight of Whispers
Veteran
Joined
Mar 18, 2013
Messages
3,293
Reaction score
2,473
First Language
English
Primarily Uses
N/A
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.
 

Seriel

Veteran
Veteran
Joined
Aug 16, 2014
Messages
3,013
Reaction score
504
First Language
English
Primarily Uses
Other
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%).
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
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

Call a common event from the skill
Skills can't call common events.
 
Last edited by a moderator:

Seriel

Veteran
Veteran
Joined
Aug 16, 2014
Messages
3,013
Reaction score
504
First Language
English
Primarily Uses
Other
Actually, I wouldn't use a common event, I would put it straight into the damage formula.
How would that work? I thought the damage formula only affected the Target.
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@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?
 

Seriel

Veteran
Veteran
Joined
Aug 16, 2014
Messages
3,013
Reaction score
504
First Language
English
Primarily Uses
Other
@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.
Yeah, I see it.

Also, I don't see how your suggestion would work.  How did you intend the skill to call the CE?
Like this: (Features)

 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
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.
 
Last edited by a moderator:

Seriel

Veteran
Veteran
Joined
Aug 16, 2014
Messages
3,013
Reaction score
504
First Language
English
Primarily Uses
Other
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 :p

@Coolconor98: Sorry for the Semi-Topic Hijack. I suppose it was sort of relevant though :p
 

Vox Novus

Knight of Whispers
Veteran
Joined
Mar 18, 2013
Messages
3,293
Reaction score
2,473
First Language
English
Primarily Uses
N/A
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%).
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.
 
Joined
Dec 2, 2020
Messages
3
Reaction score
1
First Language
English
Primarily Uses
RMVXA
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)
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,225
First Language
Dutch
Primarily Uses
RMXP

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.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,090
Members
137,587
Latest member
Usagiis
Top