I am wanting to make up a set of states and skills that would be very effective if used together, but I'm not sure how to make the note tags. Like, it has the stackable "toxin" state (I have seen your stacking poison tutorial, and it's somewhat what I'm looking for, but not quite.) and this toxin state does nothing on its own. It just stacks. Now, I want two abilities -- one called "purge" and one called "toxicify". What I want purge to do is to count the number of stacks, and then remove all of them, but doing a large percent of damage based on the number of stacks. And what I want toxicify to do is to count the number of stacks like the first one, but this time, instead of doing one flat amount of damage, I'd like it to turn the stacks into a poison state. (I will most likely set up multiples of this state based on how many counters) and the poison will do more damage based on the number of stacks. Is there a way to do this?
Needing help with a state/Skill combo system thing
JS Plugin RequestsI am also looking for something exactly like this. anyone have any good ideas?
I think you're missing several points in your description.
1) notetags have no function
They can only be read by plugins, and those plugins need to provide any functions the notetags might trigger.
So you'll need a plugin before you cen even guess about notetags.
2) states never stack by default, so you can't count any stack
again, you'll need a plugin to provide the functionality of stacking to states.
I've moved this thread to Plugin Requests. Please be sure to post your threads in the correct forum next time. Thank you.
1) notetags have no function
They can only be read by plugins, and those plugins need to provide any functions the notetags might trigger.
So you'll need a plugin before you cen even guess about notetags.
2) states never stack by default, so you can't count any stack
again, you'll need a plugin to provide the functionality of stacking to states.
I've moved this thread to Plugin Requests. Please be sure to post your threads in the correct forum next time. Thank you.
Heheh, sorry about that. I didn't know where to put it. And I forgot to mention that I'm using Yanfly's plugins, and I'm not the best with JavaScript, so idk how to do it.
If the toxin state just stacks on its own every x turns, You may want to try Tsukihime's progressive states plugin.
Technically, if the stack has a small limit - 9 for example, then you can just make 9 identical states, like these:
1. toxin 1
2. toxin 2
3. toxin 3
4. toxin 4
5. toxin 5
6. toxin 6
7. toxin 7
8. toxin 8
9. toxin 9
For the purge ability, you can modify the damage formula to this:
var mul = (b.isStateAdded(toxinStateId1) ? mul1 : b.isStateAdded(toxinStateId2) ? mul2 : b.isStateAdded(toxinStateId3) ? mul3 : ... : b.isStateAdded(toxinStateId2) ? mul9 : 1); originalDamageFormula * mul
Where toxinStateId1 is the id of state toxin 1, toxinStateId2 is the id of state toxin 2, toxinStateId3 is the id of state toxin 3, ..., toxinStateId9 is the id of state toxin 9.
For the toxicify ability, you can add another 9 states:
1. poison 1
2. poison 2
3. poison 3
4. poison 4
5. poison 5
6. poison 6
7. poison 7
8. poison 8
9. poison 9
And use this damage formula:
1. toxin 1
2. toxin 2
3. toxin 3
4. toxin 4
5. toxin 5
6. toxin 6
7. toxin 7
8. toxin 8
9. toxin 9
For the purge ability, you can modify the damage formula to this:
var mul = (b.isStateAdded(toxinStateId1) ? mul1 : b.isStateAdded(toxinStateId2) ? mul2 : b.isStateAdded(toxinStateId3) ? mul3 : ... : b.isStateAdded(toxinStateId2) ? mul9 : 1); originalDamageFormula * mul
Where toxinStateId1 is the id of state toxin 1, toxinStateId2 is the id of state toxin 2, toxinStateId3 is the id of state toxin 3, ..., toxinStateId9 is the id of state toxin 9.
For the toxicify ability, you can add another 9 states:
1. poison 1
2. poison 2
3. poison 3
4. poison 4
5. poison 5
6. poison 6
7. poison 7
8. poison 8
9. poison 9
And use this damage formula:
Code:
var poisonStateId = (b.isStateAdded(toxinStateId1) ? poisonStateId1 : b.isStateAdded(toxinStateId2) ? poisonStateId2 : b.isStateAdded(toxinStateId3) ? poisonStateId3 : ... : b.isStateAdded(toxinStateId2) ? poisonStateId9 : 0); if (poisonStateId > 0) b.addState(poisonStateId); 0
Thank you so much, DoubleX! This helps me so much. I've been like, messing around, but Idk javascript commands or anything like that, so nothing was working. Thank you!
Original thread: https://forums.rpgmakerweb.com/threads/needing-help-with-a-state-skill-combo-system-thing.72333/