ID:165639
 
I know I saw this somewhere, I just can't remember where. How do you eliminate the "the" that BYOND automatically puts in front of lowercase-started words?
Just put a capital character instead of the lowercase.
In response to Stephen-San
What if I want to allow lowercase words?
In response to Seraphrevan
use [src.name]
In response to Stephen-San
Stephen-San wrote:
Just put a capital character instead of the lowercase.

That's not always an option, especially if the player is typing in something themselves.

You can use the text macro '\proper' before including the object in the string of text to cause BYOND to treat the object as a proper noun (a name).

Here's an example from the reference section about text macros. It uses macros other than \proper, but they work the same:

mob/verb/steal(M as mob,obj/O as obj in M)
O.loc = usr
view() << "[usr] finds \himself \an [O]."
In response to Seraphrevan
You merely have to capatalize the first letter.

Hint: look up copytext() and uppertext()..copy the first letter and cap it ith uppertext() than copytext() the rest.

- GhostAnime
In response to Jon88
Jon88 wrote:
Here's an example from the reference section about text macros. It uses macros other than \proper, but they work the same:

mob/verb/steal(M as mob,obj/O as obj in M)
> O.loc = usr
> view() << "[usr] finds \himself \an [O]."
>


"Android Data finds himself an the apple."