@Kupotepo
Add the following notetag to your passive state:
Code:<JS Pre-Damage as User>
if (!user.isStateAffected(14)) {
user._attackStack = user._attackStack || 0;
user._attackStack++;
user.setStateDisplay(11, user._attackStack);
if (user._attackStack == 3) {
user.addState(14);
}
}
</JS Pre-Damage as User>
Replace 11 with the ID of your passive state and 14 with the ID of a new state; call it "attack crit up" or whatever name you want to give it. The state should add 50% critical rate, and have the following notetag:
Code:<JS Post-Damage as User>
delete user._attackStack;
user.setStateDisplay(11, "");
user.removeState(14);
</JS Post-Damage as User>
Replace 11 with the ID of your passive state and 14 with the ID of the state you just created. This will cause every 3rd hit that actor makes to have 50% increased crit chance which will reset after their next hit (misses shouldn't affect it). The state will show just the icon, then a "1", then a "2", with the next hit after that being the boosted one.
@oriongates You need to edit the JS: Draw Gauge section: change the "const label" line to say "Fury" rather than the TP name from TextManager (you can also change the colour values here as I imagine you'd probably prefer it to be red rather than green)
@rollerbelchen
You can do
Code:<JS Item Enable>
enabled = BattleManager.actor().actorId() === ID OF ACTOR;
</JS Item Enable>
And that item will only appear to the character who can use it. The colouring issue is a bit more complex since it's being caused by the dark item rects and those are built in to some of the functions being called by the shop menu code. You could replace these with your own versions but that'd be quite involved; Yanfly said he'll add a parameter for changing the dark rect colour in a later update, which should resolve this for you.
@GM-NUN
You can use setStateDisplay to show a number over the state, which can include how many stacks it has. Passive states are stackable via <Passive Stackable> but it won't natively show you how many stacks there are; that's something you'll have to code in.
@shaylina
You forgot the slash on your closing tag. Should be </JS Post-Apply>
@nitriso That's an action sequence thing; if you look at how the actions are set up in the VisuStella sample project you should get a decent idea of how to make effects like this, but let me know if you're struggling to figure it out even with that as a reference.