Repel Effect

Hi.

I want to create a repel item. I actually already did by using state effect. But I wanted it to be a little different so I'm trying to remake it.

I want to make it's effect to stop after N steps. But I want this N to be a random number.

I know how to create a variable that sets a random number but I don't know how to make the countdown be related to steps.

Could you help me ?
You can create a common event for the item. It adds the state and binds a third common event in parallel process. This checks how many steps the player has currently given. Then just make a condition that checks how many steps the player has given for the state to be removed. I did not test, but I believe it works. If you get confused I'll make a demo as soon as possible.
You can create a common event for the item. It adds the state and binds a third common event in parallel process. This checks how many steps the player has currently given. Then just make a condition that checks how many steps the player has given for the state to be removed. I did not test, but I believe it works. If you get confused I'll make a demo as soon as possible.

Hi, I`m from Brazil too lol

Yes I`m trying to do it with a common event.

I know that a variable can be set as Steps (setting Variable/Game Data/Others/Steps), but I don`t know how to make the countdown for the repel effect reach 0 using this.
It is easier for you to check in ascending order than to check a counter. For example, for the item, create a common event that only applies the state to repel enemies and turn a Switch on for another common event. The linked event can be something like this:
Spoiler
5FscBRu.png
Note that the only thing I'm checking is how many steps the player will have taken from the start of the event for the state to end.
@Faherya Thanks 4 the reply

In my case I don't want to set a fix number for the steps needed for the repel effect to end.

So I just need replace your "Variable 0002: Effect = 50" for this, right ?

Spoiler
sqjma1.jpg
Exactly, it will also work without problems.
@Faherya

Hi friend, I totally worked.

I also added a text before the Label to say how many steps the effect will last. Thanks 4 the help.
Nice, you are welcome. 😀

Original thread: https://forums.rpgmakerweb.com/threads/repel-effect.92250/