The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: TommYJET on February 03, 2006, 07:22:56 PM

Title: Little question for Disco Viking or any pro
Post by: TommYJET on February 03, 2006, 07:22:56 PM
After reading the topic "Heal upon level up" that you (Disco Viking) have made there is a question that I want to ask you... But the topic is locked... So I'm making a new one!

Old Topic: http://www.crankeye.com/forums/viewtopic.php?t=5808

Disco Viking
Quote
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.

I don't know where is the levelup script. Can you tell me where is it?
Hey thanx a lot guys!!!
Title: Little question for Disco Viking or any pro
Post by: Disco Viking on February 03, 2006, 10:32:45 PM
It's in "Scene_Battle 2".
HIt ctrl+f and search for "level", you should get something like this.
"last_level = actor.level"

Just below that there will be "if actor.level > last_level"
anything within that if statement will be carried out upon levelling.
Title: Little question for Disco Viking or any pro
Post by: TommYJET on February 04, 2006, 12:04:12 AM
Thanx for your help I really appreciate it. Thank you!