I've been looking around, as I somehow remember to have read something close to what I want somewhere, but I can't find it for the life of me.
I have a "thief" class in a project of mine, and one of the skills she have, is a "hide" skill, which hides the thief, and opens up for a different set of skills.
The hide skill is linked to a state, and works as intended,which last 2 rounds, 1 for the usage of the hide skill, and one to perform the next attack, while under "hide".
One of the new skills or attacks the thief gets, is one called "quick attack" which I want to deal a bit of damage, and possible extend the time of hide, by reapplying the state again.
The basic formula I worked towards, by reading a few guides and such, looks like this:
c=1+rand(2); if c==1; a.add_state(5); 0 + a.atk * 4 - b.def * 2 ;end;
But it's not working as intended
State(5) is the hide state in this case.
Is there anyone that could help me out with this by any chance?
I have a "thief" class in a project of mine, and one of the skills she have, is a "hide" skill, which hides the thief, and opens up for a different set of skills.
The hide skill is linked to a state, and works as intended,which last 2 rounds, 1 for the usage of the hide skill, and one to perform the next attack, while under "hide".
One of the new skills or attacks the thief gets, is one called "quick attack" which I want to deal a bit of damage, and possible extend the time of hide, by reapplying the state again.
The basic formula I worked towards, by reading a few guides and such, looks like this:
c=1+rand(2); if c==1; a.add_state(5); 0 + a.atk * 4 - b.def * 2 ;end;
But it's not working as intended
State(5) is the hide state in this case.
Is there anyone that could help me out with this by any chance?