name = "Chest"
icon = 'Mobs.dmi'
icon_state = "Chest"
density = 1
verb
Open()
set src in oview(1)
var/mimicchance = prob(15)
if(!mimicchance)
flick("Chest_Open", src)
else
new type(/mob/Mimic)
del(src)
Problem description:
When I start up the game, the Chest instantly becomes a mimic, even though it's supposed to be a 15% chance of happening WHEN you click the Open() verb next to it.
-- here is the 15% chance
else
-- normal chest.