Now it's line breaks (MILD SUCCESS)

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
vorebane
Posts: 41
Joined: Wed Oct 03, 2012 4:31 am

Now it's line breaks (MILD SUCCESS)

Post by vorebane »

At this point, I almost want to make a general 'vorebane needs help with simple things' thread.

I want to have various notes laying around saying long winded things. However, the '\n' the reference suggests doesn't work for me. Is \n supposed to be a script specific thing? I will have to rejigger a lot of things in that case.
Last edited by vorebane on Sat Dec 15, 2012 6:33 am, edited 1 time in total.
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: Now it's line breaks

Post by Diarmuid »

Multiple-line strings, there you go (snippet from my dungeon):

Code: Select all

local message = spawn("scroll")
message:setScrollText([[
	The First Circle
	
	Four shrines, four elements.
	Study them carefully, master their essence.
	]])

temple_alcove_46:addItem(message)
vorebane
Posts: 41
Joined: Wed Oct 03, 2012 4:31 am

Re: Now it's line breaks

Post by vorebane »

This will work, but I was hoping for something that would let me use notes and not mess about with scripting. Ah well. Off to converting everything!
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: Now it's line breaks

Post by msyblade »

You can use "Enter" and "Spacebar" just like wall text :) You can stagger the 4 lines of text this way if u like!:)
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Post Reply