Tree to wood code in Developer Help
|
|
Code:
obj/Buildables fountain icon = 'buildables.dmi' icon_state = "Fountain" layer = 2 density = 1 Bush icon = 'land.dmi' icon_state = "Bush" layer = 2 density = 1 tree icon = 'land.dmi' icon_state = "Palm tree" layer = 2 density = 1 verb cut() set category="Commands" set src in oview(2) view(2) << "You cut the tree!"
obj wood icon = 'wood.dmi' icon_state = "wood" verb make_wall() set src in usr src.Move(usr.loc) icon = 'Buildables.dmi' icon_state = "Wall" get() set src in oview(1) src.Move(usr) make_floor() set src in usr src.Move(usr.loc) icon = 'Buildables.dmi' icon_state = "Floor" make_door() set src in usr src.Move(usr.loc) icon = 'Buildables.dmi' icon_state = "Door"
|
Problem description:I am a newbie at coding and ive been trying to make a code so that when i press cut the tree turns into wood but im stuck i have no idea what to put in this ive searched around and cant find any tuts or helps or anything about this please can someone tell me what i am doing wrong/what i should put in??? *just copy code and revise it to fix mistakes then point out my mistakes*thank you if you help or not
|
also im trying to make it so you can only cut it down with axe so if you could do the same and tell me what i need to fix?
please tell me what im doing wrong thank you again for helping me / not