Doomed State

Del

Warper
Member
Joined
Nov 24, 2016
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Hello I wanted to know if anyone knows how to make a State that cause death over a specified amount of turns to the actor affect with this state, Like a time bomb or something like that used in battle. I've tried using Gilgamar's Plugin State Common Events, but didnt know how to get it to work the way I wanted to. At turn end all the actors die instead of only the affect actor. please help x.x
 

Fugama

Means well, but messes up sometimes.
Veteran
Joined
Jun 7, 2014
Messages
158
Reaction score
90
First Language
Fake English
Primarily Uses
RMMV
Yanfly's buffs and states core can do it, and Yanfly even has a video with the code you'll need made already!
 

Del

Warper
Member
Joined
Nov 24, 2016
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Yanfly's buffs and states core can do it, and Yanfly even has a video with the code you'll need made already!


Thanks for the help case solved!!! (^.^)-b and for anyone else who may have this same problem


<Custom Leave Effect>
// Get the death state for the user.
var deathState = user.deathStateId();
// Check if the user is not immune to death nor resistant to it.
if (user.stateRate(deathState) > 0.01 && !user.isStateResist(deathState)) {
// Play animation on the user.
user.startAnimation(65);
// Set the user's HP to 0.
user.setHp(0);
// Check if the user is dead.
if (user.isDead()) {
// Make the user collapse.
user.performCollapse();
}
}
</Custom Leave Effect>


There's the code
 

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,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top