The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Disco Viking on February 01, 2006, 09:29:01 AM

Title: Heal upon level up
Post by: Disco Viking on February 01, 2006, 09:29:01 AM
I assume it would be easy to make  it full heal a character when they level up. Just by adding a line or 2 to the level up script.
something like: actor.hp=actor.maxhp or something.

My question is, where is the level up script? And what would I need to add to it?
Title: Heal upon level up
Post by: blueXx on February 01, 2006, 11:06:46 AM
~_~ or you can make an event..
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg217.imageshack.us%2Fimg217%2F920%2Funtitled3eu2.png&hash=be08bc929bb22c019a42f8f0b936dc3dfd3bbc66)

one of those for any hero you are planning to use, and you can add a little animation or whatever else you want to happen on a level up
Title: Heal upon level up
Post by: Disco Viking on February 01, 2006, 12:57:19 PM
But then would it not have to follow them around?
Surely it's just easier to change the level up script.
Title: Heal upon level up
Post by: thatsmypie on February 01, 2006, 01:01:17 PM
Listen, you asked for help. You got your answer.
Why dont you just use that? It is SO much easier anyway.
Title: Heal upon level up
Post by: blueXx on February 01, 2006, 01:18:54 PM
follow them around?
all you need to do is to put this parallel event in each and every map
while it sounds a bit disturbing parallel processes are very usable and thus you can just copy paste it into another parallel in each map, for as long as wait commands are not included in the parallel for obvious reasons
Title: Heal upon level up
Post by: Disco Viking on February 01, 2006, 01:39:37 PM
It's alright.
I found the script with levelup in and did what I originally wanted to.
I call adding
actor.hp = actor.maxhp
actor.sp = actor.maxsp
to a script easier than adding an event to every single map.
Title: Heal upon level up
Post by: blueXx on February 01, 2006, 01:42:40 PM
got a point there...
nice work on the find , though i'd still use the para cause i hate scripts :P
Title: Heal upon level up
Post by: ShadowLink on February 02, 2006, 02:24:38 AM
Quote from: thatsmypieListen, you asked for help. You got your answer.
Why dont you just use that? It is SO much easier anyway.

>_> Because he specifically asked for a script, not an event. Blue was only suggesting the usage of an event.

And it may look easy, but the script is waaaay better because You don't have to add it to the new map constantly. With a script, it's already there.

So basically, stop giving others a hard time and just leave if you're going to have such a negative tone.
Title: Heal upon level up
Post by: Zeriab on February 02, 2006, 11:21:39 AM
What about using a common parallel process?
That would likewise eliminate the need of copying it to every map.
Title: Heal upon level up
Post by: blueXx on February 02, 2006, 11:37:18 AM
first time for everything
i only just realized why you keep saying common event zeriab
imagine how shocked i was to see that common events got triggers too  :O_o:

ok i feel stupid but hell thats gonna be alot of help so thanks
Title: Heal upon level up
Post by: dwarra on February 02, 2006, 05:27:12 PM
Okay you got your help, and even blueXx learnt something  :P
*LOCKED*