Ok, I build your skill, just wait a little.
your code:
You need use YEP_BuffsStatesCore,YEP_SkillCore and
Yep_AutoPassiveState
Put this notetag in the notes of the actor with this skill
<Passive State: 91>
Then put this on your state 91 to set the number of this variable to 0:
<Custom Battle Effect>
$gameVariabes.setValue(1,0);//set Variable 1 to 0
</Custom Battle Effect>
<Custom Remove Effect>
$gameVariabes.setValue(1,0);//set Variable 1 to 0
</Custom Remove Effect>
Then this on your state 92( a Shappeshifter State):
<Custom Apply>
if($gameVariables.value(1)=== 1){
target.addState(1)//change this number for your first state}
if($gameVariables.value(1)=== 2){
target.addState(2)//change this for your second state}
if($gameVariables.value(1)=== 3){
target.addState(3)//change this for your next state}
if($gameVariables.value(1)=== 4){
target.addState(4)//change this for your next state}
if($gameVariables.value(1)=== 5){
target.addState(5)//change this for your last state}
</Custom Apply>
And last your Skill put this on your skill notes
(I use before Custom Execution but i prefer use Action Sequences for this):
<Custom Execution>
$gameVariables.setValue(1,$gameVariables.value(1)+1);
if($gameVariables.value(1)>5){//If reach the last state of the skill (in this case 5)
$gameVariables.setValue(1,1);// set this to the firts again (in this case 1)
}
target.addState(92)//add the shappeshifter state
</Custom Execution>
Customize:
I used the variable one but you can change it to another
example:
$ gameVariables.value (1) // the 1 indicates that it is variable one, change it to the one you use every time you see this
$ gameVariables.setValue (1,1) // in this case only the first 1 changes every time it appears.
$ gameVariables.setValue (1, $code) // same in this case
WARNING:
the skill is untested but it must work
The skill is intended for a single actor. If you want them to be more, just tell me to tell you that you must change.
If the states are removed from the user by chance of the battle they will start from the first one again.
You should list these states one after the other.
If it is an incombeniente then you should give me the number of each of these states in your database.
if you want any change just tell me