ID:156206
 
    verb/Write_Scroll()
set src in usr
var/type=input("What would you like to write in the scroll?") as message
usr.msg=(type)
usr << output("[usr.msg]", "scrollwindow.output")



Problem Description:

The code works pretty good, and also whatever I write, shows in the window when I open it, but the problem is, when I close the game and re-open it, I have to write again, mean it doesn't saves. How can I make a saving script to save it? I tried making it but it doesn't work. Can someone tell me how to make a saving script to save this output of skin?

Thanks.

-Hashir
1. Does your game have some kind of saving system? If not, make one.
2. I would just use a variable that gets modified to whatever the person input()s.
In response to Spunky_Girl (#1)
I'm using deadron's character handling.
You would want to catch each line of text, and then save this on the player.

When the player reconnects, loop though and add each output.

I personally wouldn't cache more than 50 outputs though...

mob/proc/addoutput(t)
var/limit = 50
for(var/x = limit, x<=1,x--)
cachetext[x-1]=cachetext[x]
cachetext[limit] = t


50 would be the most recent. Change Limit for # of messages. t would be the new text.