I have skills that seal random attacks of enemies. The problem comes when I seal a skill that the monster was apparently preparing to use this turn because they simply skip the turn instead of using a different skill. Do skills get "pre-picked" at the start of turns? Is there a way to force the enemy to choose a different skill if the one they had planned on using is sealed? I'm currently using several battle plug-ins but switching between them still produce the same results.
Enemy does not act after sealing skill.
RPG Maker MZ SupportIf sealing by skill type you should make a fall back attack for your enemies with a skill type of None and set It's rate to 1 so it doesn't get in the way of the other stuff.
@TinyRecorder that is not how the ratings work, and it is not what the OP is talking about anyway.
@YoMamaSan yes, the skill is preselected in the selection phase on turn based combat.
basically in the selection phase both actors and enemies select which skill to use, because then the action order is based on both battler agility and skill speed, and then they are processed in that action order. And states added count from the moment they are added to the end of the turn.
so adding a state that seals a skill makes that skill unusable, and if the skill was the one selected that action is impossible and lost.
you could change the state and skill in a way that it affects the next skill selection, but not to influence a skill in the current turn. For example you could reduce the skill speed of the skill that applies that state, making the actor act after the enemies, and give the state a two turn duration to affect the next turn.
Other than that it would help if you describe the effect you want to achieve and ask for how to do that, because it might be possible using different mechanics.
@YoMamaSan yes, the skill is preselected in the selection phase on turn based combat.
basically in the selection phase both actors and enemies select which skill to use, because then the action order is based on both battler agility and skill speed, and then they are processed in that action order. And states added count from the moment they are added to the end of the turn.
so adding a state that seals a skill makes that skill unusable, and if the skill was the one selected that action is impossible and lost.
you could change the state and skill in a way that it affects the next skill selection, but not to influence a skill in the current turn. For example you could reduce the skill speed of the skill that applies that state, making the actor act after the enemies, and give the state a two turn duration to affect the next turn.
Other than that it would help if you describe the effect you want to achieve and ask for how to do that, because it might be possible using different mechanics.
@TinyRecorder thank you for the reply, but my system will eventually lead to all skills becoming sealed.
@Andar I see, this is kind of what I was coming to, thank you for the reply. Basically the system I have set up is a battle of attrition. My boss has say, 10 skills and each confirmed hit to it seals one of those skills. Eventually the boss will run out of skills and this is the victory condition, so 10 rounds of combat. The last skill doesn't matter because once hit, the boss will die, negating the need to use that last attack anyway.
It's guaranteed that the boss will be choosing between a small selection of skills toward the end making it likely that sealing a skill will negate its turn entirely.
My goal was to emulate a deck of cards and drawing a card produces an attack. Hitting the enemy "removes" a card from the deck and the boss no longer has access to it. However, as far as I could tell there was no way to set up a predetermined set off attacks enemies would follow each turn. I came up with a way to randomly seal an available skill but am unable to "predict" what skill will be used in the current turn so I can seal a different one.
Is there a way to determine which skill the enemy has chosen for the given turn? If so, I could perhaps check for an available skill to seal with the condition that it won't be used this turn, if so, seal a different available skill.
@Andar I see, this is kind of what I was coming to, thank you for the reply. Basically the system I have set up is a battle of attrition. My boss has say, 10 skills and each confirmed hit to it seals one of those skills. Eventually the boss will run out of skills and this is the victory condition, so 10 rounds of combat. The last skill doesn't matter because once hit, the boss will die, negating the need to use that last attack anyway.
It's guaranteed that the boss will be choosing between a small selection of skills toward the end making it likely that sealing a skill will negate its turn entirely.
My goal was to emulate a deck of cards and drawing a card produces an attack. Hitting the enemy "removes" a card from the deck and the boss no longer has access to it. However, as far as I could tell there was no way to set up a predetermined set off attacks enemies would follow each turn. I came up with a way to randomly seal an available skill but am unable to "predict" what skill will be used in the current turn so I can seal a different one.
Is there a way to determine which skill the enemy has chosen for the given turn? If so, I could perhaps check for an available skill to seal with the condition that it won't be used this turn, if so, seal a different available skill.
that is the way to go, and there are several possible ways to do this.
one way would be to go the other way around - have each skill conditioned to a state, then use a troop event on turn 0 to give the boss all states. and add state removal to the different skills the player can use to target.
if you make those states invisible (no icon, no text) the player will never know that this happened behind the scenes.
other ways would have to condition the skills on switches, but then you would have to use the skill to switch off those switches - also possible but more complex to do - but might be needed if your mechanics don't support the hidden states above.
I think I’m starting to understand. So instead of adding abilities to monsters directly, just give them skills through states and seal those states with my own character skills? My current way to seal a skill is to add states that seals each skill a monster has at random. This is done by calling a common event I put on my attacks.
I have a common event that rolls a 1-10, uses that variable to determine which skill to seal, say 4, and checks if skill 4 is available or already sealed. If its available, seal skill 4, otherwise return to the top and roll another number and check that skill.
My only question would be what to use to check which skill is about to be used by the boss on the current turn so I can also check that variable with the availability loop I’ve created. I’m currently just checking to see if the skill is available, not if its planning to be used this round.
It’s very possible I have just yet to find the parameter that shows me which skill the monster is planning to use. I just recently found that I can check a certain monster for a certain skill to see if its available. Is this in the editor or is this a script call?
In other words, how do I take MonsterPlannedSkill (or whatever the game uses as the parameter) and store that into my own variable that I can check against?
@Andar I have recreated my skill system to what I believe you had suggested. I can now give the boss a specific skill, put the given skill in a variable and use it to avoid sealing that skill on the players turn. However, the issue I'm running into now is that the boss simply does not attack when given a skill.
I have states set up to add the desired skill. A troop event that gives the monster the state at the end of every turn (to be used on the following turn) and takes away the skills from previous turns. I assumed since I added the state (and in turn the skill) to the monster before the start of the turn it would register before it "picks" a skill for the turn, solving my problem. This doesn't seem to be the case however because the monster just passes each turn.
The skills I'm giving the monster have no requirements, the monster has used these skills just fine in previous builds so I'm not sure what the issue is. The monster itself has no inherent skills on the enemies page. All skills are added through a state, which I can see is successfully applied, but they won't use the skill during the following turn.
I have states set up to add the desired skill. A troop event that gives the monster the state at the end of every turn (to be used on the following turn) and takes away the skills from previous turns. I assumed since I added the state (and in turn the skill) to the monster before the start of the turn it would register before it "picks" a skill for the turn, solving my problem. This doesn't seem to be the case however because the monster just passes each turn.
The skills I'm giving the monster have no requirements, the monster has used these skills just fine in previous builds so I'm not sure what the issue is. The monster itself has no inherent skills on the enemies page. All skills are added through a state, which I can see is successfully applied, but they won't use the skill during the following turn.
then show us screenshots of your enemy action pattern and of your troop event.
I will upload screenshot as soon as I have access to my pc. The enemy action pattern however is completely blank. I didn't add any of the skills directly to the monster in the database. I have a state for each different skill and apply a different state each turn,thus adding that skill to the monster. I assumed that adding the state would force the monster to use the skill seeing how its the only one it has at that point. Is this not correct?
My troop event is a bit more complex, but it essentially removes the current state (and skill) and replaces it with another, which adds the skill to the monster at the end of each round.
I could be completely misunderstanding how skills are added through states and just assuming. But my system relies completely on adding a random state (with a specific skill attached to it) to an enemy which I am under the impression will add that skill to the monster while the state lasts. Meaning the monster can use the skill as long as the state persists.
My troop event is a bit more complex, but it essentially removes the current state (and skill) and replaces it with another, which adds the skill to the monster at the end of each round.
I could be completely misunderstanding how skills are added through states and just assuming. But my system relies completely on adding a random state (with a specific skill attached to it) to an enemy which I am under the impression will add that skill to the monster while the state lasts. Meaning the monster can use the skill as long as the state persists.
your enemy has no action pattern, so it will never use any skill.
the action pattern should contain all skills that can possible be used, but conditioned on the presence of the states assigned to those skills
the action pattern should contain all skills that can possible be used, but conditioned on the presence of the states assigned to those skills
Oh, this is what I was starting to think. I had a fundamentally flawed understanding of how the attack patterns worked. After updating again it finally works! Thank you @Andar for all your help in this, very much appreciated.
Original thread: https://forums.rpgmakerweb.com/threads/enemy-does-not-act-after-sealing-skill.152495/