Hey Guys,
first time asking something in this forum, I hope you can help me out.
I would like to add a few new character / class stats to extend the default ones. I want to use these new stats in the damage formular of some of my abilities. So far, I know that I can implement this by using game variables and by accessing those in the damage formular with "&gameVariables.value(x)".
The problem with that being is, that I need different skills for each of my actors, using the different variables for each actor. If I had "real" stats or attributes I could just make one skill, which every actor could use by setting the damage formular to something like "4 * a.atk - 2 * b.def + a.kun", where a.kun would be a stat, which increases dmg done by kunais. Since I don't know how to create new character attributes, I tried succeding with the game variables method.
For example:
I have about 20 additional Stats, that influence different skills, such as "Kunai skill stat", which increases the damage done by kunais. Now I set a variable called "kunai skill of actor 1" to ... maybe 20, and make a skill called "Kunai Hit". Now I add the value of the variable to the damage of the skill: "4 * a.atk - 2 * b.def + &gameVariables.value(1)".
So far so good. If I now have a second actor, he needs another game variable "kunai skill of actor 2" and he has to use another "Kunai Hit" skill where I use "&gameVariables.value(2)". Because if every actor used the same "Kunai Hit" skill, each actor would use the "kunai skill of actor 1" game variable.
Now, doing that would get a bit messy and exhausive, but it would work and I tried doing it in that way.
But then I faced another problem: As I said, depending on what type of weapon the actor uses, the actor performs different "normal" hits (I use Yanfly's weapon unleash to accomplish this. Each weapon just sets the "normal" hit of the actor to the fitting attack skill. For ten different weapon types, I would have ten different attack skills.)
Since I can only replace the normal hit of a weapon to one specific skill, there is no way to determine which skill of which actor to use. As I said, each actor has his own kunai hit skill, because I have to set the correct variable in its damage formular. So when I create a new weapon I don't know which of the actors is going to use it, so I can't say which skill it should replace the normal hit with. I don't know how to make it variable. (Sorry, I don't know how to explain the procedure better)
If I make weapons, that only specific actors can use, the problem would be solved, but this is something I do not want to have in my game.
What I am doing is overly complicated and I guess there are plugins that help me out.
So long story short:
I only use Yanfly's plugins. If you know how to implement these additional character stats with the Yanfly's plugins OR if you know any plugin which does NOT interfere and work correctly with the Yanfly's plugins, please let me know.
In addition:
If you know how to access the number of the actor via a shortcut such as "&gameActors.actor(this).getPosition", please let me know as well. By "the number of an actor" I mean the position of the actor in my database (actor nr. 1, 2, 3, 4, ... ), that is using the weapon or skill or whatever. Like this I could make just one skill for each different weapon type and access the kunai hit variable of the actor by something like this: "... + &gameVariables.value(&gameActors.actor(this).getPosition * 50 + 4)". I then just use the game variable on position 54 as the kunai skill of actor one, variable on position 104 as kunai skill of character two and so on (154, 204 ....). Hope you got the idea of what I would be trying to do there ^^. If not, no problem.
Thanks in advance,
Romepizza
first time asking something in this forum, I hope you can help me out.
I would like to add a few new character / class stats to extend the default ones. I want to use these new stats in the damage formular of some of my abilities. So far, I know that I can implement this by using game variables and by accessing those in the damage formular with "&gameVariables.value(x)".
The problem with that being is, that I need different skills for each of my actors, using the different variables for each actor. If I had "real" stats or attributes I could just make one skill, which every actor could use by setting the damage formular to something like "4 * a.atk - 2 * b.def + a.kun", where a.kun would be a stat, which increases dmg done by kunais. Since I don't know how to create new character attributes, I tried succeding with the game variables method.
For example:
I have about 20 additional Stats, that influence different skills, such as "Kunai skill stat", which increases the damage done by kunais. Now I set a variable called "kunai skill of actor 1" to ... maybe 20, and make a skill called "Kunai Hit". Now I add the value of the variable to the damage of the skill: "4 * a.atk - 2 * b.def + &gameVariables.value(1)".
So far so good. If I now have a second actor, he needs another game variable "kunai skill of actor 2" and he has to use another "Kunai Hit" skill where I use "&gameVariables.value(2)". Because if every actor used the same "Kunai Hit" skill, each actor would use the "kunai skill of actor 1" game variable.
Now, doing that would get a bit messy and exhausive, but it would work and I tried doing it in that way.
But then I faced another problem: As I said, depending on what type of weapon the actor uses, the actor performs different "normal" hits (I use Yanfly's weapon unleash to accomplish this. Each weapon just sets the "normal" hit of the actor to the fitting attack skill. For ten different weapon types, I would have ten different attack skills.)
Since I can only replace the normal hit of a weapon to one specific skill, there is no way to determine which skill of which actor to use. As I said, each actor has his own kunai hit skill, because I have to set the correct variable in its damage formular. So when I create a new weapon I don't know which of the actors is going to use it, so I can't say which skill it should replace the normal hit with. I don't know how to make it variable. (Sorry, I don't know how to explain the procedure better)
If I make weapons, that only specific actors can use, the problem would be solved, but this is something I do not want to have in my game.
What I am doing is overly complicated and I guess there are plugins that help me out.
So long story short:
I only use Yanfly's plugins. If you know how to implement these additional character stats with the Yanfly's plugins OR if you know any plugin which does NOT interfere and work correctly with the Yanfly's plugins, please let me know.
In addition:
If you know how to access the number of the actor via a shortcut such as "&gameActors.actor(this).getPosition", please let me know as well. By "the number of an actor" I mean the position of the actor in my database (actor nr. 1, 2, 3, 4, ... ), that is using the weapon or skill or whatever. Like this I could make just one skill for each different weapon type and access the kunai hit variable of the actor by something like this: "... + &gameVariables.value(&gameActors.actor(this).getPosition * 50 + 4)". I then just use the game variable on position 54 as the kunai skill of actor one, variable on position 104 as kunai skill of character two and so on (154, 204 ....). Hope you got the idea of what I would be trying to do there ^^. If not, no problem.
Thanks in advance,
Romepizza