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!
Quasi Params Plus
● ARCHIVED · READ-ONLY
-
-
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. -
Alright patch is all done. Ended up not using DataManager, and instead just checked for a property that only equips have, to be on the safe side.
Also added in the new function as requested
To Set a custom Parameter use <Script Call>
Code:$gameParty.members()[MEMBER ID].setCParam(CParamId, value)
* CParamId is the id of the custom parameter. which is based on the order the custom param was made. So in my example since param qpp was made first that would have an id of 0, while qpt has an id of 1.
* Value is the number you want to set the parameter too. -
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.
-
Perhaps. I found out that the issue with the Instance items was that he wasn't passing the note info to the child item.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.
I've always been bad with item stats, so I'm not sure if that alone would prevent equips from increasing stats from your script. -
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.
-
I'm using JahwsUF Status Menu Core script and it almost works!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.
I mean, the status scene shows more params, and it indentifies the new params from your script, but do not show their values :T
http://mvplugins.com/plugin/JahwsUF/StatusMenuCore
you may make a fix or anything, so you won't have to make a whole new scene to your script xD -
I just gave it a look, and actually looks like it should work perfectly with mine.
For the Symbol option, type in the abbreviation of the custom parameter and it should load the param value.

( qpp is the custom parameter from my example JSON ) -
ohhh ty :D
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. -
1st: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.
I tried to do that rate with HP because I wanted to make 1 point in DEF to grow 1% in HP. I tried to use mhp inside mhp formula (something like a.def * 0.01 * a.mhp and it returned me an error - maximum stack or something.
About my JSON, the last line had a comma, i removed it and it worked xD my fault, sorry.
So, how do I make the MHP grow 1% per DEF? >: -
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.
-
Oh, Ok. Thnx so much :)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.
and I already have an idea to make it happens:
I'll make the actor HP grow in a formula (like 400 + level * 75).
So, the HP formula will be:
mhp: (400 + a.level * 75) * a.def * 0.01
So, I'll have the actor's HP xD