Need help with an issue with Yanfly Skill Core lunatic notetag

Status
Not open for further replies.

Redeye

Chronicles Creator
Veteran
Joined
Jun 21, 2013
Messages
426
Reaction score
231
First Language
English
Primarily Uses
So I've been trying to figure out why exactly my skill isn't working as it should. I'm using an assortment of Yanfly plugins, and I've made sure to sort them as they are presented on Yanfly's website. The skill in question is a skill used on an enemy. It's certain hit and deals no damage, and if the target is below 50% HP, the user gains some TP. Creating the lunatic code for it was simple enough (I'm using <After Eval> for the TP effect), but for some very odd reason, the program is refusing to run the code in the first place. I even tried throwing in a console.log to test if the code is even being processed. The <After Eval> simply is not running at all. I tried everything from giving the skill damage, to changing the eval to <Before Eval>, to using Action Sequences to force the action effect to take place, but still nothing.

This is the eval notetag I'm using for the skill (I removed some things such as the HP requirement in order to test it better, also ignore the console.log as that is for testing as well):

Code:
<After Eval>
console.log("Hello");
user.showAnimation(139);
var apGain = Math.min(9, 6 + Math.floor(user.luk / 20));
user.gainTp(apGain);
user.showDamagePopup();
user.clearResult();
</After Eval>
And this is the skill page in question:
Bugged Skill.png

And this is an image of my plugin load order:

Plugin List.png

The last few plugins in the list are YEP_AutoPassiveStates, YEP_EnhancedTP, YEP_EquipBattleSkills, YEP_X_EquipSkillTiers, a small plugin that allows me to change the color of the skill names, and one of the default MV plugins that allow me to assign different basic attack skills to different weapons.

This issue is really stumping me, so I'd really appreciate any help.
 

shockra

Slightly Crazy Programmer
Veteran
Joined
Feb 16, 2016
Messages
437
Reaction score
196
First Language
English
Primarily Uses
RMMV
Are you getting an error in the console when the code runs? That can often be the reason Lunatic code doesn't run.
 

Redeye

Chronicles Creator
Veteran
Joined
Jun 21, 2013
Messages
426
Reaction score
231
First Language
English
Primarily Uses
Well, it just occurred to me that I did the syntax wrong for user.startAnimation() and user.startDamagePopup(). That was why it wasn't running.

But thank you, though. Now I know that the F8 Console exists. That will definitely help me with troubleshooting in the future.
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,324
Reaction score
4,423
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Will be revealing my project to the forum soon.
Ohboi, I'mma learning how to mix/sing better warming up (by singing game songs) for eventually singing my team's game's main theme. (Plus singing for my Patrons XD)
For anyone using my Extended Generator, would you like a discord server where you can exchange ideas, help, suggestions and news about the development ?
My gf got Addicted by making Momochi!
Meet Foochi the Buttout Ghost!

Forum statistics

Threads
99,605
Messages
967,226
Members
131,282
Latest member
isabelx10
Top