ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Change location text

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.

Change location text

Postby PHatDriver » Wed Apr 05, 2017 11:34 am

Hi all, only me...

I would like to change this white location text to black and change the font and size too?
This does not work in the standard libary LOOK:

%Player%.<font color=black>Location</font>.Description

Any ideas?

Thank you and much love.
Attachments
Adrift.png
Adrift.png (25.31 KiB) Viewed 837 times
Remanence, The Chosen. Expected release date: 2117!
65+kb and sill to finish part one! <- Nightmare
Carbide 100R window - XFX 750 Black - Asus Z170 AURA - i5 6600k
RX480 Saphire Nitro+ - Vengeance 2x8gb - Crucial MX300. [No OC]
User avatar
PHatDriver
 
Posts: 36
Joined: Sat Feb 11, 2017 11:47 am
Location: London

Re: Change location text

Postby Lazzah » Wed Apr 05, 2017 2:21 pm

Hi PhatDriver,

You do not do this in the LOOK task, you apply all HTML codes in the long description box for that particular location.

HTH
OUT NOW: The Lost Children
Current W.I.P.: Magnetic Moon
Also available: The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust - The Fist of Fire
User avatar
Lazzah
Moderator
 
Posts: 2042
Joined: Thu Mar 31, 2011 4:54 am
Location: London, England

Re: Change location text

Postby PHatDriver » Wed Apr 05, 2017 2:58 pm

Hi Lazzah,

Yeah thanx but is there no way to do it globally.
I have to do that for every single location in the game?
[panics/faints]
Remanence, The Chosen. Expected release date: 2117!
65+kb and sill to finish part one! <- Nightmare
Carbide 100R window - XFX 750 Black - Asus Z170 AURA - i5 6600k
RX480 Saphire Nitro+ - Vengeance 2x8gb - Crucial MX300. [No OC]
User avatar
PHatDriver
 
Posts: 36
Joined: Sat Feb 11, 2017 11:47 am
Location: London

Re: Change location text

Postby PHatDriver » Wed Apr 05, 2017 3:44 pm

Could I do it with:
Alternate Colour: <c></c>
That would make life a lot easier.
Remanence, The Chosen. Expected release date: 2117!
65+kb and sill to finish part one! <- Nightmare
Carbide 100R window - XFX 750 Black - Asus Z170 AURA - i5 6600k
RX480 Saphire Nitro+ - Vengeance 2x8gb - Crucial MX300. [No OC]
User avatar
PHatDriver
 
Posts: 36
Joined: Sat Feb 11, 2017 11:47 am
Location: London

Re: Change location text

Postby Lazzah » Wed Apr 05, 2017 3:59 pm

Ah, if you want to do it for the whole game, you should click on "Home" on the developer taskbar and then click on "Options". On the first tab you can select the colours you want the background and text to be.

WARNING: Many players have their own, often quite bizarre colour schemes for when they play games, which they set via the ADRIFT Runner settings and this will override what the author has set as his preferred colour scheme. This is very often because the player has seeing difficulties and they set the colours which suits them the best. I put a disclaimer on the Options page of my games informing the player that I set my games to be played cyan text on a black background and if they set it to something different they may have difficulty reading the text.
OUT NOW: The Lost Children
Current W.I.P.: Magnetic Moon
Also available: The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust - The Fist of Fire
User avatar
Lazzah
Moderator
 
Posts: 2042
Joined: Thu Mar 31, 2011 4:54 am
Location: London, England

Re: Change location text

Postby saabie » Thu Apr 06, 2017 12:45 am

PHatDriver wrote: %Player%.<font color=black>Location</font>.Description

You can't put font tags in the middle of a function. That should be:
adrift Code: Select all
 <font color=black>%Player%.Location.Description</font>

But that changes the color of both the short and long description.
If %Player%.Location.LongLocationDescription only printed the long location description then you could do them in different colors, but at the moment it does the same as %Player%.Location.Description and prints both.

To avoid having to edit every location you could use
adrift Code: Select all
<font color=black>%Player%.Location.Description
in the LOOK command text box (without the </font> tag) and then put the </font> tag in the short location description property of the [Everywhere] group. (set to "Append this to previous")
saabie
 
Posts: 846
Joined: Fri Aug 12, 2011 2:07 am
Location: Adelaide, South Australia

Re: Change location text

Postby PHatDriver » Mon Apr 10, 2017 5:43 pm

saabie wrote:To avoid having to edit every location you could use
adrift Code: Select all
<font color=black>%Player%.Location.Description
in the LOOK command text box (without the </font> tag) and then put the </font> tag in the short location description property of the [Everywhere] group. (set to "Append this to previous")

I would never have seen that!

Thank you so much!

You really have made my day.

It looks just as I want now

Sooo sexxyyyyy!
Remanence, The Chosen. Expected release date: 2117!
65+kb and sill to finish part one! <- Nightmare
Carbide 100R window - XFX 750 Black - Asus Z170 AURA - i5 6600k
RX480 Saphire Nitro+ - Vengeance 2x8gb - Crucial MX300. [No OC]
User avatar
PHatDriver
 
Posts: 36
Joined: Sat Feb 11, 2017 11:47 am
Location: London


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 5 guests

cron