Most of those should be hardcoded in player.cpp.
Whether you’re making an ability like Stylish or one like Gourmand, both should be implemented mostly (if not totally) in player.cpp.
EDIT: You could also try implementing it in lua, depending on what you’re trying to do.