How could i create a build/upgrade system like the one in Star Wars Knights of the Old Republic 2

Star Wars Build/Upgrade