SEK_AttackCountAndFormula - v 3.3

SEK

Veteran
Veteran
Joined
Mar 31, 2016
Messages
56
Reaction score
51
First Language
Italian
Primarily Uses
SEK_AttackCountAndFormula - v 3.3
By SEK


Introduction
Counts uses of skills and attacks and adds a bonus damage formula.


You can also learn skills after using x times a skill or a weapon.

Features
- You can see how many times an actor uses a skill, save the counter to a variable and change it through plugin command.
- Skill uses will be saved even if you save you game, close it and open it again (it's not a temporary counter!)
-You can set a formula to add more damage to a skill!
It can be based on its Attack Counter, on Actor level and on General Formula!
-You can set a limit to the Attack Counter considered during the calculation of bonus damage
-You can set a General Formula for new unlocked skills without a specific formula!

v 3.0 - Weapon counter and formula for simple attacks implemented!
v 3.1 - Shows next to a skill name its counter.


v 3.2 - Modify skill counter text, size & color


         - fixed issues with YEP_SkillCore


v 3.3 - You can learn new skills after x uses of a skill or a weapon.


Parameters:


Skill General Formula


-General formula for new skill's bonus damage. If 0, no bonus will be added. Default is "ac*lv".


Weapon General Formula


-General formula for new weapon's bonus damage. If 0, no bonus will be added. Default is "ac*lv".


Draw Skill Counter in menu


-Set this true to draw Skill Counter in menu. Default is true.


Menu Counter Color


-Counter's color. Use message colors. Default is 6.


Skill Counter Menu Text


-Skill Counter's Text in menu. Write "null" to hide it. Default is  "Counter:".


Font Size


-Skill Counter's Font Size in menu. Default is 20.



Show Message when a skill is learned
-Default is true.


Formula Writing Notes:
ac = Attack Counter: the number of times the skill/Weapon has been used by the actor.
lv = The actor's level.
gf = The General Formula used by new skills/Weapons.
don't leave spaces when writing the formula!

Plugin Commands:


AttackCount showsc


If Draw Skill Counter in menu is true, sets it false, otherwise sets it true. 


AttackCount set x y z
Sets the counter of a skill from an actor to a specific number.
x = actorId
y = skillId
z = number of uses

AttackCount get x y z
Puts the counter of a skill from an actor into a Variable.
x = actorId
y = skillId
z = variableId 

AttackCount add x y z
Adds a specific number of uses to the counter of a skill from an actor.
x = actorId
y = skillId
z = number of uses to add

AttackCount GFset x
Changes the base damage bonus formula used for all new skills.
x = formula, written with no spaces, 
where 
-ac = y's attack counter; 
-lv = x's level
-gf = General Formula

AttackCount bonus x y z
Adds a bonus damage/heal to the basic damage/heal
based on a formula that must be written with no spaces.
x = actorId
y = skill to apply the formula to
z = formula, written with no spaces, 
where 
-ac = y's attack counter; 
-lv = x's level
-gf = General Formula

Example: AttackCount bonus 1 10 25*ac+2*lv
if actor one is level 10 and has used skill 10 five times,
bonus damage will be 25*5+2*10 = 145.

AttackCount limit x y z
Adds a limit to an actor's attack's counter.
Note: Attack Counter will still increase, but if it goes over
this limit, it will be considered lowered to the limit
during bonus damage calculation. 
Set it to -1 to remove the limit!
x = actorId
y = skillId
z = Attack Counter Limit


AttackCount learn actorId skillToUse x skillToLearn forgetPreviousSkill


 You'll learn a new skill after x uses of a skill. 


 If the last parameter is >0, You'll forget the previous skill.


AttackCount wlearn actorId weaponToUse x skillToLearn


 You'll learn a new skill after x uses of a weapon.


PLUGIN COMMANDS NOTE:
Plugin Commands are the same for weapons: just add "w" before the command.
Example: AttackCount wlimit x y z


Screenshots/Video


Formula part for weapons (skills work just the same, without w at the beginning of the command):



Skill learn
Demo
Not needed

Plugin
Right click here to save the plugin

Credit and Thanks
- SEK
- Silver Element -for suggesting the weapon part: great idea!


- Fitcher -for suggesting the possibility to show how many times a skill has been used!

Author's Notes
Even if I try my best, I might not be able to help with issues.
You are free to use this plugin. If you do use it, I'd like to have my name and my plugin's name included in credits.
 
Last edited by a moderator:

Fitcher

Veteran
Veteran
Joined
May 3, 2015
Messages
50
Reaction score
7
First Language
Finnish
Primarily Uses
Nice work on the plugin!


I am trying to understand how to display the counter without using the variable, is that possible?
 

SEK

Veteran
Veteran
Joined
Mar 31, 2016
Messages
56
Reaction score
51
First Language
Italian
Primarily Uses
I can try to add this... How would you like to show it? as a message?
 

Fitcher

Veteran
Veteran
Joined
May 3, 2015
Messages
50
Reaction score
7
First Language
Finnish
Primarily Uses
i was thinking if its somehow possible to make it visible in the menu when you look at characters skills.
 

Chaos17

Dreamer
Veteran
Joined
Mar 13, 2012
Messages
1,304
Reaction score
482
First Language
French
i was thinking if its somehow possible to make it visible in the menu when you look at characters skills.
My suggestion would be make the window scroll to the left.


You keep the skill list has it is but instead of showing MP you show the numbers.


Or add a new tab that open a new scene instead of scrolling.
 

SEK

Veteran
Veteran
Joined
Mar 31, 2016
Messages
56
Reaction score
51
First Language
Italian
Primarily Uses
v 3.0 - Added same mechanism for weapons.
 

SEK

Veteran
Veteran
Joined
Mar 31, 2016
Messages
56
Reaction score
51
First Language
Italian
Primarily Uses
i was thinking if its somehow possible to make it visible in the menu when you look at characters skills.
Is it ok like this? (Just for skills)


(I'd put an option to show it or not)


battle:


screenshot.79.jpg


menu:


screenshot.80.jpg
 
Last edited by a moderator:

SEK

Veteran
Veteran
Joined
Mar 31, 2016
Messages
56
Reaction score
51
First Language
Italian
Primarily Uses
v 3.1 - Shows next to a skill name its counter.


Thanks Fitcher!
 

Fitcher

Veteran
Veteran
Joined
May 3, 2015
Messages
50
Reaction score
7
First Language
Finnish
Primarily Uses
Wow, having the same feature for weapons is an amazing idea!


The plugin is doing just what i was looking for now, but i just noticed an issue when using Yanfly_SkillCore plugin as it adds changes to skill cost display and causes it to overlap.


Is there anything that can be done about that?


Here is a screenshot showing the issue in red and in green the possible solution i was thinking.


The nr 1 would make it possible for a custom text to be be displayed before the counter, if its possible.


The nr 2 would fix the issue but not have the custom text possibility.


Is it possible to do one of those?

Skill_usage.jpg
 

SEK

Veteran
Veteran
Joined
Mar 31, 2016
Messages
56
Reaction score
51
First Language
Italian
Primarily Uses
v 3.2 - Modify skill counter text, size & color


         - fixed issues with YEP_SkillCore


screenshot.83.jpg


screenshot.84.jpg
 

SEK

Veteran
Veteran
Joined
Mar 31, 2016
Messages
56
Reaction score
51
First Language
Italian
Primarily Uses
v 3.3 - You can learn new skills after x uses of a skill or a weapon.


AttackCount learn actorId skillToUse x skillToLearn forgetPreviousSkill


 You'll learn a new skill after x uses of a skill. 


 If the last parameter is >0, You'll forget the previous skill.


AttackCount wlearn actorId weaponToUse x skillToLearn


 You'll learn a new skill after x uses of a weapon.
 

Fitcher

Veteran
Veteran
Joined
May 3, 2015
Messages
50
Reaction score
7
First Language
Finnish
Primarily Uses
For me this is perfect now! you did a good job on the plugin.


If any improvements comes to mind i let you know.


But now this does everything and even some extra over to what i was originally looking for.


Thank you so much!
 
  • Like
Reactions: SEK

SoraAlaude

Warper
Member
Joined
Jun 24, 2016
Messages
3
Reaction score
0
First Language
English
Primarily Uses
Hey thanks for making this plug in. But, Im wondering, is this only applicable to count the skill that used by actor? Can I count the skill that used by enemies as well?
 

kl4ss1c

Villager
Member
Joined
Jun 9, 2016
Messages
14
Reaction score
0
Primarily Uses
i get the count going up. but i dont learn the new skill, wondering fi i have it called in the wrong spot? where do you put the call at for it to work properly?
 

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
Great! Cool plugin! 


Would it be possible to count skillTYPE uses too? 


That you have use black magic skills 10 times for example. That fire and water counts to black magic for example 
 
Last edited by a moderator:

SEK

Veteran
Veteran
Joined
Mar 31, 2016
Messages
56
Reaction score
51
First Language
Italian
Primarily Uses
Hey thanks for making this plug in. But, Im wondering, is this only applicable to count the skill that used by actor? Can I count the skill that used by enemies as well?

Great! Cool plugin! 


Would it be possible to count skillTYPE uses too? 


That you have use black magic skills 10 times for example. That fire and water counts to black magic for example 
Nice ideas! I'll try to add them asap, but I'm really busy these days, so you'll have to wait at least untill 17th february, *Exams* sorry about that...

i get the count going up. but i dont learn the new skill, wondering fi i have it called in the wrong spot? where do you put the call at for it to work properly?
I tried it, it works fine.. are you sure you wrote it right? 
- plugin call example "AttackCount learn 1 10 5 11 1"
Using 5 times skill 10, actor 1 will forget skill 10 (forget parameter = 1) and learn skill 11
 

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
Nice ideas! I'll try to add them asap, but I'm really busy these days, so you'll have to wait at least untill 17th february, *Exams* sorry about that...


I tried it, it works fine.. are you sure you wrote it right? 
- plugin call example "AttackCount learn 1 10 5 11 1"
Using 5 times skill 10, actor 1 will forget skill 10 (forget parameter = 1) and learn skill 11


alright :D


i will wait and than i will spam as hell so you dont forget it xD
 
Last edited by a moderator:

styx92

Veteran
Veteran
Joined
Jan 7, 2016
Messages
310
Reaction score
39
First Language
German
Primarily Uses
I cant wait for it :)
Than my mastery system can grow *. *
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

We just added more plugins as part of Wednesday Tea Time! Got the mouse system setup for MV/MZ!
Let's create game with RTP only, no plugin except official one..
Trying to get enough of an outline for my game to know what art needs to be made. I'm very out of practice with writing, having focused on art, and I'm realizing that I really missed it.
Make a Game in RPG Maker MZ: Episode 4 is now LIVE! Join us as we create our random encounter system. Random doesn't mean the player can't have some control! Want to figure out how, then tune in!
I must now resume my “things that make me money” activities, and relegate game-mak to a day or two a week. Maybe a lil in the afternoon, but I usually work on “career” level stuff then too.

Forum statistics

Threads
103,457
Messages
999,448
Members
134,993
Latest member
JellyTheDodo
Top