Hello all,
I have been trying make a simple function happen when crafting a weapon which apparently is not as simple for me (noob to Javascript).
Basically I'm trying to make it so when a weapon is crafted depending on the attack parameter of the weapon it adds the Grade of the weapon to the description and changes the color of the text. Initially I though I had done something wrong with the color but I just can't get anything to work.
Here is the last snipped I tried
For those asking for link to plugin:
www.yanfly.moe
In the link is the custom code snipped as an example
<Custom Synthesis Effect>
var weaponId = 1;
var WeaponAtk = weapon.params[2];
if (WeaponAtk < 40) {
var description = " *Junk Grade";
$gameSystem.setItemDescription(weaponId, description);
}
</Custom Synthesis Effect>
Thanks for y'all help 🙂
I have been trying make a simple function happen when crafting a weapon which apparently is not as simple for me (noob to Javascript).
Basically I'm trying to make it so when a weapon is crafted depending on the attack parameter of the weapon it adds the Grade of the weapon to the description and changes the color of the text. Initially I though I had done something wrong with the color but I just can't get anything to work.
Here is the last snipped I tried
For those asking for link to plugin:
Item Synthesis (YEP) - Yanfly.moe Wiki
In the link is the custom code snipped as an example
<Custom Synthesis Effect>
var weaponId = 1;
var WeaponAtk = weapon.params[2];
if (WeaponAtk < 40) {
var description = " *Junk Grade";
$gameSystem.setItemDescription(weaponId, description);
}
</Custom Synthesis Effect>
Thanks for y'all help 🙂