Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Level Design (https://forums.graalonline.com/forums/forumdisplay.php?f=6)
-   -   Sign question (https://forums.graalonline.com/forums/showthread.php?t=134267627)

brokk 12-23-2012 01:02 AM

Sign question
 
I wasn't sure whether to put this in the 'NPC scripting' section or not but I think the rules for signs and showtext are the same.

How do you go the next space down. Sounds dumb but I can't figure it out haha. :confused:

I think it has to do with the #

I checked the Graal editor to see all the sign functions but they didn't show any for next line down. I only want about 5 words per line.

callimuc 12-23-2012 01:06 AM

you mean like a new line? you can always use #b which should work

example:

HTML Code:

Hey#b
this is a new line

should also work for the say2() script command

brokk 12-23-2012 01:37 AM

Quote:

you mean like a new line? you can always use #b which should work

example:

HTML Code:
Hey#b
this is a new line
should also work for the say2() script command
I'm doing it in a showText :(
so it didn't work.

Sorry I should of specified

Hezzy002 12-23-2012 01:41 AM

\n

brokk 12-23-2012 01:53 AM

Quote:

\n
I did this and got an error of missing semi-colon?

Quote:

"test, test, test" /n "next line";

DustyPorViva 12-23-2012 01:55 AM

\n should be part of the string(in quotes). If you want it outside of the string then use NL.

So:
PHP Code:

"test, test, test\nnext line"

Or

PHP Code:

"test, test, test" NL "next line"


cbk1994 12-23-2012 02:38 AM

Are you sure showtext can display multiple lines of text? I'm pretty sure it won't and you'll just have to show multiple lines of text as separate images ("showtexts") with a different index.

DustyPorViva 12-23-2012 02:51 AM

Quote:

Originally Posted by cbk1994 (Post 1710326)
Are you sure showtext can display multiple lines of text? I'm pretty sure it won't and you'll just have to show multiple lines of text as separate images ("showtexts") with a different index.

Honestly I'm not sure, but don't care to bother testing it myself. At first I thought you were right and that it didn't... but now I'm not entirely sure. It may just work, but if it doesn't you're right, he'll have to go the individual images route(in which case if he wants flexibility he'll be parsing a line break anyways).


All times are GMT +2. The time now is 08:42 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.