Jump to content
Sign in to follow this  
ultima666

WAY_EvalText with YEP_EquipBattleSkills bug

Recommended Posts

Hello! Need some help with plugins 😀


I'm using YEP_EquipBattleSkills and I want some dynamic statistics to show up in skill description.

So I use WAY_EvalText to calculate skill damage and skill speed and it works just fine, except one piece.

 

When I enter the skill list through empty skill slot the skill speed calculation is bugged:
"TypeError: Cannot read property 'speed' of null".
However, there's no bug, if I enter the skill list through the slot with equipped skill.

 

Skill speed is calculated by a.agi + skill.speed, so...
I suppose the bug is caused with this line in Yanfly's plugin:
if (skill === undefined) skill = null;
If there's no skill in the slot the skill ID is null, so there's no data to calculate.

 

Well I have no clue how to fix this bug 😅 Can anyone help? 

Screenshots:

Spoiler


rpg01.jpg

 

 

 

rpg02.jpg

 

 

Edited by ultima666

Share this post


Link to post
Share on other sites

Based on the Screenshot, i can assume that the skill speed calculation in the description refers to the equipped skill in that slot, not to the currently selected skill in the list (the fire icon skill),

 

Can you show the actual skill description in the database?

Share this post


Link to post
Share on other sites

The bug was fixed with waynee95's help.

Update WAY_EvalText.js to v2.4.0 if you still have the bug.

This topic may be closed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted