How can I make an enemy which uses a skill that prepares for another attack on the following turn?

TakumaGao

Veteran
Veteran
Joined
May 22, 2019
Messages
85
Reaction score
22
First Language
English
Primarily Uses
RMVXA
An example:

Dragon uses Breathe Deep. (This does nothing but set up to allow Dragon to use Fire Breath on the next turn, and to warn the player to prepare for an incoming powerful attack.)

Player attacks!

Dragon uses Fire Breath! (The powerful attack in question.)

Basically, I want to be able to lock a move behind the enemy using a different move. One move to prepare, and then the strong attack will be used on the following turn 100% of the time. An example of this would be Pokemon's Solar Beam, and other similar moves.

How do I achieve this?
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
850
Reaction score
381
First Language
English
Primarily Uses
N/A
Hmmmm....

First, you will want to make a state.
Call it BreathReady or something.
You can put an icon on it if you want.
Second, make the Breathe Deep skill put the state on the user, which would be the dragon.
Last, make the Fire breath skill have a conditional which checks for the BreathReady state AND has a 10 rating.
(It would help if all other attacks have a rating of 7 or lower.)
And the Fire Breath should remove the BreathReady state if it doesn't remove itself after 1 or so turns.
 

TakumaGao

Veteran
Veteran
Joined
May 22, 2019
Messages
85
Reaction score
22
First Language
English
Primarily Uses
RMVXA
Hmmmm....

First, you will want to make a state.
Call it BreathReady or something.
You can put an icon on it if you want.
Second, make the Breathe Deep skill put the state on the user, which would be the dragon.
Last, make the Fire breath skill have a conditional which checks for the BreathReady state AND has a 10 rating.
(It would help if all other attacks have a rating of 7 or lower.)
And the Fire Breath should remove the BreathReady state if it doesn't remove itself after 1 or so turns.

Would that guarantee that the follow-up skill would trigger 100% of the time when the state is enabled?
 

Dobberman

The dog.
Member
Joined
Nov 29, 2017
Messages
13
Reaction score
33
First Language
Portuguese
Primarily Uses
RMMV
Would that guarantee that the follow-up skill would trigger 100% of the time when the state is enabled?

Yep. That part:

Last, make the Fire breath skill have a conditional which checks for the BreathReady state AND has a 10 rating. (It would help if all other attacks have a rating of 7 or lower.)

The enemy won't use a attack with priority lower than 3 from the highest priority attack available.

Amongst the actions set in [Action Patterns], the actions which will be performed during battle will be decided according to the following rules.
  • Those actions which fulfill the conditions will be picked out from the configured actions. No action will occur if there is no action that meets the required condition.
  • Within those actions that meet the conditions, the action with the highest rating and the action with a rating that is within two points of the highest rating will be treated as possible choices.
  • Amongst those possible choices, those actions which have a rating difference of 1 and 2 from the highest rating will have their chance of being chosen being 2/3 and 1/3 of the highest rating. The chance of being chosen will be the same for multiple actions which have the same rating.
Example 1: The action rating is [5] and [5]. The chance for each becomes 50%.
Example 2: The action rating is [6],[5],[4],[3]; [6] will be 50%, [5] will be 33.3% (2/3 of 50%), [4] will be 16.6% (1/3 of 50%). [3] will not be a choice.
Example 3: The action rating is [5],[3] and [3]; [5] is 60%, each [3] is 20% (1/3 of 60%).
  • The action used will be determined using random numbers based on the usage probability of those actions which are candidates.

Soo, if the highest priority attack available was [10], the boss only will use skills with priority [9] and [8]. If there's not any skill with priority [10], [9] and [8] available, he will use the Dragon Breath one.
 

TakumaGao

Veteran
Veteran
Joined
May 22, 2019
Messages
85
Reaction score
22
First Language
English
Primarily Uses
RMVXA
Yep. That part:



The enemy won't use a attack with priority lower than 3 from the highest priority attack available.



Soo, if the highest priority attack available was [10], the boss only will use skills with priority [9] and [8]. If there's not any skill with priority [10], [9] and [8] available, he will use the Dragon Breath one.
Alright, thanks! :)
 

Latest Threads

Latest Profile Posts

I just don't know why, but it's funny.
5.gif
Ugh. The one time I forget to save every hour or so is also the day my computer crashes. That's life!
Even though I spent 100's of dollars on my game already. I think I might just have to give it away for free. Since I haven't heard back from people if I could use some of their graphics. Even from a global mod here. Maybe I can make a donation thing.
you know, some days you get resentful that game dev is even considered a "fun job" and other days it's like, welp, time to roll up my sleeves and code these molotov cocktails
If you suck at playing trumpets, that is probably why.

Forum statistics

Threads
115,964
Messages
1,094,435
Members
151,234
Latest member
sousou123232
Top