Im stumped on these ones, The First One is i wanted to make it so when i clicked on a turf an item appeared and that turf you clicked on disappears i did this but i dont want this to happen all the time i want there to be a random chance of getting that item, can u help me heres the code.
M1
icon='Mountins.dmi'
icon_state="1"
density= 1
Click()
..()
new/obj/stone(src.loc)
del(src)
Also i want it so you have to be standing next to this turf for it to disappear so u cant click it quite far away. The code is above for both.
Thank you for reading this.