obj
book
icon='books.dmi'
Fire_skill_book
icon_state="fire1c"
var
open=0
close=1
Open()
if(open==0)
icon_state="fire1o"
open++
___ <<"You opened this book"
else
___ << "This book is already opened"
Close()
if(close==0)
icon_state="fire1c"
close++
___ << "You closed this book"
else
___ << "This book is already closed"
Problem description:
i really need help with this, idont know what to type in ___, i want to send this message to person who opened or closed book, but i know that you cant type usr in proc and i dont know any other ways. please help me
Also, having both those 'open' and 'close' vars like that is pretty stupid. All you need is one var which can only be on/true or off/false that indicates whether e.g. the book is open, or not.