ID:149865
 
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]"
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.
In response to Lesbian Assassin
Lesbian Assassin wrote:
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.

hmm good idea I'll have to give that a try, I'm at home now so I can try it, was at work when I wrote that..

LJR