well typically if you want to make a script to learn abilities from weapons, you'd open VX and go to the script editor.
Then, I assume you'd make some modifications to the equipment scene, and the battle scene, to take the skills and AP into consideration.