Page 1 of 1

Notes

Posted: Thu Sep 20, 2012 9:31 am
by roachburn
Does anyone know how to get the notes to work without the text going out of the lines? I thought I read somewhere that a /n would perform a line break or whatever but it does not seem to work.

Note - long text as description

Posted: Thu Sep 20, 2012 9:45 am
by djoldgames
I had the same problem and simple solution is clone new object in "items.lua" and type long text as description.
In this case, description in game is automaticaly "word wrapped" to new lines and looks good.

Code: Select all

cloneObject{
	name = "note_commission",
	baseObject = "note",
	uiName = "Commission and Letter of Marque",
	description = "This document is a binding commision of service to the Lords and Sovereign City of Waterdeep. The bearers of this document are agents of the Lords of Waterdeep and are granted full rights of passage beneath the City of Waterdeep. Any who woud dare interfere risk the full penalty of our wrath.\n Information has been presented to us that there is a plot afoot in our city. Evidence points to the sewers that run beneath Waterdeep. We have no information about the exact nature of the threat, but we feel the urgency is grave. We commission you to find the nature of the danger, and to destroy it if you are able.\n You are granted full rights of Marque. All treasures , artifacts, or other valuables are yours by right of conquest.\n This writ is made legal and binding, by our Mark on this fifth day of Marpenoth in the year of Shadows.",
}

Re: Notes

Posted: Thu Sep 20, 2012 11:22 am
by Montis
roachburn wrote:Does anyone know how to get the notes to work without the text going out of the lines? I thought I read somewhere that a /n would perform a line break or whatever but it does not seem to work.
line breaks are \n, not /n

Re: Notes

Posted: Tue Nov 13, 2012 11:19 pm
by LordGarth
This is something I have tried alot to figure out. I will try this suggestion.

Thx,

LG

Re: Notes

Posted: Tue Nov 13, 2012 11:49 pm
by msyblade
I learned that ENTER will change the lines on a note much like wall text!

Re: Notes

Posted: Wed Nov 14, 2012 12:04 am
by Adrageron
msyblade wrote:I learned that ENTER will change the lines on a note much like wall text!
Yep, if note is lying on the floor. But if you want to spawn it in some alcove or monster, you must fill the text by scripting, and there "\n" must be used.