Stun Event not working properly working

Niloc

Veteran
Veteran
Joined
Jul 27, 2020
Messages
71
Reaction score
12
First Language
French
Primarily Uses
Other
Hello. I've been trying to create a map ability in my game that will shoot a projectile and stun an ennemy.
I managed to make most of it work, however the duration of the stun is a bit special. I don't want a duration in time but idealy in steps.

However if I store the steps in a variable it will be a global variable, meaning that if the player want to stun 2 ennemies they will share the same stun time. Is it possible to make some "independant" variable without having to create one for each ennemy ?

My B plan is to just have unlimited duration of stun on an ennemy, however player can only stun 1 ennemy at a time.
I managed to make it work, however some bugs still happen sometimes where I can stun two ennemies and I don't really understand why that is happening.

Here's a showcase of what is happening :
Stun480.gif
As you can see here, it worked fine the first 2 times but bugged on the third, and it's quite random.


Here are screens of the events I use :

1596563136507.png
This is basically the projectile and when my player fires the projectile (I use YEP_CommonEvents to activate the common event) the switch 08 : Stun turns off.

1596563244924.png
And the ennemy once the B self switch is on (I use Galv's map projectile and when a projectile touch an event, their self switch B turn ON).
 
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,699
Reaction score
7,362
First Language
German
Primarily Uses
RMMV
look for a plugin that creates event-based self-variables.

I think there are a few, but the only one I know to exist is from Yanfly, and I don't know if it is one of his free plugins or if it has to be paid for.
 

Niloc

Veteran
Veteran
Joined
Jul 27, 2020
Messages
71
Reaction score
12
First Language
French
Primarily Uses
Other
Oh great, I do have all of Yanfly's plugins, could you give me the name of the plugin ?
 

Niloc

Veteran
Veteran
Joined
Jul 27, 2020
Messages
71
Reaction score
12
First Language
French
Primarily Uses
Other
Awesome, I'll look into it :)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Recent threads, and my very poor algorithm for my minimap plugin have made me face the fact that I need to review algorithms and such.

Going through Cracking the Coding Interview now. I am so excited.
Kes
I've seen a reference to a Community Lighting plugin for MZ, but cannot find it. Is it still in beta?

Todo:
Add fog of war
Add enemy indicators
Make window draggable
Optimise map drawing algorithm (5 seconds to load the map you see, so it's a... poo-poo algorithm)

Any suggestions? :kaoblush:
bleh studio hell job haha at least they like it didnt had time to do much laundry tho ;w;'....YES I DO AT LEAST TAKE A SHOWER everyday!
Ami
--- Food Ingredients ---

Hero: Since the Chef are in Hospital,we can't eat his Dish in 3 Days.
F.Mage: What we have to Eat?
M.Healer: Don't worry,we can Eat the Food Ingredients.
Hero & F.Mage
: Really?

(3 Days Later)

Chef: Hi,Guys. I'm Ba---
(Entire Party Collapse After Eat Raw Meat)
Chef: Wha...WHAT GOING ON HERE!!!!!!

Forum statistics

Threads
102,913
Messages
995,919
Members
134,363
Latest member
Wilsonliz
Top