Warwickshire finally opened their account in this season's Yorkshire Bank 40 with an eight-run triumph over Sussex on the Duckworth-Lewis system.