well I can try and do that, not sure how though, tbh i didnt even think you could with DM, thats why i asked how to just stop the tree from giving anymore
In response to Forcorrie1996
If the guy that gives oranges can be made to only give one, so can a tree. Variables can be used for a lot of different things, as long as you get the hang of variable scope.
obj/tree
var
fruit = 4
max_fruit = 4 // set the trees max fruit to 4

proc/regrow()
if(src.fruit < src.max_fruit) // check that the fruit is under the max
src.fruit ++
verb/shake()
set src in oview(1)
if(!fruit)
usr << "This tree has no fruit to spare!"
else
if(prob(100))
new /obj/orange (loc)
src.fruit -- //remove one fruit
spawn(3000) // wait 5 minutes
src.regrow()


Something like that could work, you'll have to excuse it I'm currently at work..
On the subject of random loot in general, weighted lists are a good, simple way to make some things drop more common than others.
Page: 1 2