I manage to solve this issue on the last update of the Dynamic Parameters plugin. Now you can use a parameter as a base value for another parameter. You also don't need to use the whole template anymore(you still can if you want), you have a simple way to do things now with a note tag:
<DynParam atk> return this.rawCParam(1) + 5 </DynParam>
On this example, the Atk value will equal to the value of the Custom Parameter ID 1 + 5. For that to work, you need to use some different script calls, to get the other parameter value, without the dynamic values added to it:
Custom Parameter raw methods
When EliMZ_CustomParameters is installed, Custom Parameters also have raw methods:
rawCParamBase(nameOrId) → returns only the regular custom parameter base value.
rawCParamPlus(nameOrId) → returns the regular custom parameter plus value without Dynamic Parameters additions.
rawCParam(nameOrId) → returns the final regular custom parameter value without Dynamic Parameters additions.
- this.rawCParamBase("crm")
- this.rawCParamBase(1)
- this.rawCParamPlus("crm")
- this.rawCParamPlus(1)
- this.rawCParam("crm")
- this.rawCParam(1)
There are equivalent methods for all type of parameters. You still need to be aware of the maximum call stack size error on cases like this, even sing the raw methods:
Circular Dependencies
This is a crash that can happen if for example you do that for ATK:
return this.rawParam("def") + this.rawParam("mhp")
And do that for DEF:
return this.rawParam("atk") + this.rawParam("mhp")
This will likely cause a maximum stack size error. You can make a parameter value be based on another one(ATK based on DEF). But then, you cannot also make DEF based on ATK. They will reference each other and end up in a loop.
Try to also avoid using the default maker formulas for that. Stick with the raw script call formulas if you want a parameter based on another.
But for now, you could do what you wanted to do before and didn't manage. Just make sure to check the new help file from the Dynamic Parameter plugin explaining everything.