ID:273872
 
How can I use variables in cases like that?


usr.overlays += 'Icons/Roupas/Roupas/bracos/[src].dmi'


Where the [src] is the variable.
I'm assuming this is under the obj tree

obj
Shirt // Shirt
var
Worn = 0 // By default, is not worn

proc
Wear() // Wear the shirt
if(src.Worn == 0) // If it's not worn atm
usr.overlays += src // Wear it
else // If it is being worn
usr.overlays -= src // Remove it
In response to Lugia319
Hmm, Thanks for the help...

I didn't tought in use a Verb xD

Now it is working. ^^