ID:2127409
 
door
icon = 'NewDoor.dmi'
icon_state = "Closed"
density = 1
opacity = 1
verb
opening_closing()
set src in view(1)
if(icon_state = "Closed")
icon_state = "Open"
density = 0
opacity = 0
flick("Opening", src)
return
if(icon_state = "Open")
icon_state = "Closed"
density = 1
opacity = 1
flick("Closing", src)
return


Problem description:So i was trying to setup so doors will open and close and no matter where or when i use oview or view i get undefined proc? i dont understand why, could someone please help me see what i am missing

Your indentation is wrong, for starters. Nothing after a set setting should be indented, unless you do something like this:

door
verb
some_verb()
set
name = "open/close"
desc = "open or close this door"
src in view(1)

// verb code contents here
if(icon_state == "closed")
// open the door
else
// close the door


Secondly, your if statements are using the assignment operator (=) when you mean to use the evaluation(?) operator (==). Currently, as long as you are using version 511, your door is always going to open and never close.