proc
GenerateCSicon(var/icon/I, var/Iname)
var
icon/CSicon = new("[Iname]")
CSicon.Insert(I, "CS", SOUTH, 1, 0, null)
That is what I'm trying right now, but it doesn't create a new .dmi.
I'm wanting it to create a new icon with the name "[Iname]", then insert an icon_state.
I want to be able to access this icon later in Dream Maker.
I know I can use ftp() to send it to myself and save it manually, but its tedious with 124 icons to do this to.
Edit: I didn't consider this a code problem considering I'm not even sure if this is how to do it. That is my question: How to dynamically create and save a .dmi file.