for(var/inc = 1 to whatever)
winset(mob, "window.button[inc]", "image=[icon_list[inc]]")
It works just fine, but only if icon_list[inc] is a cached icon file (I think?).
So I created a list of icons, just so that they would get loaded into the cache. Is there a different way I should be going about this? :D
As for the icons, I think the best you could do is generate the list at runtime, using flist() and fcopy_rsc().