Staredit Network

Staredit Network -> StarForge -> Display Text Trigger
Report, edit, etc...Posted by sckor on 2005-02-13 at 02:17:23
You know in SCXE, you can press enter 5/6 times then type in your text, then type in the remaining number of lines, and that centers the text in the middle of the page right? (vertically).

I tried that with starforge, but it wouldn't work. And when I tried it in SCXE, then opened it up in Starforge, it was exactly the same thing... but when I tried it manually with starforge, it wouldn't work, and error would appear.

Bolt_Head Edit: Ohh your talking about display text (I spiffied up your title there for ya)
Report, edit, etc...Posted by Heimdal on 2005-02-13 at 11:32:04
It's perfectly possible to write multi-line display text triggers in starforge. All you need to do is remember that you have to begin and end the text with quotes. I tried the following action and it worked fine:

CODE
DisplayText("test
second line", 4);


After re-reading your post, I realized you wanted something more like this, which still works:

CODE
DisplayText("



test



", 4);


As an alternative to this, you can always edit the strings yourself in the string table.
Report, edit, etc...Posted by BeeR_KeG on 2005-02-13 at 11:35:25
What happens if my trigger looks like this:

Display text("Marine: " Drink A Beer"
*Drinks*", 4);

Would the two " ", interfere with the ones separating it in the trigger?
Report, edit, etc...Posted by Heimdal on 2005-02-13 at 11:38:02
Yes, that's what escape characters are for. To include a character that would otherwise conflict with the string parsing, you need to precede it with a backslash (\). To include an actual backslash, you write a double backslash (\\).

So for your example, the trigger would need to look like the following:

CODE
Display text("Marine: \" Drink A Beer\"
*Drinks*", 4);
Report, edit, etc...Posted by BeeR_KeG on 2005-02-13 at 11:43:56
Alright thanks, I believe almost no one knew that here.

ADDITION:
I added it to the SF FAQ so that no one forget.
Report, edit, etc...Posted by KaboomHahahein on 2005-02-13 at 12:45:45
QUOTE(BeeR_KeG[eM] @ Feb 13 2005, 11:43 AM)
Alright thanks, I believe almost no one knew that here.

ADDITION:
I added it to the SF FAQ so that no one forget.
[right][snapback]144223[/snapback][/right]



I knew that tongue.gif. Well just recently. I was testing the quotes in the other editors and in starforge it had the "\"
Report, edit, etc...Posted by (U)Bolt_Head on 2005-02-13 at 15:13:00
QUOTE(Heimdal @ Feb 13 2005, 10:38 AM)
Yes, that's what escape characters are for.  To include a character that would otherwise conflict with the string parsing, you need to precede it with a backslash (\).  To include an actual backslash, you write a double backslash (\\).

So for your example, the trigger would need to look like the following:

CODE
Display text("Marine: \" Drink A Beer\"
*Drinks*", 4);

[right][snapback]144220[/snapback][/right]


Ha Ha i didn't know that at all (or i forgot). That explains something weird that was happening to me yesterday though.
Next Page (1)