Hi, guys!
I was eventing a forge system (sorta similar to Souls games but I'll elaborate in detail) and ran into the logistical nightmare of having 700+ branching paths, yeah, I'll need a plugin for that. Here's what I'm looking for if anyone with more experience would kindly lend me a hand here:
The idea is that you can upgrade weapons and unlock newer versions of them:
Short Sword >> Short Sword + 1 >> Short Sword +2 >> so forth...
The blacksmith will require some money (based on the weapon) and X amount of certain item (smithing stones, etc).
Then voila! You get your weapon upgraded.
I have in the database copies for the levels I want, it looks like:
0003: Short Sword
0004: Short Sword +1
0005: Short Sword +2
0006: Short Sword +3 (MAX, can't upgrade it further)
Eventing it would look like:
Pick weapon (store id 0003) 0003: Short Sword
if 0003 then you'll get 0004
check money and item
spend money + item (from 0 to + 1, common weapon, costs X)
remove 0003: Short Sword
get 0004: Short Sword +1
🙂thumbsup-left: this is the gist of how Dark Souls work, btw)
That's all fine and dandy, it works! That was one weapon... 125 more to go... wait, each has +X versions... oh god...
However, if I decide to work that through eventing, that would result in individual checks for every X amount of copies (+1, +2, +3, etc.) that I'd have to add to the database, that would be thousands of conditional branches and wouldn't be very practical.
So I'd need a way to:
Store a unique variable per item, to check their lv to that particular item. That it would know which upgrade is coming next, and which was the previous one. As a bonus that could even allow me to make skills that would downgrade / upgrade equipment, for example.
Add a math formula to set the price / item required that could be applied to a weapon category and lvs,
<common weapon> 5x cw constant + 1 stone per lv, +2 stones after lv4, etc.
Ideally something that wouldn't need a bloated database with multiple copies of the weapons.
Initially I had tried the:
<JS Parameters>
if ($gameVariables.value(181) === 3) {ATK = 12; MaxHP = 200;} else
if ($gameVariables.value(181) === 2) {ATK = 10;} else
if ($gameVariables.value(181) === 1) {ATK = 9;} else{ATK = 8;}
</JS Parameters>
...route, but that meant that upgrading a weapon would mean that every Short Sword dropping by a goblin would be a +3, every one found in a chest too, you get the idea. Thus the current database copies solution.
In conclusion, the goal of the plug-in would be to streamline the process of add a blacksmithing system without having to create an infinite number of checks and braches while still maintaining the ability to customize costs, upgraded versions, being unique, and that ideally doesn't blow up the database but if that can't be done I'd be fine with every weapon having like 3/4 levels max so I wouldn't have to add more than 4/5 duplicates of each database instance.
I was eventing a forge system (sorta similar to Souls games but I'll elaborate in detail) and ran into the logistical nightmare of having 700+ branching paths, yeah, I'll need a plugin for that. Here's what I'm looking for if anyone with more experience would kindly lend me a hand here:
The idea is that you can upgrade weapons and unlock newer versions of them:
Short Sword >> Short Sword + 1 >> Short Sword +2 >> so forth...
The blacksmith will require some money (based on the weapon) and X amount of certain item (smithing stones, etc).
Then voila! You get your weapon upgraded.
I have in the database copies for the levels I want, it looks like:
0003: Short Sword
0004: Short Sword +1
0005: Short Sword +2
0006: Short Sword +3 (MAX, can't upgrade it further)
Eventing it would look like:
Pick weapon (store id 0003) 0003: Short Sword
if 0003 then you'll get 0004
check money and item
spend money + item (from 0 to + 1, common weapon, costs X)
remove 0003: Short Sword
get 0004: Short Sword +1
🙂thumbsup-left: this is the gist of how Dark Souls work, btw)
That's all fine and dandy, it works! That was one weapon... 125 more to go... wait, each has +X versions... oh god...
However, if I decide to work that through eventing, that would result in individual checks for every X amount of copies (+1, +2, +3, etc.) that I'd have to add to the database, that would be thousands of conditional branches and wouldn't be very practical.
So I'd need a way to:
Store a unique variable per item, to check their lv to that particular item. That it would know which upgrade is coming next, and which was the previous one. As a bonus that could even allow me to make skills that would downgrade / upgrade equipment, for example.
Add a math formula to set the price / item required that could be applied to a weapon category and lvs,
<common weapon> 5x cw constant + 1 stone per lv, +2 stones after lv4, etc.
Ideally something that wouldn't need a bloated database with multiple copies of the weapons.
Initially I had tried the:
<JS Parameters>
if ($gameVariables.value(181) === 3) {ATK = 12; MaxHP = 200;} else
if ($gameVariables.value(181) === 2) {ATK = 10;} else
if ($gameVariables.value(181) === 1) {ATK = 9;} else{ATK = 8;}
</JS Parameters>
...route, but that meant that upgrading a weapon would mean that every Short Sword dropping by a goblin would be a +3, every one found in a chest too, you get the idea. Thus the current database copies solution.
In conclusion, the goal of the plug-in would be to streamline the process of add a blacksmithing system without having to create an infinite number of checks and braches while still maintaining the ability to customize costs, upgraded versions, being unique, and that ideally doesn't blow up the database but if that can't be done I'd be fine with every weapon having like 3/4 levels max so I wouldn't have to add more than 4/5 duplicates of each database instance.