ID:879902
 
Code:
mob/verb/CreateCharacter(var/T as text)
set hidden=1
var
obj/Characters/CustomCharacters=new/obj/Characters
list/TransesList=list()
icon/BaseIcon=null

switch(T)
if("Main")
BaseIcon=input("Choose your character Main Icon","Icon") as null|icon
winset(src,"CustomCharacterWindow.Icon","text=\"[BaseIcon]")
CustomCharacters.icon=BaseIcon

if("Form1")
var/I=input("Choose your character Form 1","Icon") as null|icon
TransesList+=cTrans(I,1000)
winset(src,"CustomCharacterWindow.Form 1","text=\"[I]")
winset(src,"CustomCharacterWindow.Form 2","is-disabled=false")


if("Form2")
var/I=input("Choose your character Form 2","Icon") as null|icon
TransesList+=cTrans(I,100000)
winset(src,"CustomCharacterWindow.Form 2","text=\"[I]")
winset(src,"CustomCharacterWindow.Form 3","is-disabled=false")

if("Form3")
var/I=input("Choose your character Form 3","Icon") as null|icon
TransesList+=cTrans(I,250000)
winset(src,"CustomCharacterWindow.Form 3","text=\"[I]")
winset(src,"CustomCharacterWindow.Form 4","is-disabled=false")

if("Form4")
var/I=input("Choose your character Form 4","Icon") as null|icon
TransesList+=cTrans(I,500000)
winset(src,"CustomCharacterWindow.Form 4","text=\"[I]")
winset(src,"CustomCharacterWindow.Form 5","is-disabled=false")

if("Form5")
var/I=input("Choose your character Form 5","Icon") as null|icon
TransesList+=cTrans(I,750000)
winset(src,"CustomCharacterWindow.Form 5","text=\"[I]")
winset(src,"CustomCharacterWindow.Form 6","is-disabled=false")
if("Form6")
var/I=input("Choose your character Form 6","Icon") as null|icon
TransesList+=cTrans(I,999999)
winset(src,"CustomCharacterWindow.Form 6","text=\"[I]")
if("Finish")
//CustomCharacters.icon=BaseIcon
CustomCharacters.name=winget(src,"CustomCharacterWindow.NameInput","text=")
CustomCharacters.Transes=TransesList
AllCharacters+=CustomCharacters


Problem description:I am trying to make Character Maker where player set their name, then their transformation but unfortunatly the code i shown is not getting any icon
BaseIcon=input("Choose your character Main Icon","Icon") as null|icon Have you tried BaseIcon=input("Choose your character Main Icon","Icon") as icon
just thought I point out there the text= in the winget command makes no sense(well to me) to retrieve text all you have to do is winget(src,"window.skincommand","text")
its not the problem the problem is with icon uploading.
You want to set the image parameter of the label, not the text. You might also need to use browse_rsc() to make sure the player has the file before displaying it, I can't remember for the case of uploaded files.
Here is the problem when i choose icon from same directory it uploads the icon but when it is being uploaded from different directory like Desktop/Icons it dont.
Does anyone here know how to do it please it is stopping my game progress.
Well I tested using this and I used as icon instead of the null|icon thing. It worked for me. I also specified the type more instead of using var/I I used var/icon/I specifying the type more. Thats all I got with the code you given.