ID:161658
 
i actually do have a slight code

turf
capsule
DblClick()
pick("1","2","3","4","5","6")
if("1")
src.icon = 'item.dmi'
src.icon_state = "poof"
sleep(2)
src.icon = (/turf/cloaking_device)


but apparently the if shouldnt be there if i want it to be random but how do i make it choose?

turf
capsule
icon = 'item.dmi'
icon_state = "capsule"
density = 1
layer = 100000000000000000000000000000000000000000000000000000000000 0000000
DblClick()
switch(rand(1,6))
if(1)
icon = 'item.dmi'
icon_state = "cloaking"
density = 0
layer = 100000000000000000000000000000000000000000000000000000000000 000
Enter()
usr.icon = 'characters.dmi'
usr.icon_state = "blank"
usr.density = 1
del src
return

theres the new code but again it says proc definition not allowed inside of another proc talkin bout the usr.icon how do i fix that??
I fixed the random but now this is happening



turf
capsule
icon = 'item.dmi'
icon_state = "capsule"
density = 1
layer = 100000000000000000000000000000000000000000000000000000000000 0000000
DblClick()
switch(rand(1,6))
if(1)
icon = 'item.dmi'
icon_state = "cloaking"
density = 0
layer = 100000000000000000000000000000000000000000000000000000000000 000
Enter()
usr.icon = 'characters.dmi'
usr.icon_state = "blank"
usr.density = 1
del src
return

but again it says proc definition not allowed inside of another proc taking about the usr.icon why??
In response to SadoSoldier
Its because Enter() is being defined within another proc.
That layer is OVER 9000!!!!!!
In response to SadoSoldier
Eww, that layer setting makes that code even uglier.
Use something like this for such things:
//look up "#define" in the DM Reference
#define INF 9999999999999999999999999999

...
layer = INF


But you definitely don't want a turf to have the highest layer, anyway. If you just want it to appear above /objs and /mobs you just need to put it at like, less than 10... and you don't want it to be bigger than HUD elements if you're going to have ones. Just set the layers to a sensible number and only as big as they need to be. So if you want it to appear above objs and mobs, use layer = MOB_LAYER+1.
In response to Obs
That joke is extremely ancient and has been repeated over 9,000 times (harharhar).
But really. It wasn't that funny to begin with, anyway. DBZ has much more potential for crappy videos than that! And other animes too.

Besides, with Kaioken, Goku's powerlevel gets higher than 18,000.
In response to Techgamer
Uhhh okay... the only actual one who gave me any helpful advice was tech I purposly have my layer that high for a reason to complex to explain right now. But ty tech im going to try that.
In response to Hottiemama23
that was me typing under my cousins acc btw