@Eliaquim Well, reporting with good news and bad news! The good news, the event runs! It detects when a new skill is being added and procs the choice menu...
The bad news is that it doesn't actually delete the skill... or move on to another Actor. It just repeats the same set of names and variables as many times as Actors have gained skills.
I found the problems, my bad!
1 - There was a typo on skills.len
ght. The right would be `skills.len
gth`
2 - The amount of skills to check was wrong. Before we have skills.length
> 3. The right would be skills.length
> 4
You can replace the first script call block with this already fixed:
JavaScript:
for(const member of $gameParty.members()){
const skills = member.skills()
if(skills.length > 4){
$gameSwitches.setValue(499, true)
$gameVariables.setValue(268, member.name())
$gameVariables.setValue(269, member.actorId())
$gameVariables.setValue(270, skills[0].name)
$gameVariables.setValue(271, skills[1].name)
$gameVariables.setValue(272, skills[2].name)
$gameVariables.setValue(273, skills[3].name)
$gameVariables.setValue(274, skills[4].name)
$gameVariables.setValue(275, skills[0].id)
$gameVariables.setValue(276, skills[1].id)
$gameVariables.setValue(277, skills[2].id)
$gameVariables.setValue(278, skills[3].id)
$gameVariables.setValue(279, skills[4].id)
break
}
}
3 - There is another typo on each choice script command to forget the skill:
the first line `const actorId...` has a typo. It's missing an "s" at the end of $gameVariable. You need to fix that on each script block.
4 - You need to turn the switch off at the end of the choice command:
I tested it now and it worked!
[EDIT] If you still having problems, and checked that every switch and variable id are right, send me a screenshot so I can take a look