As the title states, I want the player to be able to see the amount of barrier that they have. I would preferably have it similar to the hp gauge or along side the hp gauge giving the number if anyone knows a way/ a plugin to do this?
I'm looking for a way to see the value of a barrier using Yanfly's absorption barrier
RPG Maker MV SupportI Googled "Yanfly barrier gauge" and immediately saw a few results you might want to look at:
rpgmaker.net
forums.rpgmakerweb.com
rpgmaker.net
Stuck on creating a custom Barrier Gauge
Hello, everyone. I'm not sure if this is the best spot for this question so please let me know if this is a mispost The project I'm working on utilizes the Absorption Barrier plugin by Yanfly. https://www.dropbox.com/s/5cpwyqp3yryczac/YEP_AbsorptionBarrier.js?dl=0 I've done a great deal of...
forums.rpgmakerweb.com
I gave it a shot but I ran into an issue where it wouldn't show me the number but the barrier colour would rapidly change colour and nothing i seemed to do fixed it sadly
Anyone who finds this thread that particular plugin is slightly broken, at least currently. Have to update all the 'parameters' to 'Parameters' at the top of the code. As below
Delsin7.parameters = PluginManager.Parameters('Delsin7_Visual_Addon_for_Yanfly_AbsorptionBarrier');
Delsin7.VAB.displayBarrierGauge = eval(Delsin7.Parameters["Display Barrier Gauge Seperately?"]);
Delsin7.VAB.gaugeLeft = eval(Delsin7.Parameters["Display Gauge Left to Right?"]);
Delsin7.VAB.gaugeRandomColor = String(Delsin7.Parameters["Gauge is Random Colors?"]);
Delsin7.VAB.gaugeShort = String(Delsin7.Parameters["Gauge is Shorter?"]);
Delsin7.VAB.gaugeShortAlignment = String(Delsin7.Parameters["Short Gauge Height Alignment"]);
Delsin7.VAB.displayBarrierNumber = eval(Delsin7.Parameters["Display Barrier Numbers?"]);
Delsin7.VAB.displayBarrierNumberColor = Number(Delsin7.Parameters["Display Barrier Number Colors"]);
Delsin7.VAB.maxBarrierParam = String(Delsin7.Parameters["Param for Maximum Barrier Value"]);
Delsin7.VAB.barrierParamAbbreviation = String(Delsin7.Parameters["Barrier Point Abbreviation"]);
Delsin7.VAB.classNameAdjustX = Number(Delsin7.Parameters["Adjust Class Name X Position"]);
That's not correct. PluginManager.Parameters() is not a function. It is PluginManager.parameters(), as you can see on line 2818 of rpg_managers.js
In addition, the code you provided wouldn't work because you refer to Delsin7.parameters on the first line then Delsin7.Parameters after that.
Nothing needs to be edited in that part of the plugin file.
Hi again. Prior to updating to capitalized 'Parameters' all the variables were registering as Undefined in the functions below(easily shown with a log statement). This resulted in the previous user's described behavior(random color bar + numbers not showing) as they are the else branches of logic. See linked new project which also has the original code commented out if you would like to swap between the two.
I agree that field should probably be updated. I just was experiencing the same issue and reported a fix once I got it working.
I haven't tested the plugin as a whole (and I'm not terribly interested in doing so, but if you want to post screenshots of error traces, that's cool). All I can say is that
PluginManager.Parameters() does not exist in the codebase.If you don't believe me nor the code you can see in your rpg_core.js, you can enter it into the console and get a reference error:
So unless you have another plugin that's adding it, you changing this plugin to say
PluginManager.Parameters() can't possibly fix anything.No I agree and I'm confused. A case of I did it and it works now but I'm not certain how. Was testing in an otherwise empty project though.
Ok figured it out. The configs weren't working because the download link for that site names the file incorrectly, adding a bunch of junk characters to the end. So just fix the plugin file name to fix it.
Original thread: https://forums.rpgmakerweb.com/threads/im-looking-for-a-way-to-see-the-value-of-a-barrier-using-yanflys-absorption-barrier.154301/