ID:268129
![]() Mar 20 2004, 2:48 pm
|
|
i have been trying to make a dragon warrior game where you can customize your characters colors. i would appreciate if someone could write me a character selection screen please.
|
i searched past topics and found this
mob proc CustomizeIcon() ..() switch(input("What will you change on your icon?","Customizing Icon") in list("Clothes","Accessories","Done")) if("Clothes") var/icon/I = new(usr.icon) if(prob(30)) I.SwapColor(rgb(255,255,255),rgb(255,000,000)) usr.icon = I else ..() if(prob(30)) I.SwapColor(rgb(255,000,000),rgb(000,255,000)) usr.icon = I else ..() if(prob(30)) I.SwapColor(rgb(000,255,000),rgb(000,000,255)) usr.icon = I else ..() if("Accessories") src.loc=locate(9,11,1) return if("Done") src.loc=locate(9,11,1) return |
Your best option is to make it yourself. Read the tutorials (link is on the left) if you haven't already. I know for sure there's also at least one demo that deals with character selection, and there's probably another one that deals with changing colours in icons.
Then, if you have specific questions, feel free to ask them. Specific questions aren't like "I don't get it". They're more like: "I don't understand how to use the SwapColor() proc, I tried [insert what you did here] but instead of [insert what it's meant to do] it [insert what it's actually doing]. Does anyone know what I'm doing wrong?"