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
745
Reaction score
336
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,707
Reaction score
2,807
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,707
Reaction score
2,807
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

Exploding Fruits and Rasaks Pixelfarm Assets | RPG Maker News #108

So ghosts can go through walls and stuff, and depending their type (according to fantasy media) they can or can't interact with objects to a certain degree...

So why they don't always fall through floors? Do they always float and sometimes simulate walking? If things go through them how can they hear/see? And why sometimes they have clothing? Do clothes die as well?
my birthday was yesterday...
i feel closer 2 being able 2 get a discount on the kids menu than i do being able to buy booze1627428008986.png
Getting to play your RM game on Steam Deck? How cool is that?
The best among us don't set out to be heroes. They don't want that job. They just set out to do the things nobody else wants to do. Because... someone has to do it.

Forum statistics

Threads
113,704
Messages
1,076,772
Members
147,726
Latest member
Switchboy0815
Top