ID:145411
 
this icon states i need to work plz help me.
icon: turf2 .
icon states: closed , open , opening , closing .
help: I need these are all icon sttes for a sliding door I NEED HELP putting the coding together PLZ , PLZ , PLZ!!!

Flick the opening and closing state for the door, then change the icon states to open/closing depending on the action.
In response to Pyro_dragons
Biiiiiiiig problem with that.., i cant code :(
In response to VolksBlade
*sighs*

obj/door()
icon = 'door.dmi'
icon_state = "closed"
density = 1
verb/Open()
flick("opening",src)
src.icon_state = "open"
density = 0
verb/Close()
flick("closing",src)
src.icon_state = "closed"
density = 1


There, just an example.
In response to Pyro_dragons
TYTYTYTYTYTY
In response to VolksBlade
No problem.
In response to Pyro_dragons
obj
OBJ_LAYER
icon='turf2.dmi'

tdoor
icon_state = "closed"
density = 1
verb/Open
set src in oview(1)
flick("opening",src)
src.icon_state = "open"
density = 0
verb/Close
set src in oview(1)
flick("closing",src)
src.icon_state = "closed"
density = 1
..()


Problem: Open/Close invalid proc definations
In response to VolksBlade
Your missing the () at the end of Open and Close.


Open()
Close()
In response to Pyro_dragons
with that there are errors : duplicate and previous defination. both at open() and close()
In response to VolksBlade
You don't need to call the parent you know...

Anyway, that mean's that somewhere else in that area under the obj part, you have open and close again.
In response to Pyro_dragons
ty for your great help :)
In response to VolksBlade
Volks, really now. You say for yourself that 'ZOMG I CANT CODE'. Then why don't you read the DM guide? You just ask for a code, someone has pitty with you, gives you the code, and you copy/paste it into your game.
In response to Mysame
not true i read the dm guide but it didnt make much sence to me.