Locked Equipment Upgrading dynamically?

Gespenst

Warper
Member
Joined
Aug 2, 2017
Messages
4
Reaction score
0
First Language
English
Primarily Uses
RMXP
So with my current project I'm trying to make all my characters be as unique as possible. One of my actors I created was to have a 'Legendary Weapon' that only he can equip and that its locked so that it cannot be unequipped. The feature I wanted to make is that since his weapon is Legendary, its something that upgrades dynamically every 10th level. So in short;

Actor Lvl 1 - 9 = Legendary Weapon Tier 1 +20ATK
Actor Lvl 10 - 19 = Legendary Weapon Tier 2 +50ATK
Actor Lvl 20 - 29 = Legendary Weapon Tier 3 +94ATK

and so on.
 

Jaiden

RMXP Fiend
Veteran
Joined
Sep 27, 2015
Messages
127
Reaction score
168
First Language
English
Primarily Uses
RMXP
A "weapon that levels up" is likely something you won't be able to do without scripting, so I suggest you start to familiarize yourself with the RGSS system and Ruby if you haven't already.

If you want to lock an item to the actor without writing a script, you could do so by having classes specific to an actor, and then checking off items and skills specific to those actors within the classes. For example, if you wanted two actors to both be "Lancers", you could, in essence, create two "Lancer" classes, each for the two different actors, so that they could each have unique items/abilities but appear to be the same class.

As for the dynamic weapons, I can't really see any other way of doing this besides a script. You would need to find a way to check what level the actor was (perhaps on level-up at the end of battle), and then replace the weapon with a different ID for each tier (I think modifying the stats for a single weapon individually is more complicated, and this would allow you more flexibility than just a single stat).

There are actually two variables built into RPG Maker XP that handle this, and they're both in the "Game_Actor" class; actor.level and actor.weapon_id.

So, you could create some sort of method to check this when the actor levels up. Something along the lines of:
Code:
def get_weapon_tier(actor)

case actor.level
     when 1..9
         return 1
     when 10..19
         return 2
     when 20..19
         return 3
...etc
When used, this method would check what level the actor was, then return the weapon tier. Then, you could use that value to set the weapon to something different for each tier. This is obviously not plug-and-play code, but I think learning how to do it yourself is going to help you out the most. Hopefully a hint on the logic helps :)
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top