******ed boom

chlabalay

Villager
Member
Joined
Mar 15, 2018
Messages
17
Reaction score
1
First Language
francais
Primarily Uses
RMMV
I need to creat a ******ed bomb skill for a monster, this skill is suposed to explode afther 2 turn when the state is leaving character... but thas not working! I use yanfly buffstate engine, what can i do?

<Custom leave Effect>
$gameTroop.members()[1].forceAction(284, 1);
</Custom leave Effect>
 

Fernyfer775

Veteran
Veteran
Joined
Oct 6, 2013
Messages
1,317
Reaction score
818
First Language
English
Here's an alternative that won't require you to call a force action:
Code:
<Custom leave Effect>
var bombdamage = 0;
bombdamage = Math.round(INSERT DAMAGE FORMULA HERE);
if (bombdamage !== 0) {
  user.startAnimation(X);
  BattleManager.actionWaitForAnimation();
  user.gainHp(bombdamage);
  user.startDamagePopup();
  user.clearResult();
}
</Custom leave Effect>
Change the X in the startAnimation tag to whatever animation you want to play.
 

chlabalay

Villager
Member
Joined
Mar 15, 2018
Messages
17
Reaction score
1
First Language
francais
Primarily Uses
RMMV
Here's an alternative that won't require you to call a force action:
Code:
<Custom leave Effect>
var bombdamage = 0;
bombdamage = Math.round(INSERT DAMAGE FORMULA HERE);
if (bombdamage !== 0) {
  user.startAnimation(X);
  BattleManager.actionWaitForAnimation();
  user.gainHp(bombdamage);
  user.startDamagePopup();
  user.clearResult();
}
</Custom leave Effect>
Change the X in the startAnimation tag to whatever animation you want to play.
Ahh that should be good thank you sir :D
 

chlabalay

Villager
Member
Joined
Mar 15, 2018
Messages
17
Reaction score
1
First Language
francais
Primarily Uses
RMMV
Hey so i have one more probleme... my enemies cast and cast again the skill on target and reset all the time the cooldown of this bomb

My question is how can i check if i have a valid target (a target without bomb) to be sure my enemies is not using this skill for nothing.

and afther select a target without bomb.

i know that can be do with Yanfly custom target, This working good but... its too lonng sequence. Maybe you have more tricks for me, more short and easy? Each spell i make take me so much time cause i dont have many experience with Java :(

sorry for my english, i speak better french :D
 

chlabalay

Villager
Member
Joined
Mar 15, 2018
Messages
17
Reaction score
1
First Language
francais
Primarily Uses
RMMV
that spell put a state on target and explose when the state leave target. i guess the term i use is not good... this is my french traduction :)
 

chlabalay

Villager
Member
Joined
Mar 15, 2018
Messages
17
Reaction score
1
First Language
francais
Primarily Uses
RMMV
Hey so i have one more probleme... my enemies cast and cast again the skill on target and reset all the time the cooldown of this bomb

My question is how can i check if i have a valid target (a target without bomb) to be sure my enemies is not using this skill for nothing.
This is on what i m working for... the frist thing... but its always true same when all actors have state 102.... why?


<Custom Requirement>
if (($gameParty.aliveMembers().length - ($gameParty.aliveMembers().every(function(member) { return member.isStateAffected(102) }))) >= 1) {
value = true;
}
else {
value = false;
}
</Custom Requirement>
 

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

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top