(WIP) (and messy) RPG code