I'm making scrolls in my game that you can write to and read from. I've got the Read/Write verb code already. But now I'd like to be able to name the scrolls. Also I'd like to assign a default name of: name = "scroll" when the item is created, but forces you to rename the object once you use the write verb. Here if my code for Read/Write.
scroll
icon = 'items.dmi'
icon_state = "scroll"
icon
var/global/msg
var/topic = "scroll"
name = topic
verb
Write(txt as text)
msg = txt
Read()
usr << "[topic]"
usr << "[msg]"
ID:149865
![]() Feb 4 2002, 2:31 am
|
|
![]() Feb 4 2002, 4:27 am
|
|
I've played Kemet... I know it prompts you for a name when you log in. In your write verb, just have it do the same thing, but for the scroll.
|