For some reason I'm having trouble figuring this out. One of the skills I want an enemy boss to know is really powerful, and to combat this I want it to have a one turn cooldown period after he uses it, where he can't do anything. However I can't figure out how to do this. Could anyone help me out with this?
Cooldown moves?
RPG Maker VXAce SupportOne easy solution is to select the move on action patterns, and down where you set the conditions for the move, check the box for turn no, and use 1 + 2*X. That way the boss can only select the move every other turn.
If you want more than that, you will have to use a script I'm afraid.
If you want more than that, you will have to use a script I'm afraid.
You could also do this with just the damage formula and the database. Create a cooldown state, and in the skill's damage formula box, tack on a.add_state:X , where X is the cooldown state id.
Thank you guys! I'm going to try this now, I'll let you know what my results are.
Alright not sure what I did wrong. Here is what I'm getting as an error when the move is used Script 'Game_Battler' line 352: SyntaxError occurred. Unexpected tSYMBEG, expecting Send 200+a.mat*2-b.mdf*1+a.add_State:Tired
Where did I go wrong?
Where did I go wrong?
You need to do this: a.add_state(x), where x is the number for tired. Also, it has to go first in the formula, else it does not apply (or so I've been told). So the correct way is this:
a.add_state(x); 200+a.mat*2-b.mdf*1
I'm not sure about the ; though.
a.add_state(x); 200+a.mat*2-b.mdf*1
I'm not sure about the ; though.
I'll try it real quick
Ok, let me know too, as I have a skill that uses that but it is untested.
This is the current formula a.add_state026 200+a.mat*2-b.mdf*1 I tried a.add_state026; 200+a.mat*2-b.mdf*1 and a.add_state(026) 200+a.mat*2-b.mdf*1
I either get an error, or the attack does no damage and the 'tired' effect still isn't applied. Not sure if I did something wrong or not here.
I either get an error, or the attack does no damage and the 'tired' effect still isn't applied. Not sure if I did something wrong or not here.
I think you need a.add_state(26); 200+a.mat*2-b.mdf*1. If that doesn't work, try 026. However, everything I've seen says the () is mandatory before the state number.
It worked. Thanks a bunch!
It should be
a.add_state(26); 200+a.mat*2-b.mdf*1
EDIT: ninja'd
a.add_state(26); 200+a.mat*2-b.mdf*1
EDIT: ninja'd
Yeah, I forgot all about the parentheses, sorry!
You're fine 😀 It all worked out in the end. Thank you all for the help though, I appreciate it.
Original thread: https://forums.rpgmakerweb.com/threads/cooldown-moves.35398/