How to make enemy do this?

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,511
Reaction score
1,642
First Language
English
Primarily Uses
RMMV
I have an enemy that needs to do 2 actions per turn. I achieve this by giving him Action Times +100%.


The first action needs to be always the same skill. Just put it high on the priority list and it'll work.


However, the second action must be a different skill than the one used first. This is where it gets messy. If I put the first action high on the priority list, it'll do the same action twice. If I put it lower, it isn't guaranteed to use it. If I put a requirement, it seems to ignore that for the second action, as it still uses the same skill, despite having it's requirement removed upon using it the first time that turn.


Need help. :(
 

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,643
Reaction score
420
First Language
Portuguese
Primarily Uses
RMMV
You could use make the first action activate a switch and the other actions, with higher priority, only happen if the switch is on - and then turn it off?
 

Vox Novus

Knight of Whispers
Veteran
Joined
Mar 18, 2013
Messages
3,293
Reaction score
2,473
First Language
English
Primarily Uses
N/A
Did you try adding a state to the enemy that seals the skill you don't want it to use?


You can add it through a common event if its a skill that targets a foe or you can add it under normal circumstances if the skill is just targeting itself.
 
Last edited by a moderator:

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,643
Reaction score
420
First Language
Portuguese
Primarily Uses
RMMV
And remove it with the second skill. :)
 

Vox Novus

Knight of Whispers
Veteran
Joined
Mar 18, 2013
Messages
3,293
Reaction score
2,473
First Language
English
Primarily Uses
N/A
@Waterguy True, or it could just last one turn. I suppose it depends on how many actions the enemy would potentially have.
 

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,511
Reaction score
1,642
First Language
English
Primarily Uses
RMMV
Did you try adding a state to the enemy that seals the skill you don't want it to use?


You can add it through a common event if its a skill that targets a foe or you can add it under normal circumstances if the skill is just targeting itself.
I just tried that, but then it ends its turn after the first action. :(
 

omen613

Veteran
Veteran
Joined
May 22, 2012
Messages
309
Reaction score
109
First Language
English
Primarily Uses
There are 2 Plugins by Yanfly InstantCast and SkillCoolDowns that should fix your problem.


Give the skill you want to go first a rating of 9 and in its note box put:


<Instant>


<Cooldown: 1>


then the 2nd skill give a rating of 1
 
Last edited by a moderator:

Vox Novus

Knight of Whispers
Veteran
Joined
Mar 18, 2013
Messages
3,293
Reaction score
2,473
First Language
English
Primarily Uses
N/A
That's weird not sure why it functions like that, didn't expect that. Maybe in that case you can just fake the double action by calling a common event that sets a variable to a random value and then runs a conditional branch that executes a specific skill depending on the value gained using the force action command. You can create weight to the random action by making a skill more likely to occur by having it occur if the random number is 1-4 while another might occur only between 5-6.


edit-Using the plug-ins would probably be easier though and less limiting.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top