Sealing a skill type after a skill is used from that catagory

deathsia

Pegisister
Veteran
Joined
Feb 26, 2014
Messages
648
Reaction score
55
First Language
English
Primarily Uses
Does anyone know of a script that seals a skill type for the remainder of the battle after using one skill from that type?

As it stands if you try and add a state to the skill, it only applies the state to the foe instead of the caster.

Pretty much it will run like this:

Raplh uses SUMMON

Enemy taks 500 damage!

Magic skill is now sealed

Battle ends and magic skill is unsealed

So pretty much raplh used the summon skill which is a magic skill and once the spell goes off, the magic skill is sealed until the end of the battle

That's what I'm looking for here. I'm hoping I was clear enough.

Also, Yanfly's skill restriction script lets me do something similar but idk how to make it so that it only lasts for the battle and not on a "cooldown". So if someone can tell me how to manage this with his script then that works as well.
 

Alexander Amnell

Jaded Optimist
Veteran
Joined
Mar 17, 2012
Messages
3,404
Reaction score
1,733
First Language
English
Primarily Uses
N/A
The easiest way to do that would be thus.

Battle formula of skill:

a.add_state(id); 500Then have the state id used seal the 'magic skill' and have it's only removal option be the checkbox that says "remove at the end of battle. The letter a in the battle formula always denotes the skill user/attacker, so a.add_state adds the chosen state to the user rather than the target. the semicolon denotes the end of that action and leads to the actual damage formula (500 used as example since it was your example, of course you'd just add whatever formula the skill already has in it's place.) Just make sure that the actual damage calculation is the last action in the formula box or your skill will always fail to execute.
 
Last edited by a moderator:

deathsia

Pegisister
Veteran
Joined
Feb 26, 2014
Messages
648
Reaction score
55
First Language
English
Primarily Uses
The easiest way to do that would be thus.

Battle formula of skill:

a.add_state(id); 500Then have the state id used seal the 'magic skill' and have it's only removal option be the checkbox that says "remove at the end of battle. The letter a in the battle formula always denotes the skill user/attacker, so a.add_state adds the chosen state to the user rather than the target. the semicolon denotes the end of that action and leads to the actual damage formula (500 used as example since it was your example, of course you'd just add whatever formula the skill already has in it's place.) Just make sure that the actual damage calculation is the last action in the formula box or your skill will always fail to execute.
AWESOME! that worked! thank you!
 

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top