mob/Creation/verb/SubmitCreation(f as file)
set category = "Creation"
var/filename = "[f]"
var/file_extension = copytext(filename,length(filename)-3)
var/filesize= length(f)
if(file_extension != ".dmi")
alert(src,"THIS ISN'T A DMI FILE")
return
else
var/b=alert(src,"File Size: [filesize]",,"Proceed","Cancel")
if(b=="Proceed")
if(src.Making==1)
world<<"NOW"
src.Making=0
//Now I want the icon that's associated to the file that he selected to be created on the player's location on the map something like new f (src.loc)
return
else
return
Problem description:Hello, I wrote this code so the player will be able to draw his own icons and when he presses the SubmitCreation verb his icon will be created on his location on the map
Thanks,
,MistY,
Edit: Not f directly, but the path to the file.