Gaining Skills from NPCs

I just got this software recently so I've been messing around in it and I was trying to make it so an NPC could give me a skill. I'm pretty sure I did everything correctly, but it still doesn't work. NPCs can give the player items, but not skills.

I've attached a file of my code (please ignore the horrible dialogue, I was just having some dumb fun)
Never mind, I figure it out.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/gaining-skills-from-npcs.100957/