- Joined
- Oct 27, 2015
- Messages
- 54
- Reaction score
- 10
- First Language
- English
Ok, so I'm trying create a special status for one of my actors.
Basically she has a skill that can unseal her power temporarily, creating a buff that does various things.
Now, I'm using the Yanfly engine, so doing some of the basics is simple:
I want this skill to buff her for X turns where X is the amount of TP she consumes to activate the skill [it simply uses ALL of her TP] divided by 10 [rounding nearest (<5 down; >5 up) (and if used with 100TP instead of say 96, Take another action)].
Getting the X is the easy part.
Just set the cost of the skill to 10.
During the Setup Action [Yanfly], have it store her (remaining) TP as a variable.
{Common Event:
Set X to 1.
Conditional branch series to check how it will round.
Divide by 10.
Add appropriate value to X,
If 100 set a switch to arm the extra turn}
Then have it drain out the remainder of her TP.
Switch off the Extra Turn Switch. Apply rest of the skill's effects.
It's making it last for X that's tripping me up.
The problem is that there doesn't appear to be a method to have the duration of a State last for a variable.
Basically she has a skill that can unseal her power temporarily, creating a buff that does various things.
Now, I'm using the Yanfly engine, so doing some of the basics is simple:
I want this skill to buff her for X turns where X is the amount of TP she consumes to activate the skill [it simply uses ALL of her TP] divided by 10 [rounding nearest (<5 down; >5 up) (and if used with 100TP instead of say 96, Take another action)].
Getting the X is the easy part.
Just set the cost of the skill to 10.
During the Setup Action [Yanfly], have it store her (remaining) TP as a variable.
{Common Event:
Set X to 1.
Conditional branch series to check how it will round.
Divide by 10.
Add appropriate value to X,
If 100 set a switch to arm the extra turn}
Then have it drain out the remainder of her TP.
Switch off the Extra Turn Switch. Apply rest of the skill's effects.
It's making it last for X that's tripping me up.
The problem is that there doesn't appear to be a method to have the duration of a State last for a variable.
