Adding equipment use ability on a level up?

abcxyz123

Villager
Member
Joined
Sep 3, 2014
Messages
16
Reaction score
0
Primarily Uses
I have a character that I would like to have gain the ability to use a new type of equipment at a certain level.  However, I'm not sure how to make this happen (obviously, the general situation is that you can only get skills and stats at each level).

Can anyone suggest an easy way to accomplish this?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
you need a script to do this, as the features are the one option that can't be added by event commands.


There are already existing scripts for this, search for "dynamic features" in this forum or on the master script list.


One example how to use those scripts could be found here:


http://forums.rpgmakerweb.com/index.php?/topic/29984-ability-system-10/
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.


Yes, I wrote a Dynamic Features script. You could use that. But you'd need something else to determine when an actor gains a level, because it's at that point that you'd add the new feature.
 

SomaelCK

Lv 99 Simple Sheep
Veteran
Joined
Dec 12, 2012
Messages
663
Reaction score
1,058
First Language
Burmese
Primarily Uses
RMMV
I think you can use something like Kread EX's Conditioned Trait script.

You can set conditions (Lv, Switch and skill) to unlock the traits(Equipment type, passive abilities, etc) when the conditions are met, with that script.
 

abcxyz123

Villager
Member
Joined
Sep 3, 2014
Messages
16
Reaction score
0
Primarily Uses
Thanks for all the suggestions.  I'll look into some of these scripts and see what I can do.
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.

Yes, I wrote a Dynamic Features script. You could use that. But you'd need something else to determine when an actor gains a level, because it's at that point that you'd add the new feature.
well you don't even need a script to run lv checks, so your script would be perfect for the OP.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You're thinking of maybe a parallel process common event to check for levels? No - why use an event that's going to check 60 times per second for something that is only going to happen once every 15 minutes or so? In addition, you'd need 2 variables - one for the old level, one for the current level, to see if they've changed.


There IS a script that runs when a character gains a level. Why not just put an extra line in there to call a new method that does all the checking of who the actor is, what level they are now at, and what needs to happen when they hit that level? It would be run once, at the time the level changes.
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
You're thinking of maybe a parallel process common event to check for levels? No - why use an event that's going to check 60 times per second for something that is only going to happen once every 15 minutes or so? In addition, you'd need 2 variables - one for the old level, one for the current level, to see if they've changed.

There IS a script that runs when a character gains a level. Why not just put an extra line in there to call a new method that does all the checking of who the actor is, what level they are now at, and what needs to happen when they hit that level? It would be run once, at the time the level changes.
Lol no, I know better then that(a parallel proc running throughout the entire game when can be avoided, is not good game design), I was more along the lines of thinking using troop events to turn on a switch, so after battle a common event can run a check.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Yeah, you'd still need to save the level for each actor. Levels can also be gained outside of battle - though if the only way is via the event command it would be easy to add a call to the common event (or turn on the switch) at the same time.
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
Yeah, you'd still need to save the level for each actor. Levels can also be gained outside of battle - though if the only way is via the event command it would be easy to add a call to the common event (or turn on the switch) at the same time.
Well that's nothing hard, do that at the beginning of the game/when the character first joins.

Yea, that's not likely to be a problem, because for a char to gain xp outside of battle, It's gonna require some kind of event anyway.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
There are many ways for an actor to gain exp outside of battle without events.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Apart from other scripts? How?
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
There are many ways for an actor to gain exp outside of battle without events.
There aren't many other ways at all, as far as I can tell, the only other way(s), is through scripting.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
There aren't many other ways at all, as far as I can tell, the only other way(s), is through scripting.
Yes. Would your solution handle scripts that add exp?
 

abcxyz123

Villager
Member
Joined
Sep 3, 2014
Messages
16
Reaction score
0
Primarily Uses
There IS a script that runs when a character gains a level. Why not just put an extra line in there to call a new method that does all the checking of who the actor is, what level they are now at, and what needs to happen when they hit that level? It would be run once, at the time the level changes.
Intriguing.  Are you talking about the "Game_Actor" script, which has the "change_exp" section?

This option would allow me to put a line in the level up text after the battle "Billy Bob acquired the ability to use riding lawnmowers". [just an example]

I fear it is beyond my current skills, but I might be able to figure it out.
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
211
First Language
English
Primarily Uses
Yes. Would your solution handle scripts that add exp?
I don't know why someone would be scripting gaining xp on map, seems like you would be going way out of your way to script gaining xp on map, when the evented version would only take a few seconds tops to set up, however in your case, you can just add to the script to run a lv check every time the player gains xp instead, if you really want to do it through scripting.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Game_Actor.change_level
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top