The figure string looks like this:
hd-80-101.hr-20-10......
We split the figure by a "." to determine sets of parts.
That means we get:
hd-80-101
hr-20-10
Then split it by "-" to get the data.
That means we get:
hd
80
101
The first part is the set type. In this case "hd".
The second type is the set ID. In this case "80". The set contains parts like body, face, eyes, arms, legs etc.
Lastly you have the colors.
The figure DATA is used to create the clothing sets (hd-80, hr-20) and define the colors.
The figure MAP is used to create set parts and tell Habbo which swf files the images for them parts are in.