ID:165826
 
I never really got overlays
how do i set them up
where do the icons have to be
and what do i name them
could anybody post some good examples?
mob
verb
AddOverlay(I as icon) // choose an icon
src.overlays+=I // add the overlay
RemoveOverlay()
for(var/I in overlays) // loop through overlays
src.overlays-=I // remove the overlay
In response to Xx Dark Wizard xX
what if i want a icon to show but temporarly
like if its dbz
and i wanna show the animation of the guy going ssj
andthen make it go away
would i use the same thing?
In response to Arturoenriquez
look up flick()
In response to A.T.H.K
tried the flick
i need someone to show me an example
In response to Arturoenriquez
Just look up flick() It is not difficult at all.
In response to Xx Dark Wizard xX
okay thats done
if i want to do an if statement
but i wanna put more than one conditions
how would i do it?
In response to Arturoenriquez
Use the && and || operators.

if(a && b) means "If a and b are true..."
if(a || b) means "if a or b are true..."

You can combine them in interesting ways, so:

if((a&&b)||c||d) means "If a and b are true, or c is true, or d is true..."
*sigh*

Read the DM Guide. After reading it, you will know exactly what overlays and underlays do and much more.

Failing to read it will result in your inability to efficently code. 100% guaranteed!