How to Implemnt Ablities

apologies, what i meant by that, is that i used too many variables as i didnt know how to implement these abilities