Hi,
you can for example give every hotspot a setting like floor="3"
then you could say somewhere . if hotspot floor = 3 load floorplan: get(hotspot[get(name)].floor)
But then in the right syntax
same for the buttons to to select a floor plan. set(layer[floorplan].url, floorplan3.png); or so.
To become more specific we need your code or project.
Hope it helps!
Tuur