ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Capitalizing 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.

Capitalizing text

Postby Lazzah » Tue Aug 27, 2019 2:32 pm

Hi all, Can someone help please?

I want to capitilize one word in a sentence which is in the restrictions of a task. I thought this - %UCase%%text%%LCase% - would work, but it doesn't. Can anyone please explain what I am doing wrong?

:Thanks:
WIP: The Lost Labyrinth of Lazaitch

ALSO AVAILABLE: The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust, The Lost Children, Run, Bronwynn, Run, Magnetic Moon, Starship Quest, Revenge of the Space Pirates
User avatar
Lazzah
Moderator
 
Posts: 2252
Joined: Thu Mar 31, 2011 4:54 am
Location: Dagenham, Essex
Points: 60

Re: Capitalizing text

Postby Denk » Tue Aug 27, 2019 3:13 pm

The text which is to be capitalized must be within square brackets.

This should work:
adrift Code: Select all
%UCase[%text%]%
----------------------------------------------------------------------
The Bash Saga:
1. The Dragon Diamond 2. The Way Home 3. Stone of Wisdom
----------------------------------------------------------------------
Denk
 
Posts: 279
Joined: Mon Feb 22, 2016 6:21 pm
Location: Hjørring, Denmark
Points: 56

Re: Capitalizing text

Postby Lazzah » Tue Aug 27, 2019 3:42 pm

Thanks Denk, I knew I was missing something!

:Thanks: :bravo: :claps: :D :yeah:
WIP: The Lost Labyrinth of Lazaitch

ALSO AVAILABLE: The Axe of Kolt, The Spectre of Castle Coris, The Fortress of Fear, Die Feuerfaust, The Lost Children, Run, Bronwynn, Run, Magnetic Moon, Starship Quest, Revenge of the Space Pirates
User avatar
Lazzah
Moderator
 
Posts: 2252
Joined: Thu Mar 31, 2011 4:54 am
Location: Dagenham, Essex
Points: 60


Return to ADRIFT 5.0

Who is online

Users browsing this forum: No registered users and 4 guests