As the title suggests, I'm looking for a way to increase a variable when an actor levels up. IE: I have a mage, when she levels up, gains X amount of points she can spend to improve an elemental attribute to unlock a more powerful spell.
Increase Variable on Level Up?
JS Plugin RequestsYou would need to have a plugin for that, even if it's a rather small plugin. There's maybe an existing plugin that would allow you to achieve what you want, but I'll have to let others help you on that end.
Anyways, I'm moving this to Javascript Requests.
Anyways, I'm moving this to Javascript Requests.
I've moved this thread to Plugin Request. Thank you.
Made a plugin for you 🙂
CT_Bolt's LevelUpEx Plugin: Click Here to Download
Simply put the following into the script parameter via the plugin manager: adjustVariable(id, amount)
Example: adjustVariable(1, 5)
Notes: "Helper" functions for easy use. See below.
setVariable(id, amount)
adjustVariable(id, amount)
commonEvent(id)
Oh sweet, thanks! I wasn't expecting a plugin to be made so soon, let alone a plugin at all. I was kinda thinking it could be done under common events.
@sbloom85 Great! Does everything work as you want? Is your thread fully answered?
I just got out of bed and downloaded it.
Alright no worries, no rush haha.
No prob. let me know how it goes. Should work out nicely for ya. 🙂
Oh and if you want to use a common event along with or instead of you can do that with:
Code:
commonEvent(1)
If you want to adjust the variable and run a common event you could also do that with:
Code:
adjustVariable(1, 5); commonEvent(1)
Well, I got it installed and set up. However, when I try to use the common event function, I keep getting this error.
Oh woops forgot to upload that version... lmao
Sorry 'bout that. Uploaded newest now. 🙂
You could also use any other script such as ones found here: RMMV Script Calls: Click Here to View
Standard script to run a common event is:
Code:
$gameTemp.reserveCommonEvent(n)
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/increase-variable-on-level-up.117476/