I can't get the shortName to work at all. Should it be a certain length of characters? Does it need to be uncapitalized?
Log in with itch.io to leave a comment.
By default, they are case-sensitive. Meaning the same way you set the short name you need to use that to reference them inside the game:
As you can see above, there is a new Custom Parameter called Fire Magic and its short name is "FiRe".
Meaning that if you want to reference it inside the game you need to write the short name with the same capitalization of the letters:
But can you tell me exactly what you are trying to do, and where you are trying to use the short name?
I'm using the short name of MSXP and I've written the same way in the numerous places, but couldn't get it to work that way at all. For instance, $gameParty.members().MSXP wouldn't return the value, but $gameParty.members().cparam(3) would. I also used a.MSXP + a.atk * 4 - b.def * 2 in my damage formula but I get the same amount of damage every time. I had this in the note tag for a skill and it didn't work:
But using 3 instead works.
Can you show to me a screenshot of your custom parameter configuration, just like I did in my previous comment?
For this work user.addCParam(MSXP,1) you need to set the shortName in quotes:
Besides that, the $gameParty.members().MSXP should work. Which lead me to think that maybe it is a compatibility issue.
Can you provide me a sample project replicating the error so I can take a look?
Here's the screenshot.
Yeah, it seems fine to me.
In that case, I will really need a sample project replicating the error, so I can try to find what is wrong and if it is a compatibility issue.
You can upload it on google drive, dropbox, etc.
Can send it through here or discord: Hakuen Studio#5661
Sorry for bothering you with this weird question, but do you know how to display the custom stat in the game? I created 4 more stats and don't know how to make them appear in-game.
You will need a plugin for that. My plugin currently does not do that visual stuff. Only implements the custom parameter functionality.
I'm sorry if this comes off as a dumb question, but when decreasing a custom parameter that's like HP/MP/TP, do I do it like this:
- $gameParty.members().changeCustomHpParam(pwr, -2)
Also, what's the difference in application between $gameActors.actor(ID) and $gameParty.members()[index]?
Yes, you need to use that to change the HP/MP/TP parameters. But if you choose to use the short name instead of the parameter id, you need to use quotes, like this:
- $gameParty.members().changeCustomHpParam("pwr", -2)
The difference between the two script calls you ask for is that using the actor one, you will target the actor by its ID property, as set on the database.
But using the member one, you will target the actor by its index position on your party. So:
Index 0 = First member on the party.
Index 1 = Second member of the party. and so on.
I have a question - Is there a way to add custom parameters to an actor with a notetag, or do I need to use necessarily a plugin command/script call?
To add, meaning increase, decrease, or change the parameters of an actor, you will need to use the script calls and plugin commands.
But you can also change them with equipment.
Or even with items:
But for more dynamic stuff, like increasing by level up, you can use this plugin:
Thank you! I have another question: how can I set an actor to use custom parameters? Do I need to use events for that? Or can I just use notetags? I tried changing my actor's parameters, but every time, the value was equal to zero, so I thought that I must have done something wrong when setting up the custom parameters.
I don't know if I understand. But to use the plugin you need to build the following:
1 - On Plugin Parameters > New Parameters: Here you will create the custom parameters for your game.
2 - Plugin Parameters > Templates: Here you will build the custom parameters configurations to be applied to the data objects: Weapons, Armors, Classes, Actors, etc.
3 - Get the template name created on 2 and assign it to a note tag on the data object of your choice:
4 - Alternatively, you can skip steps 2 and 3 and just insert the plugin parameter note tag:
So that are two ways of setting custom parameters to an actor.
Now to use them in-game, it all depends on you. You can reference them in damage formulas by using their short name or script calls etc.
If you want to change parameters, inside the game, you can use the plugin commands/ script calls that are on the help file. Did you not find them?
Show me the event you are using to change the custom parameters.
I am trying to use the commands you showed me, but for some reason, the parameters remain stuck on 0, as if I did nothing. I was planning to use an event that checks how much of a certain parameter you have, and if that value is higher than an arbitrary value I give, it would perform something.
Am I doing something wrong?
I have followed the steps and set the parameters I wanted to use in a notetag on my actor, but for some reason, the value is always set at 0.
Yes, you are doing something wrong.
This is script call is not setting any value to a parameter. What you are doing here is just CHECKING if the Custom Parameter ID 1 is higher than 0. (Also, a side note, don't do "$gameActors.actor(01)", do instead "$gameActors.actor(1)").
So what you need to do now is SET a value for the actor custom parameter 1.
And as stated before, you can set a value via script calls, plugin commands, or note tags.
if you already did that, show me a screenshot of your event using the plugin command or script call, or your note tag, etc.
I may be missing something really simple but ... is there an easy way to have a state/item buff or debuff a value by a certain amount (either set amount or by an equation)?
For example a state that reduces 'wis' by 4.
Or a state that would buff your attack value by 1/4 your 'str' and 1/4 your 'int'
See the " Note Tags" help section on the plugin file. You can add Buff, Debuff, and Growth Effects to the Custom parameters on the note fields of items and skills. They will work the same way as with the default parameters.
- <AddCBuff: paramId/shortName:turns >
- <RemoveCBuff: paramId/shortName >
- <AddCDebuff: paramId/shortName:turns >
- <RemoveCDebuff: paramId/shortName >
- <GrowC:paramId/shortName:value >
You can also add changes to the Custom Parameters using the Equip. Class, and Enemy note fields:
For more complex stuff, you can use my other plugin Eli Dynamic Parameters:
Then you can create a template on the plugin parameters and apply that template to States, Weapons, and Armor note fields.
Well the straight AddCBuff and debuff commands don't fit with what I've been trying to do ... but I think a chunk of what's causing me problems is that I'm using this in conjunction with the VS plugins and for some reason the base creation of stats and the leveling curves and the like work with it but ... I can't seem to get any of the other notetags for buffs, debuffs, or the dynamic parameters to ever actually apply.
Well, this maybe can be the problem. The best way to know for sure if it is a compatibility issue, is if you create a blank project, only with my plugins, then you try to use them.
If they work, then it's a compatibility issue. If they did not work on the blank project, send me a screenshot of your plugin manager and also how you set the note tags.
You can also try switching my plugins to another position on the plugin manager to see if they will work on the project you also have the visu installed. Otherwise, there is not much I can do because their code is obfuscated.
This looks like an excellent plugin, but I keep getting the error "Cannot read property 'createParameters' of undefined." This is in a new project with no other plugins, and I made no changes to the plugin's default settings.
EDIT: I didn't realize it required another plugin to work, lol! The plugin works great, but would it be possible to make it compatible with VisueMZ Element Status Core so that you can add the new parameters into the status menu? When I try to add them in to the settings that determine which parameters shown, it only enters a blank space.
Thanks for using it! Sorry about the error, I forgot to add a warning on the plugin telling the user that he needs my core plugins.
Could you please edit this page to include that? I wasted 2.5 hours trying to get this plugin to work before I saw this comment
Hi! I'm also trying to achieve this... I created a new custom param (Magical Hit rate - shortname: mhit) with this plugin and I'm trying to create a bridge Custom parameter in the VisuStella CoreEngine, with the JS: user.cparamBase(0). And then, I plug this in the Status menu window with the VisuStella ElementStatusCore.
It doesn't crash... but it only shows 0 for my new custom parameter... What may I be doing wrong?
EDIT: I should be using user.cparam
Base(0) to obtain the flat property! Now is working like a charm, showing in stats menu with VisuStella plugin!
Is there a method to set the cparam to a specific number? Like I have it currently at 6 but I want to set it to 10 without adding 4. Like .cparamSet(paramId, value)
For MV and MZ you can use the script calls:
To set a value, you can use the below:
- ACTOR.setCustomHpParam(paramId/shortName, value)
You can do the same for the custom parameters that are not hp/mp/tp type:
- ACTOR.setCustomParam(paramId/shortName, value)
This one, instead of adding or removing a value, will set a value for the custom parameter.
Replace ACTOR with $gameActors.actor(id) or $gameParty.members()[INDEX] etc...
For MZ, it seems I forgot to put that on the plugin command. WIll do it on the next update!
Can values be non-numeric values? Like can I have a parameter be a list of strings?
Do you know if there is an easy way to use a custom 'ToHit' (lets call it id 0) parameter and 'dodge' (id 1) parameter for accuracy?
so something like % chance to hit = user.cparam(0) - target.cparam(1)
Or would I have to go deep and change the core files?
With the custom parameter plugin, you can build as many custom parameters as you want. But, by default, it is up to you how you use them.
Thinking about this limitation, I build other plugins to help with that:
Eli Dynamic Parameters- I think this one can help you use the custom parameters to affect the default parameters that are responsible for the HIT and Accuracy.
I actually use that one as well, I will do some more research into it. I am just a dev and being given requirements for a game, the 'client' wants a lot of special things so its a matter of what can I do to get them. Your plugins are great by the way, thank you for all your work on them!
Nice! Good luck then! ^^
As a note, this is possible through changing the core file rmmz_objects (or making a plugin to change the core file) in two places. Game_Action.prototype.itemHit and Game_Action.prototype.itemEva. itemHit is used for accuracy and you can define different hit types as different parameters (I have different accuracy for melee, ranged, and magic) and itemEva is used for dodge and you can have multiple based on the hit type.
hi, thanks for making this i use it a ton
is there a way for adding note tags to let states affect the CParams? like, for say, a poisoned state reducing a CParam "vitality" by 5
I see a lot of stuff for increasing, buffing and debuffing the params, but how do we add actual effects to the param? For the P types, how do we set the color of the guage?
When you mean add effects, you mean like add +3 to a custom parameter for example:
- <GrowC:paramId/shortName:value >
Unfortunately, this plugin does not cover the visual part. Maybe I will do it someday. But I'm pretty sure you can add it with plugins that can add gauges, like the Ultra Hud Maker or Galv Gauge variables. Because my plugin delivers to you a current and max value.
What about having effects such as a third type of evasion, or anything like that?
Yes, you can make that. You can create any Custom Parameter you like.
And use them whenever you want: Script calls, damage formula, put them into variables, etc...
You just have to create it and choose when and how you will use it.
You can combine this plugin withDynamic Parameters, and change the evasion parameter according to a value set on a custom parameter for example.
Is there a way to use these custom parameters in conditional branch event commands?
Yes, you can. It's only a matter of use the script call
Replace customParameterId with the id of the desired custom parameter.