Step-by-step n00b directions appreciated

I've got a general idea on how to get that number, what I need is a code that records these three variables:
Win#, Lose#, Win%
That way, the map can see the code that a player enters ("-load" as a substring) and then calculate (Win#+Lose#/Win#=Win%)
Aero, if this is something that absolutely needs to be a JASS thing, I...guess...maybe I could learn enough of it to manage.
I suppose that on top of this I'll need to find a way to display said code to the appropriate player at the end of the game.