Page 1 of 2

FO:T "tags" to modify text

Posted: Tue Jul 02, 2002 8:22 pm
by Red
The usage is from memory, so some of it is probably wrong.... It used to be documented somewhere on the old DaC, but um... well, that's not there anymore. I documented this just a bit after the FO:T demo came out, and even emailed MF to tell them that this could still be used in a rather annoying way, which I won't bother documenting here :P. So anyway here's what I recall - the codes are RIGHT, as I looked for them in the executable, but their usage might be somewhat off.

[edit]: Thanks for JimmyJay for some missing info.

<tt>img:[file]</tt>
Link to an image. Don't rememeber which are supported, but I remember ZARs are. I think the "root" is the core directory, so to link a GUI character, you'd go img:gui\char\core_medic.zar
<tt>col:[integer value]</tt>
Sets font colour to integer value (B+G*256*R*65536, or much easyer, take the HTML colours (#RRGGBB) and tranform it into a decimal value (using good old Windows Calculator...))
<tt>rgb:[r],[g],</tt>
Sets font colour to RGB values...
<tt>p+</tt>
Start paragraph? Using "Tabwidth" pixels?
<tt>p-</tt>
End paragraph?
<tt>b+</tt>
Bold. Makes the font somewhat lighter.
<tt>b-</tt>
End Bold
<tt>Jj</tt>
Justifies as a paragraph
<tt>Jc</tt>
Justify text center
<tt>Jr</tt>
Justify text right
<tt>Jl</tt>
Justify text left
<tt>Co</tt>
Sets font colour orange
<tt>Cy</tt>
Sets font colour yellow
<tt>Cm</tt>
Sets font colour magenta
<tt>Cr</tt>
Sets font colour red
<tt>Cc</tt>
Sets font colour cyan
<tt>Cg</tt>
Sets font colour green
<tt>Cb</tt>
Sets font colour blue
<tt>Ck</tt>
Sets font colour black
<tt>Cw</tt>
Sets font colour white
<tt>C-</tt>
Resets font colour to original text colour
<tt>Fy</tt>
? Don't remember/Not tested
<tt>Fg</tt>
? Don't remember/Not tested
<tt>tabwidth:[width]</tt>
Sets tab width, in pixels.
\n
Line feed.

Posted: Tue Jul 02, 2002 8:48 pm
by Jimmyjay86
Wow, so you can put a picture in the speech? That is worth looking into.

Posted: Tue Jul 02, 2002 9:14 pm
by OnTheBounce
This only works in the demo, though. Correct?

Is there any way to strike out text? (It could be used for some humor in notes, for instance.)

Cheers,

OTB

Posted: Tue Jul 02, 2002 10:26 pm
by Red
No, they also work in the full game, however where they work has been more limited - and I beleive they only removed it from chats, though I could be wrong. But they do work in some places. The "diablo armour" for example uses the Jc and rgb codes to display the stats. And the place I reported the bug wasn't fixed either.

Also, I noticed there eemed to be a limit to the image size you could display through the img tag.

Posted: Wed Jul 03, 2002 12:20 am
by OnTheBounce
Red wrote:No, they also work in the full game...
Even w/o a strikeout option this stuff still has possibilities.
Red wrote:The "diablo armour" for example uses the Jc and rgb codes to display the stats.
I new about the RGB values working. I had posted about it earlier. That's very handy for using colored float-texts the same way the RPGs did.

Thanks.

OTB

Posted: Wed Jul 03, 2002 12:43 am
by Max-Violence
Damnit, Red, stop discovering new stuff so I can actually map instead of playing around with stuff! :P

Speaking of stuff, OTB, is it possible to use the RGB stuff in float text/windowed speech affect only some of the text in the node? Like if I had this:

M01_BobIsBored_A00 = {*sigh* Somebody kill me... please...}

Is there a way to make the "*sigh*" green (by default) and the rest of it, say, white?

The IMG thing would be handy if the NPC wants the PCs to find/kill something, the NPC could show a picture of whatever it is to the PCs. Cool.

Posted: Wed Jul 03, 2002 12:55 am
by OnTheBounce
Max-Violence wrote:Damnit, Red, stop discovering new stuff so I can actually map instead of playing around with stuff! :P
Now you know what I've been going through for 11 months now. :lol:
Max-Violence wrote:Speaking of stuff, OTB, is it possible to use the RGB stuff in float text/windowed speech affect only some of the text in the node?
I don't know. I say just use the color options that Red listed as follows:

M01_BobIsBored_A00 = {*sigh* [Cw]Somebody kill me... please...[C-]}

Or, if you wanted to be a bit more dramatic:

M01_BobIsBored_A00 = {*sigh* [Cw]Somebody[C-] [Cr]kill[C-] [Cw] me... please...[C-]}

This should make the "*sigh*" green, "Somebody" white, "kill" red and then the rest white again. Of course you should remember to repace the braces w/the appropriate symbols. :wink:

I'm going to have to play around w/this stuff. Especially the text options like justification, bold, etc. You could whip up some really professional looking holodisks this way...

OTB

Posted: Wed Jul 03, 2002 1:02 am
by Red
I beleive you don't need to [C-] all the time...
Normal [Cr]Red[Cw] White[C-] normal...

I'd have to play around with it I guess but I'm way too lazy :P

And to answer the question, no, there's no strike-through...

Finding what "new stuff"? This is all old news to me :)

Posted: Wed Jul 03, 2002 1:11 am
by OnTheBounce
Red wrote:I beleive you don't need to [C-] all the time...I'd have to play around with it I guess but I'm way too lazy :P
Guess it's good that I like to experiment then, eh? :lol: I'll play around w/this later today or tomorrow and post something.
Red wrote:And to answer the question, no, there's no strike-through...
That's...what...I...was...afraid of... :cry:

OTB

Posted: Wed Jul 03, 2002 1:14 am
by Jimmyjay86
Red said:
Finding what "new stuff"? This is all old news to me
Tell us what other old news you know Red!

Posted: Wed Jul 03, 2002 3:45 am
by Jimmyjay86
I tried the image tag and it works very well. I don't know of any applications in my current mission but I'll have to think about it. It could prove to be very useful. Maybe if you had enough science skill to use a terminal you could get a view on a closed-circuit television monitor of a defense or secret entrance. Or it could be used to show visual information in a mission briefing.

Posted: Wed Jul 03, 2002 6:55 am
by Max-Violence
Wonder why MF never used any of this "old news" stuff... probably lack of time.

Posted: Wed Jul 03, 2002 6:57 am
by Jimmyjay86
Well regardless, it's great that they do have the stuff in there for us Map-Rats! 8)

Posted: Wed Jul 03, 2002 7:43 am
by Section8
The Phoenix Engine can be surprisingly versatile. And I believe Red is right. IMG markup code was taken out of chat stuff, so people couldn't spam massive .ZARs during a MP game to fuck with someone else. Good stuff Red, half of this stuff isn't documented anywhere obvious on my end...

Posted: Wed Jul 03, 2002 8:01 am
by Red
Actually all markeup has been removed from the chat...

And given you guys are still working on Phoenix, I could point out where it still happens - and can be very annoying, since my last email visibly served no purpose...

Posted: Wed Jul 17, 2002 10:37 am
by Max-Violence
Bold... colors... images... WHAT? No italics? Bah! :P

Posted: Wed Jul 17, 2002 11:44 am
by Section8
DIY Italics.

#1 Tilt head
#2 Read text

Posted: Wed Jul 17, 2002 11:48 am
by Max-Violence
Section8 wrote:DIY Italics.

#1 Tilt head
#2 Read text
Uh, what? I just re-read Red's (re... read... Red... hmmm...) list, and I didn't see anything for italics.

Posted: Wed Jul 17, 2002 6:34 pm
by Jimmyjay86
He's giving you some of that quirky Aussie humour MV - tilt head, get it?

Posted: Wed Jul 17, 2002 7:56 pm
by Red
FYI, DIY = "Do It Yourself"