Help with passive ability done with events (Restoring HP by walking)

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
339
Reaction score
17
First Language
Portuguese
Primarily Uses
RMVXA
Good morning / afternoon / evening

13.06.2021_00.37.40_REC.png

Above is the parallel process event that i'm using for an ability where an actor restores hp gradually by walking on the map, but it doesn't seem to work properly as the actor was getting their hp restored constantly without even moving an inch.

can anyone tell me what i'm doing wrong?

Any help is appreciated.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
753
Reaction score
339
First Language
english
Primarily Uses
RMMV
it because its only checking if they have done more then 25 steps total. that would happen pretty much right at the start of the game. that variable is never under 25 after that point.
you could try
control variable: step = steps
if variable steps >= next tick
> change HP
> control variable: next tick = steps + 25
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,713
Reaction score
2,830
First Language
English
Primarily Uses
RMMZ
What you actually want to be checking is whether steps % 25 is equal to 0.
 

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
339
Reaction score
17
First Language
Portuguese
Primarily Uses
RMVXA
Someone helped me achieve it on the discord server. Here is their solution:

13.06.2021_01.19.00_REC.png

This is what worked for me.

Thank you, everyone.
 
Last edited:

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,713
Reaction score
2,830
First Language
English
Primarily Uses
RMMZ
is next tick a new variable? or something that is actually in the database for me to use?
It's the name of the variable he's telling you to set in the last line.
 

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
339
Reaction score
17
First Language
Portuguese
Primarily Uses
RMVXA
Someone helped me achieve it on the discord server. Here is their solution:

13.06.2021_01.19.00_REC.png

This is what worked for me.

Thank you, everyone.
 

Latest Threads

Latest Posts

Latest Profile Posts

bandicam 2021-08-05 15-10-37-143.png
Configuration menu and icons test
Tiamat-86 wrote on Andar's profile.
tfw just trying to help and get yelled at. /comfort
:LZSooo: Gotcha Gotcha Games... have launched an official discord server for RPG Maker. :LZSooo:

doodled a poring today :kaoluv:
uc
Fire-Emblem Style Level Up System, Boost on Class Change, And Animated Arrows | RPG Maker News #115

Forum statistics

Threads
113,949
Messages
1,078,611
Members
148,054
Latest member
TippingTheScales
Top