I just passed the note data in the function call since instance items don't have database entries.
It was a relatively small change.
Edit: By all means feel free to add my edit. Thanks for taking the time to make this plugin!
Yeah, only thing I'll be changing from your fix is:
this._dataClass === 'weapon'since this is referring to the actor not the equip, so it's coming out undefined. So I'm going to use the old one, since I tested and this one still works:
DataManager.isWeapon(equip) I'll put up updated version in a minute, there's just a line that I saw that was bugging me, so going to change it and do a quick test of everything.
Hmmm.... I'll have to look that over as well.
But as long as it's working I'm happy.
One request I'd like to make:
I saw that you have a way of adding to a stat, but is there a way to set it to a specific value via script call.
My stats will be rolling all over the place during battles and I'll need a way to set them to 0 from time to time.
Thanks again.
Awesome!
Thank you
Edit: It seems the set and add params calls don't work on items. Can that be fixed?
(I tried
$gameActors.actor(1).equips()[0].addCParam(0, 2000);and it comes back with a typeError, undefined error.)
It works fine on actors directly but I need it to work on equips. I'm using Yanfly's Instance Items, BTW.
Ah yes, the custom params adding / setting is only for actors. I'll have to make a patch to let you set them on items, which I'm guessing is from Yanflys instance items.
Hmm well if this is still an issue, feel free to send me a light weight project ( Only Data and JS folders and any images if needed ) with some stuff set up already and I'll take a look.
You do more than enough for me with maintaining this plugin.
I will figure out what I can and request help when I'm truly stumped.
The way I handled this in my old Ace project was used a script that read note.length and then added to notes directly.
(Instance items there as well.)
So if it were possible to make this plugin add value based on multiple tags of the same stat, I could just add copies of the note to get it to do what I need it to.
(note += "tag")
Sounds good. I also pass the whole item info into the Params.equipParamsPlus() function which you probably noticed by now. But that should probably be the main method you'll want to mess with. Using the console to log stuff is always helpful as well thats how I found out yanfly uses "equip.baseItemId" for the items original id. imo its easier then going the the other script, when you can log the object and see all the functions in the console.
I want to add new-param on status screen.
but I've no idea...
I think I recall someone saying they got it working with someones status menu. But I can't recall which. And sadly I'm not a fan of creating menus.
ohhh ty 😀
Quasi and Gotnovicks <3
It's not working for me 🙁 Only shows the status name, but not the value
This is what I put in my class notetags
<params>ATF: (a.level/4) + a.atk + a.(a.agi/5) + a.(a.luk/3) + a.wpmMGK: (a.level/4) + a.mat + a.(a.mat/2) + a.(a.agi/5) + a.(a.luk/3) + a.wpmDFF: a.defDFM: a.mdf</params><rates>1 a.def to mhp1 a.mdf to mmp4 a.def to dff4 a.mdf to dfm</rates>neithers the rates are working, def should affect maxHP, but it's not ;-;
@EDIT:
I tried to change the default value for the new params from 0 to 200 to test, and it still doesn't work (neither in formulas, neither if a call their values in a variable/message) 🙁
Well first, you can't use rates like that. You can only convert stats to " Ex-Parameters or Sp-Parameters". If you want to do a param to param you'll have to do a formula for it like:
<params>mhp: a.defmmp: a.mdfdff: a.def / 4dfm: a.mdf / 4</params>Also if you don't mind showing me your json for the custom parameters. There might be some issue with it maybe, since everything seems to be working for me. Unless they're not working because you used rates incorrectly. Also if you haven't, push F8 just incase and see if there's any error msg written in it.
Ah yeah, you can't use the parameter in the formula of the parameter you are trying to set because it'll go into an infinite loop. So as it is, you can't do what you want. I might be able to fix the looping problem, since I got an idea, but no promises yet.