ID:263704
 
Code:
mob/verb/AFK()
flick("AFK sign",usr)


Problem description:

ok so thats my code but it takes away ur player icon and puts the AFK sign but i need it soo it just goes over ur icon but ur still ther
mob/var/AFK
mob/verbs/AFK()
if(usr.AFK==1)
usr.overlays-='AFK.dmi'
usr.AFK=0
world<<"[usr] is back!"
return
if(usr.AFK==0)
usr.overlays+='AFK.dmi'
world<<"[usr] is AFK!"
usr.AFK=1
return
<D>
That will work, your problem was flick plays the AFK icon over your icon, overaly adds the AFK icon with your own. Also, this code needs a seperate icon file with the AFK icon in it and the icon state should be blank.
In response to Lt. Pain
You should learn Boolean!

mob/var/tmp/AFK    //  Tmp so the variable is unsavable
mob/verbs/AFK()
src.AFK = !src.AFK // If AFK was TRUE (eg: 1) before, it is now FALSE (eg: 0). And vice-versa.
world<<"[src.name] is [AFK?"AFK":"back!"]" // x?y:z is a mini-if() statement: if(x is true){return y value}else{return z value}
if(src.AFK) overlays += 'AFK.dmi'
else overlays -= 'AFK.dmi'


The snippet you showed would never work Pain, simply because AFK was originally not defined as 1 or 0, it was null (if you used the ! operator, it would but you were looking specifically for the value 0)
In response to GhostAnime
thnx guys and also do u know how i put pictures on the hub?
In response to Dimone Jr
um, regular HTML?

<img src="http ://web.address/here/for_image">
In response to GhostAnime
Yes your right, typo >.>
In response to GhostAnime
thnx aain and prob last question (for today at least)
ok so i want it so before u do a move u hav to do seals but i dont want doing seals a verb so how can i make it so u clcik the move it does the seals then u click it again then he does the actual move
In response to Dimone Jr
You program it in?
Tech/Some_Random_Jutsu
if(!hand_seals)
Call_Hand_seal_proc()
return_here_to_stop_the_rest_from_happening
hand_seals = 0 because we know they already did it (otherwise it would stop above)
__Enter rest of the program here__
In response to GhostAnime
ok i tryed doing this
mob/var/tmp/Chidori // Tmp so the variable is unsavable
mob/verb/Chidori()
proc = "Hand Seals"
src.Chidori = !src.Chidori // If AFK was TRUE (eg: 1) before, it is now FALSE (eg: 0). And vice-versa.
world<<"[src.name] says [Chidori]" // x?y:z is a mini-if() statement: if(x is true){return y value}else{return z value}
if(src.Chidori) overlays += "Chidori"
else overlays -= "Chidori"
but i keep getting this
:1150:error:proc:undefined var

y is it saying that