The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: shintashi on June 17, 2010, 09:15:13 PM

Title: Call common event at level?
Post by: shintashi on June 17, 2010, 09:15:13 PM
1. is there a way to call/run specific common events when a character increases in level?

2.1 also, since some characters level at different times, is there a way to link the specific actor leveling to a specific common event?

2.2 like if Basil leveled, and you have a common event (proficiencies) that gives him a choice between learning
'weapon specialization' or 'endurance'

3.1 finally, if any of this is possible, is it also possible to have events called at level intervals, such as every other level or every 3 levels, or

3.2 is it possible to specify common events to fire-off at specific levels, such as level 27 or 83?


I'm asking because sometimes it seems to make more sense to have a 'run on level' option rather than hundreds of switches, parallel or autorun processing. 

i'm also hoping there's just a place somewhere in the script editor that I can toss some snippet that essentially is the same as 'run common event[123]' or whatever.
Title: Re: Call common event at level?
Post by: cozziekuns on June 17, 2010, 10:29:18 PM
If you end up doing this with scripts, your probably going to end up doing this with loads of variables (albeit not global ones), so it would probably just be better to event it.
Title: Re: Call common event at level?
Post by: Dundora on July 18, 2010, 07:20:35 PM
I'm pretty sure i can event this for you if you still want me to, it'l take some time though because I'm pretty lazy.
Title: Re: Call common event at level?
Post by: shintashi on July 18, 2010, 09:02:19 PM
that would be cool actually. I'm looking for a way to do it, since I want to trigger innate abilities unrelated to skill casting.
Title: Re: Call common event at level?
Post by: Deity on July 21, 2010, 11:12:15 AM
If I understood you correctly it's very simple.

First setup a variable to the level of the hero.
Now create a common event with a parallel process.
With a conditional branch just look if the variable is lower then the level of the hero. Now you know if the hero got a level or not.
In this condition you can build some new conditions like if the variable is equal 50 Brasil learn a new skill or can choose between 2 skills.
This can be done with all character and it keep the easiest way I think.

Deity