Need Help With an Electric Barrier

PixelBoy360

Veteran
Veteran
Joined
Apr 11, 2015
Messages
38
Reaction score
2
First Language
English
Hey guys, I'm trying to make a mechanic where if you attack an enemy after it uses the spell "Thunder Dome" you automatically get stunned for x amount of turns. Unfortunately I don't know where to start with making such a spell.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,969
Reaction score
13,603
First Language
English
Primarily Uses
RMMV
What version of RPG Maker are you using?

You need to have the spell apply a state that stuns the enemy, and you can say how many turns.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,290
Reaction score
11,696
First Language
English
Primarily Uses
RMVXA
'Game Mechanics Design' is for looking at aspects of gameplay at a more conceptual level. "How do I...?" (Implementation) questions belong in the Support forum for the engine you are using. Please post which engine that is so that this thread can be moved.
 

PixelBoy360

Veteran
Veteran
Joined
Apr 11, 2015
Messages
38
Reaction score
2
First Language
English
'Game Mechanics Design' is for looking at aspects of gameplay at a more conceptual level. "How do I...?" (Implementation) questions belong in the Support forum for the engine you are using. Please post which engine that is so that this thread can be moved.
RPG MAKER MV
 

PixelBoy360

Veteran
Veteran
Joined
Apr 11, 2015
Messages
38
Reaction score
2
First Language
English
What version of RPG Maker are you using?

You need to have the spell apply a state that stuns the enemy, and you can say how many turns.
But I want the attacker get stunned after the spell is applied to the user, so the attacker only gets stunned if they attack the user.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,290
Reaction score
11,696
First Language
English
Primarily Uses
RMVXA
[MOVE]RPG Maker MV[/MOVE]
@PixelBoy360 It would be helpful if you put that info on your Profile Page so that it showed up under your avatar, then people will know in future.
Also, if you want to quote more than one person, use the Multiquote button, otherwise the forum software automatically creates a new post for each quote.
Thanks.
 

belatucadrus

Veteran
Veteran
Joined
Mar 6, 2017
Messages
109
Reaction score
15
First Language
french
Primarily Uses
RMMV
But I want the attacker get stunned after the spell is applied to the user, so the attacker only gets stunned if they attack the user.
You can do it with Yanfly's Weapon Animation plugin

Here's how I would do it :

The enemy casts "Thunder dome" and gains the state "Electric barrier". If I understand, any physical damage dealt to the enemy causes the attacker to be stunned.

In the state effect :

Sp-Parameter Physical Damage Rate 0% (only if you want the enemy to take no damage in addition of counterattacking and stunning the attacker)
Ex-Parameter Counterattack Rate 100% (The enemy will ALWAYS stun anyone trying to attack it)
Attack State Rate : Stunned 100%

With YEP Weapon Animation you can put that in the notetags :


<Weapon Animation: x>

It will temporary replace the basic attack animation (which plays while counterattacking) by one of your choice, like a thunder animation.

I tested it, and it works !
 

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

Latest Threads

Latest Posts

Latest Profile Posts

--Turn Based Battles--

Hero:
Look, it is Minotaur!
M. Knight: Let's go attack it!
Hero: Wait, no, it is just standing there!!
HUD Display: It is M. Knight's turn.
(M. Knight attacks Minotaur)
HUD Display: It is Minotaur's turn.
Hero: (Facepalms) Now look what you did! You made the Minotaur attack us!
Randomly deciding to create some tombs/sarcophagi last minute is probably not the best choice in a timed game jam...
There are only a few days left in our Spooktober Spooktacular Game Jam! Hope you are working hard to get your game in!
Where do i have to play Heisei Pistol Show the same creator that made Re: Kinder Parun
I really get the feeling I should be doing regular YouTube videos whenever I make something cool in my game, instead of waiting for massive changes. But not going to lie... I always feel like it's never quite enough to merit an update, until it's a drastic change. :kaoswt:

Forum statistics

Threads
104,558
Messages
1,007,125
Members
136,040
Latest member
Nicoh
Top