Level Modification by Hero - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Archives (https://www.save-point.org/forum-105.html) +--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html) +---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html) +----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html) +------ Forum: Code Snippets & Others/Misc (https://www.save-point.org/forum-100.html) +------ Thread: Level Modification by Hero (/thread-6597.html) |
Level Modification by Hero - iPenguin - 06-09-2010 Level Modification by Hero by iPenguin Jun 9 2010 This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss. No support is given. If you are the owner of the thread, please contact administration. Hello, This is my first script and it is very short, I am not even sure if this is the right section. Function: Call this script before adding a character to the party (for their first time). It adjust the new character's initial level equal to the main Hero's level. You can specify who the main hero is, or even make it a relative of the character. It basically increases the level of a lower level character to a higher one; it won't modify anything if the new character is already higher, thus if you accidentally call it when it isn't the character's first time joining it won't do any harm other than some beefing up. This can easily be done via variables and such without the aid of scripts but I like the simplicity of only having to call one line of code with 2 numbers (actor ids) rather than all the variable modifications. How to use it: 1. Go to the event where the character joins. 2. Call Script 3. Type Mod.new(ACTOR ID of the Character Joining, ACTOR ID of the Main Hero or Higher Level char) 4. Add the party member 5. Heal the party The code Code: #Level Modification by Hero Script Adaption: I have some ideas how to make it more customizable but not completely sure how to go about it. Thus if you want to add your own, be my guest. My personal ideas were to add a configuration at the top where you can set an offset for how much the level should differ. Maybe you don't want it equal but one level below for example. I could also do that by adding a 3rd parameter for offset, but eh. |