Hey game makers,
Has anyone using this plugin (or Procraftynation if he's still checking in!) figured out how you to call any of the weight numbers that this plugin makes as a variable? (I took a look through the larger (200kb) github version of the .js but my ultra low proficiency with javascript is preventing me from finding it).
What I'm trying to accomplish: set a game variable to the total party weight currently carried (the core output of this plugin) so I can use it (with a parallel process event) to dynamically adjust the frequency of number of step-based events (which I already have set up) - effectively increasing Encounter Rate based on Weight Carried.
Hey Procraftynation, I added a refresh on Game_Actor changeEquip as well. A person reported they didn't see the changes of increasing a weight limit from it (unless they went into the item screen). So for convenience sakes I put it in there as well (also fixed my gold computation ... can't divide by zero) hehe
In case you got the one on the post above, you can use those 0.1 as weight,
but the NaN is something that need to be implimented along with some other
changes to let it functional entirely.
it wont be easy though, but the NaN is not implented I think to read it.
while I might be able to get rid of it, there will be 1 problem left, which is
the spacing that will be readed still, which is something I cannot figure out
as well in my own EC plugin that has it.
it works on it's smoothly, but not with another plugin to add more and spacing is
readed still, something you need to get rid of it as well or it might read like:
0.3 /200 or if you have text: Weight: 0.1/200 will be: Weight 0.1/200
more spacing.
this is somthing to look after as well.
the spaces are removed. like more if I got rid of the NaN you get this example (remove the dots)
which are spaces:
Weight: 0.1/200 (original) but let asume you have a wait of 2000:
Weitht: 20.4/2000 (normal), but if NaN you get this:
Weight: NaN/2000
but if .4 arent read and goes to NaN and you fix it, it might look like this:
Weight: .........2.3/2000
it read you the full 2000 first, than the amount of max value.
if you have 2 different weight, Inventory + pocket for example, you would like to see this:
Inventory: 2.4/2000 --- Pocket 2/300 (2 = gold) but it look like this:
Inventory: ........2.4/2000 ------------Pocket: .....2/300
(remove dots and the other as references as spaces)
or a possibility that it lap each other.
it should code nicely to play along with inventory, shops plugins, (YEP_XMore_Currencies)
because some use it, so you can put a weight on on or more. and eetc.
while the NaN on it's own can be each, you problably also need text padding, which I believe
are part of the text.
Since I think the speed of adding weight to the system is beyond the range of fitness, I mean that if I think the speed of adding weight to the system is faster than that of health, I think it will make you lose weight faster 😂
Good news, everyone! I have something new to report- so it turns out the NaN error appears in the weight window IF you have set the default weight of items in the parameters of the plugin. When I changed the default parameter from 1 to 0, then the plugin properly calculates half weights. So, if I had two items that were both 0.5 it would add it up to 1, and so on.
In conclusion, there is no issue after all!
I'll never or let's say I work very rare with js things, and if I work with them I allways use help files, what do I have to do to make it work?
I know this post is quite old, but i would like to know if there is a way to make the equip indicator appear in the equipment menu instead of the items one, or maybe in both. And also making the equipment have weight, but only when you equip it. For example a sword with a weight of 15, but it only count if an actor have the sword equipped.
Probably not that hard. One of your requests just involves changing which scene a piece of data gets drawn in, which is fairly straightforward, and the other just sounds like adding a clause to the weight check that only considers equipment to have weight if an actor has it equipped. That's a little bit more complex since actors equip equipment rather than equipment having any concept or whether they're equipped or not, but still sounds doable in theory.