Hello! I'm currently working on a game that allows a player to level up "skills" in a way similar to Fallout (for example a One-Handed Weapon skill that the player can invest skill points into with every level up, up to 100 points). The idea is that at 0 points in the level, the player has only 50% Hit Rate, 0% Crit Rate, and 120% Critical Damage. With every 2 points invested into the skill, the player gains a "stack" of the One-Handed Weapon Skill state, which increases the Hit and Crit Rates by +1% and adds 5% to their Critical Damage when they wield a one-handed weapon such as a Sword, Dagger, or Mace. I have it mostly working how I want using Yanfly's Buffs and States core, Critical Control, Auto Passive States, and Passive State Cases, but I'm not certain how to get the increases to the parameters to work exactly.
I feel I need to perform these actions in the note tag, but I don't know what script to use to call the player's Hit Rate and Crit Rate to change them. On top of that, I'm also not certain how to achieve what I want with the Critical Multiplier. I assume on some level it would be along the lines of:
player Hit Rate += number of stacks
player Crit Rate += number of stacks
player Crit Dmg += (5 * number of stacks)
I just don't know what scripts to call or where to put them. I'll add images from the database below for you to see, as well as paste the code in the note tag below as well.
NOTE TAG CODE:
<Critical Multiplier: +5%>
<Custom Battle Effect>
var stacks = Math.floor($gameVariables.value(1) / 2);
target.setStateCounter(18, stacks);
</Custom Battle Effect>
<Passive Condition Cases>
if ($gameActors.actor(1).isWtypeEquipped(2)) {
condition = true;
}
else if ($gameActors.actor(1).isWtypeEquipped(3)) {
condition = true;
}
else if ($gameActors.actor(1).isWtypeEquipped(4)) {
condition = true;
}
else if ($gameActors.actor(1).isWtypeEquipped(5)) {
condition = true;
}
else {
condition = false;
}
</Passive Condition Cases>
I feel I need to perform these actions in the note tag, but I don't know what script to use to call the player's Hit Rate and Crit Rate to change them. On top of that, I'm also not certain how to achieve what I want with the Critical Multiplier. I assume on some level it would be along the lines of:
player Hit Rate += number of stacks
player Crit Rate += number of stacks
player Crit Dmg += (5 * number of stacks)
I just don't know what scripts to call or where to put them. I'll add images from the database below for you to see, as well as paste the code in the note tag below as well.
NOTE TAG CODE:
<Critical Multiplier: +5%>
<Custom Battle Effect>
var stacks = Math.floor($gameVariables.value(1) / 2);
target.setStateCounter(18, stacks);
</Custom Battle Effect>
<Passive Condition Cases>
if ($gameActors.actor(1).isWtypeEquipped(2)) {
condition = true;
}
else if ($gameActors.actor(1).isWtypeEquipped(3)) {
condition = true;
}
else if ($gameActors.actor(1).isWtypeEquipped(4)) {
condition = true;
}
else if ($gameActors.actor(1).isWtypeEquipped(5)) {
condition = true;
}
else {
condition = false;
}
</Passive Condition Cases>