The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: magsinfin on January 15, 2008, 06:57:52 AM

Title: Healing when levelling up after battle
Post by: magsinfin on January 15, 2008, 06:57:52 AM
Ok, searched all over scripts and help, but didn't find anything for this.  Basically, I'm looking for something that will heal my characters after battle if they leveled up.  How exactly can this be done, if at all?  I'm guessing via variables, but I wouldn't know how to call the necessary amount of exp for that specific character (unless there is an escape character I don't know about, similar to the \n
Title: Re: Healing when levelling up after battle
Post by: Brady on January 15, 2008, 09:22:28 AM
Set parralel process on a conditional that looks for character at a certain level, then set it to complete healing of that character then switch it off after that or jump to a label.
Problem with that is, you'd need to make this event for each level for each character in the game you want to be affected by this....
Big downside i know, but it's an option....
Title: Re: Healing when levelling up after battle
Post by: magsinfin on January 15, 2008, 03:24:34 PM
That is exactly what I was afraid of.  As far as where it goes, my guess would be in Common Events?
Title: Re: Healing when levelling up after battle
Post by: InvaderZim on January 16, 2008, 04:25:39 AM
The level for each character is stored in a variable somewhere, right (if this is XP and scripting is involved)? Make a variable for each character (lets name it 'Old Level) that compares its value to the current character level. After the character levels, and those 2 values don't match, have an event heal the character. Then set the 'Old Level' equal to the current level.
Title: Re: Healing when levelling up after battle
Post by: Brady on January 17, 2008, 09:25:35 AM
Really?  I guess it may be, but i'm on 2k3 and the only visible level option is ''level is
Title: Re: Healing when levelling up after battle
Post by: InvaderZim on January 17, 2008, 04:41:31 PM
Well, XP automatically stores such things are char positions in party (in script) if I remember correctly, so I would assume something as basic as a level would be stored as well.

Or you could also do a custom leveling system, OP. That way everytime the char levels you can also call a healing event  ;D.

Btw, where do you see that command in 2k3 Brady, because I can't find it.
Title: Re: Healing when levelling up after battle
Post by: djkdjl on January 17, 2008, 07:07:15 PM
1)  At the start of each battle,,add a variable called "[010]HERO 1 Level"

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg31.picoodle.com%2Fimg%2Fimg31%2F4%2F1%2F17%2Ff_LevelUpAftem_9f7c9f2.jpg&hash=617cb11326a8bc7ba34a5378e5f78c050d4bbaca)

2)  Turn the switch "[010]LEVEL Checker" ON

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg03.picoodle.com%2Fimg%2Fimg03%2F4%2F1%2F17%2Ff_LevelUpAftem_f20a9e4.jpg&hash=f084d8cdb8a9758206061b1680d17805c041002a)

--------------------------------
3)  Under Common Events,,make a new Common Event,,call it LEVEL CHECKER.  Add a variable called "[011]Hero 1 Level After"

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg32.picoodle.com%2Fimg%2Fimg32%2F4%2F1%2F17%2Ff_LevelUpAftem_992836f.jpg&hash=ed1b9dffba7ac04d21c0e494b9883841cc02cffa)

4)  Use a CONDITIONAL BRANCH as follows:

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg26.picoodle.com%2Fimg%2Fimg26%2F4%2F1%2F17%2Ff_LevelUpAftem_7f1d55a.jpg&hash=d95720353323a468639faf879572b7798015dccb)

5)  Finish up your Common Event to make it look like this:

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg02.picoodle.com%2Fimg%2Fimg02%2F4%2F1%2F17%2Ff_LevelUpAftem_971309a.jpg&hash=db1ccf67a83130275224e1886a0d287a2877154c)

*Note* If you have MORE than one hero,,then follow this instruction,,adding variables and conditional branches for HERO 2.
Title: Re: Healing when levelling up after battle
Post by: tSwitch on January 18, 2008, 07:46:17 AM
alternatively you could go to www.chaosproject.co.nr
and grab blizzard's "Tons of Addons" script
then activate "Heal on Level Up"
Title: Re: Healing when levelling up after battle
Post by: Kokowam on January 18, 2008, 12:08:38 PM
In addition, his "Tons of Addons" have a ton of addons! :D Seriously. They're good.