ID:176156
 
My name is Muska, ya may remember me, i've started a new project in which it is a game 'made' and lived and decided by the user. I am having trouble with a ploughing verb, i need it so that you plough the ground and the turf turns to crop. Here is what i have so far.

Plough(turf.t in oview(0))
usr << "You plough the ground."
del(t)
t = new /turf/crop

I've tryed various combinations taking out the del(t) and tring t += new /turf/crop but they dont work. If you can help please do.

Thank You.

Muska
fireemblem has a farmer demo.
instead of turf.t, use turf/t
Don't try to delete a turf, or all hell will break loose. =P

You should remove the del() bit. Also, you only want to affect <code>src</code>'s location, correct? Then don't bother having an argument to the verb... just do this:

<code>Plough() src << "You plough the ground." new /turf/crop(src.loc)</code>
You don't even need the argument for Plow(). Take it out, and replace <code>t</code> with <code>loc</code> in the verb.
In response to Garthor
Uh... Garthor? That's exactly what I said. Sheesh. =P [link]