Increase Variable on Level Up?

Status
Not open for further replies.

sbloom85

Veteran
Veteran
Joined
Nov 28, 2014
Messages
59
Reaction score
13
First Language
English
Primarily Uses
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.
 

MushroomCake28

KAMO Studio
Staff member
Global Mod
Joined
Nov 18, 2015
Messages
2,264
Reaction score
3,598
First Language
English
Primarily Uses
RMMV
You 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.

I've moved this thread to Plugin Request. Please be sure to post your threads in the correct forum next time. Thank you.

 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
652
Reaction score
188
First Language
Javascript
Primarily Uses
RMMV
I'm looking for a way to increase a variable when an actor levels up.
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)​
 
Last edited:

sbloom85

Veteran
Veteran
Joined
Nov 28, 2014
Messages
59
Reaction score
13
First Language
English
Primarily Uses
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.
 

MushroomCake28

KAMO Studio
Staff member
Global Mod
Joined
Nov 18, 2015
Messages
2,264
Reaction score
3,598
First Language
English
Primarily Uses
RMMV
@sbloom85 Great! Does everything work as you want? Is your thread fully answered?
 

MushroomCake28

KAMO Studio
Staff member
Global Mod
Joined
Nov 18, 2015
Messages
2,264
Reaction score
3,598
First Language
English
Primarily Uses
RMMV
Alright no worries, no rush haha.
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
652
Reaction score
188
First Language
Javascript
Primarily Uses
RMMV
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.
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)
that would call common event #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)
That would increase variable 1 by 5 and call common event #1 :)
 

sbloom85

Veteran
Veteran
Joined
Nov 28, 2014
Messages
59
Reaction score
13
First Language
English
Primarily Uses
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)​
Well, I got it installed and set up. However, when I try to use the common event function, I keep getting this error.
 

Attachments

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
652
Reaction score
188
First Language
Javascript
Primarily Uses
RMMV
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)
... I mearly simplified it down to commonEvent(n) :)
 

MushroomCake28

KAMO Studio
Staff member
Global Mod
Joined
Nov 18, 2015
Messages
2,264
Reaction score
3,598
First Language
English
Primarily Uses
RMMV

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.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

You know, I sometimes ponder if working on the story and details is more necessary than the game itself. Its... technically work, just not direct.

Like for me specifically I never stop evolving the story based on what avenues I can approach in gameplay and then I get anxious thinking "hey good thing I thought about that now instead of later". Repeat ad nauseam.
World Of Final Fantasy Livestream~!
(Ft. Kaliga)
So my office building has 8 individually rented offices in it; 3 of which are social workers and 2 are marriage therapists... Unsurprisingly it always sound very angry out there. Glad I have my own private entrance. :LZSexcite: :thumbsup-right:
I wonder if there's ever been an art challenge that involves drawing faces from the generator.

Forum statistics

Threads
94,376
Messages
920,426
Members
124,146
Latest member
Ritea
Top