Hi, would it be possible to setup an event that slowly restores your HP (+1hp/sec or something like that) while you stand next to it? Like a fireplace.
I setup a player touch restore hp event, but it doesnt work like I have it imagined. I want the player to be slowly restoring HP as he stands by the fire, not jogging around it cheesing HP points.
thanks
You could use yanfly's common event tiles script and make a parallel process common event so if your standing on the event turn the switch on and when you step off it shuts off. 🙂
or just make a parallel process event which checks the position of your character
and how would i do the 1hp per second thing? thanks btw
conditional branch I think and check the players HP if it does not equal max +1hp every 60 frames.
(I'm like half asleep so I'm thinking off the top of my head)
ok genius alert going off right now
thx guys, never used a loop before, cant wait
Shaz, I am formally requesting an English to English translation.
What you posted is much more genius than I am. Can you be a tad bit more descriptive at what I am looking at to help me understand it?
I make a parallel process event, and place what you wrote in there and ...?
I replace @event_id with ?
I tried it...
Script 'Game_Interpreter' line 1409: Argument Error occurred.
wrong number of arguments (0 for 1)
Ok, here's the issue (thanks btw) the fire is already an event that does something...Is that going to make this impossible?
The issue above^^ still applies, but it totally works 🙂 (I was having a line break issue, as you pointed out)
Actually, I just realized I can change the graphic to none and increase the tilesize and then place it next to the fireplace, FIXED! SOLVED
SHAZ FOR PRESIDENT!
Yeah, it sounds like you've figured it out anyway, but just in case ...
You're right - you can't have an event that does one thing on a parallel process and another thing when the player interacts with it. I think there IS a script (by Tsukihime) that will allow several event pages to be active at once, but to have a no-script solution, I'd just remove the sprite from the parallel process event, put it a tile higher than the fireplace event, and increase the range by one or two tiles.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Reopened for further troubleshooting
Yeah, that's exactly what I said in my PM. You're using the same switch to condition the page, and within the checks on the page. That script call says as soon as you are two or more tiles away, turn off the switch. I expect if your fire is conditioned by this switch as well, then as soon as you are 2 or more tiles away, the fire will also go out.
You need to have one switch for the page condition, but use another one in the event commands. The first one is saying "the fire is on and when the player is near, they will be warmed". The second one is saying "the player is near the fire and needs to be warmed RIGHT NOW".
Also, you don't need to have the first page. If the only page of an event has a condition, and that condition is not met, the event will just not display/run. As soon as the switch is turned on, the event will become active. So delete the first page.
Done and done, works perfectly. Nicely done, Shaz.