- Joined
- Jul 18, 2014
- Messages
- 222
- Reaction score
- 13
- First Language
- English
- Primarily Uses
- RMMV
Is there a way to access the current skill that's being used?
I'm wondering if there is an eval or JS code to check, but I'm not too familiar with those. I have been trying
if (this.Skill().damage.elementId === physical)
Which was an attempt to check the current skill's element (whether it was physical, fire, etc). I saw somewhere a similar piece of code for checking the item being used, so thought that could work and from there I could figure out how to check the actual skill ID, but no luck.
Edit: Replacing 'physical' with the actual ID numbers of the elements didn't work either.
Edit 2:
if (this.action.skillId() == 404)
gives me "Cannot read property of 'skillId' of undefined.
I'm wondering if there is an eval or JS code to check, but I'm not too familiar with those. I have been trying
if (this.Skill().damage.elementId === physical)
Which was an attempt to check the current skill's element (whether it was physical, fire, etc). I saw somewhere a similar piece of code for checking the item being used, so thought that could work and from there I could figure out how to check the actual skill ID, but no luck.
Edit: Replacing 'physical' with the actual ID numbers of the elements didn't work either.
Edit 2:
if (this.action.skillId() == 404)
gives me "Cannot read property of 'skillId' of undefined.
Last edited by a moderator:

