I'm currently trying to make a skill tree system using events on dedicated maps rather than a plugin. The only plugin really being used for this is the VisuStella Events and Movement Core. So far eveything has worked out rather well, until I got to one particular charcater.
This character is designed to be a Mirror Mage, which is my game's terminology for a FF Blue Mage. I already have the learning enemy skills working from a post i made here a while back, plus the recent VS Skill Stealer plugin makes it a lot simpler. To make things a little easier on the player, I wanted to include a section of the skill tree map that would have event 'nodes' that would give the player a hit as to what enemy they need to defeat to obtain the skill.
The intention is when the player enters the tree map, an autorun event would play to check what skills the actor knows, then toggle self switches in these nodes to show which skills have been learned, before erasing itself so it doesn't repeat until the next time the player enters the map.
The problem I experiencing is that the script call in the conditional branch that checks if the actor knows a specific skill doesn't seem to be firing off. Here's a screen shot of the event for reference:
In addition; the line of script getting cut off (and additionally where the issue is occuring) is:
I know the event is running properly due to the first sound effect playing (along with variable values geting update by checking with VS Debugger), but the second one after the conditional branch isn't, which means something in the code is going wrong, but I can't figure out what. I've triple checked the code against a reference Google Sheets with all the script commands to ensure the spelling is correct, tried using isLearnedSkill() along with hasSkill() in case that would change anything, and even copied the same command from a common event I have where it does work in case there's some hidden character in the code that somehow slipped in. The targeted actor does know the skill and is present in the party, so I'm completely at a loss as to what is going wrong.
This character is designed to be a Mirror Mage, which is my game's terminology for a FF Blue Mage. I already have the learning enemy skills working from a post i made here a while back, plus the recent VS Skill Stealer plugin makes it a lot simpler. To make things a little easier on the player, I wanted to include a section of the skill tree map that would have event 'nodes' that would give the player a hit as to what enemy they need to defeat to obtain the skill.
The intention is when the player enters the tree map, an autorun event would play to check what skills the actor knows, then toggle self switches in these nodes to show which skills have been learned, before erasing itself so it doesn't repeat until the next time the player enters the map.
The problem I experiencing is that the script call in the conditional branch that checks if the actor knows a specific skill doesn't seem to be firing off. Here's a screen shot of the event for reference:
In addition; the line of script getting cut off (and additionally where the issue is occuring) is:
Code:
$gameParty.members()[$gameVariables.value(1)].hasSkill($gameVariables.value(2))
I know the event is running properly due to the first sound effect playing (along with variable values geting update by checking with VS Debugger), but the second one after the conditional branch isn't, which means something in the code is going wrong, but I can't figure out what. I've triple checked the code against a reference Google Sheets with all the script commands to ensure the spelling is correct, tried using isLearnedSkill() along with hasSkill() in case that would change anything, and even copied the same command from a common event I have where it does work in case there's some hidden character in the code that somehow slipped in. The targeted actor does know the skill and is present in the party, so I'm completely at a loss as to what is going wrong.