Heyyyy. So IDK if this is really the right place to put this but it does involve a plugin so I think it counts? anyways, I have this skill called "observe" It works like Undertale's check command, or Paper Mario's tattle mechanic. the problem I'm experiencing is that no matter what I do my skill will only give me the description of the enemy "Spider" (enemy ID #2). IDK why this is happening and nothing I do will fix it. If you a solution please tell me! it would be greatly appreciated. There are some screen shots below for those needing more information. Also, some more information for y'all. the variable "Enemy ID" is #6, which is why the javascript code has a 6 in the parenthesis. The javascript code and the basic function of it was based off of SRDude's "Act + Mercy" system video. so here it is if you think it will help solve the problem.
Edit 1: after doing some testing i've realized that it's not giving me just the description of enemy 2, the spider. Instead it's giving me the description of the first enemy that the skill was used on in that particular save file. In my test file the first enemy was enemy #1 "enemytest" and when I used the skill on a different enemy it used it's description. Hope this helps.
Edit 2: after thinking for a bit I think i know the reason(s) why it's not working (sadly idk a solution but maybe after some rest I can think of one). So, I have 2 theories, 1st is that something is wrong with the javascript and that's why it's not working, however this is unlikely since it worked when first used, 2nd is that something is wrong with skill core, specifically it not running before eval or after eval. this would make sense as it would explain why the code that Shockra provided me didn't work, however the fact that it worked the first time still puzzles me.
Edit 3:It's fixed! yaaaaaay! I would like to thank Shockra for helping me so much, without him i probably would never have found the problem.
Edit 1: after doing some testing i've realized that it's not giving me just the description of enemy 2, the spider. Instead it's giving me the description of the first enemy that the skill was used on in that particular save file. In my test file the first enemy was enemy #1 "enemytest" and when I used the skill on a different enemy it used it's description. Hope this helps.
Edit 2: after thinking for a bit I think i know the reason(s) why it's not working (sadly idk a solution but maybe after some rest I can think of one). So, I have 2 theories, 1st is that something is wrong with the javascript and that's why it's not working, however this is unlikely since it worked when first used, 2nd is that something is wrong with skill core, specifically it not running before eval or after eval. this would make sense as it would explain why the code that Shockra provided me didn't work, however the fact that it worked the first time still puzzles me.
Edit 3:It's fixed! yaaaaaay! I would like to thank Shockra for helping me so much, without him i probably would never have found the problem.