common event random state

Hello!

So I want to make burn damage over time. Now my problem is that, I want one of my skills to inflict one of three different levels of different states. I have burn I, burn II, burn III.

What I did was to call a commont event on the skill and then change a variable to a random number so that the level of burn state that is will inflict is random, with different chanced for each level of burn.

I did everything and the problem.. is that I can't choose the monster that I will inflict the state. I can only choose if I will inflict the state to monster 1 or 2 or 3 or 4 etc......... but I can't choose the attacked monster to take the burn state.

screenshot:
h4u0z5
http://prntscr.com/h4u0z5

is there any way that I can make that happen?

thanks in advance for your time.
Sorry I don't quite understand.. If I'm correct you want the 'Burn' State to stack meaning every time the enemy is hit with the attack with the state 'Burn II' will apply and after that "Burn III".

You can do this but it wont be very easy without a plugin. (At least I don't know an easier way)
To do this you can create a conditional branch to check if the enemy has the state on them then they are hit. If so apply the next 'Burn' state. The problem with this is that you'll have to go through every enemy making a conditional branch to check if they have the state.

Though, another problem with this is that if you inflict multiple enemies with the first burn and use it again it will change both enemies to the second burn state. But there may be a way around this.
Sorry I don't quite understand.. If I'm correct you want the 'Burn' State to stack meaning every time the enemy is hit with the attack with the state 'Burn II' will apply and after that "Burn III".

You can do this but it wont be very easy without a plugin. (At least I don't know an easier way)
To do this you can create a conditional branch to check if the enemy has the state on them then they are hit. If so apply the next 'Burn' state. The problem with this is that you'll have to go through every enemy making a conditional branch to check if they have the state.

Though, another problem with this is that if you inflict multiple enemies with the first burn and use it again it will change both enemies to the second burn state. But there may be a way around this.
well, its not that exactly.

I want to make a skill that can inflict burn I OR burn II OR burn III

I want to make easier to inflict burn I, something like burn I :80%, burn II: 60, burn III: 30%

but I haven't figured out a way to do it yet
well, its that exactly.

I want to make a skill that can inflict burn I OR burn II OR burn III

I want to make easier to inflict burn I, something like burn I :80%, burn II: 60, burn III: 30%

but I haven't figured out a way to do it yet

Ohh so you'd like for an ability to give the burn state and have a lower chance for each different stage of burn.
For this you could still do as I said, check every enemy for a state but this time make the ability check for a blank state and if the enemy has it then apply the burn state. I'll assume you know how to make it so that there's a higher/lower chance for each burn state to apply.

This would also solve the problem of changing all enemies with burn because your using a blank state that will be there for only a second then removed to add the burn state.

Hope you understand what I'm trying to say and that it helps.
I
Ohh so you'd like for an ability to give the burn state and have a lower chance for each different stage of burn.
For this you could still do as I said, check every enemy for a state but this time make the ability check for a blank state and if the enemy has it then apply the burn state. I'll assume you know how to make it so that there's a higher/lower chance for each burn state to apply.

This would also solve the problem of changing all enemies with burn because your using a blank state that will be there for only a second then removed to add the burn state.

Hope you understand what I'm trying to say and that it helps.
I will give it a try when I get home. Thanks for your time.

I will post the results
Ohh so you'd like for an ability to give the burn state and have a lower chance for each different stage of burn.
For this you could still do as I said, check every enemy for a state but this time make the ability check for a blank state and if the enemy has it then apply the burn state. I'll assume you know how to make it so that there's a higher/lower chance for each burn state to apply.

This would also solve the problem of changing all enemies with burn because your using a blank state that will be there for only a second then removed to add the burn state.

Hope you understand what I'm trying to say and that it helps.
Glad I could help, If I think of a better way to do things I'll let you know. ^^
Ok so I test it and it 99% works. I mean the idea is great, maybe I am doing something wrong.

If I attack a single enemy, then it works perfectly (I added a the random factor with three events that add random number then have it chech how big is this number and then inflict the state, I don't know if that's a good way to do it)

But if I use an attack that attacks everyone then it only checks the first enemy.. maybe I have to use labels?

I will check it tommorow because I have to wake up early.

Thank you very much that was really helpful. I will post again to inform you if the label works.
Ok so I test it and it 99% works. I mean the idea is great, maybe I am doing something wrong.

If I attack a single enemy, then it works perfectly (I added a the random factor with three events that add random number then have it chech how big is this number and then inflict the state, I don't know if that's a good way to do it)

But if I use an attack that attacks everyone then it only checks the first enemy.. maybe I have to use labels?

I will check it tommorow because I have to wake up early.

Thank you very much that was really helpful. I will post again to inform you if the label works.

I'm glad it works mostly the way you'd like. I think the problem may be that the event finds the first enemy with the state and stops there. Maybe you put the first conditional branch and put the others in the else branch? If that's true it will only continue moving down the branch if the enemy does not have the state. If you didn't do that make sure that the state applies to all enemies when using an ability that targets every enemy.
Hope that fixes this problem 🙂
I'm glad it works mostly the way you'd like. I think the problem may be that the event finds the first enemy with the state and stops there. Maybe you put the first conditional branch and put the others in the else branch? If that's true it will only continue moving down the branch if the enemy does not have the state. If you didn't do that make sure that the state applies to all enemies when using an ability that targets every enemy.
Hope that fixes this problem 🙂
Well I am thinking of using a label. When it ckecks the first enemy, then it will jump to the second label and check the second.

I think this will work. The empty state idea was really smart thanks.

Now I have to check the other problem this the custome resource.
Ok it fully works. It was a mistake I made. But now it fully works as intended.

Thank you very much isyrium
Ok it fully works. It was a mistake I made. But now it fully works as intended.

Thank you very much isyrium

Good, I'll do my best to help if you need anything else.

Original thread: https://forums.rpgmakerweb.com/threads/common-event-random-state.86517/