ID:1489974
 
(See the best response by Albro1.)
I looked in the guide and the ref and it doesn't teach me how to use maptext at all.

Best response
Maptext is right here:

http://www.byond.com/docs/ref/info.html#/atom/var/maptext

The Guide isn't updated often so it isn't in there, but maptext is really simple.

maptext is just a string variable. Take a chunk of text and set the maptext to it.
mob.maptext = "test"


The maptext always shows up in the bottom left corner, and you can make the invisible "box" it is contained in (This box determines the wrapping and how much text is shown) different sizes by modifying the numerical variables maptext_width and maptext_height.

If you want to re-position the maptext, you have two main options (You can use them separately or together):

1. Create a new atom with no icon set and put it on the map/screen and modify its maptext (You need to take into account its location and what-not to make sure it stays where you want it).

2. Use inline HTML alignments and breaks to modify where the text is shown. <center>, <text align="top">, <br /> and others all work in maptext, as well as spaces. This method can get you pretty precise positioning.
Can you change the position? Also change the name like instead of src.maptext src.showlevel something like that?
and a way to smallin it or something?
In response to SpaceDragonK
SpaceDragonK wrote:
Can you change the position? Also change the name like instead of src.maptext src.showlevel something like that?

You can make text smaller/bigger using the <font> tag just like other text displayed in BYOND's interface.

You can change the position by moving the object.

You cannot change the name of a built-in variable. That's just not how programming languages work.
How do i change the position?
In response to SpaceDragonK
SpaceDragonK wrote:
How do i change the position?

By moving the object's location, screen_loc, transform, or step_x/step_y, or pixel_x/pixel_y, or bound variables.

If you press F1 in the DM editor, you will get access to something called the DM reference. If you search for variable names, it will tell you quite a lot about these kinds of things.

The very first paragraph in the DM reference for maptext is:

"This is optional text that will be displayed in the same position as the atom. If an atom has both an icon and maptext, the text will be displayed in front of the icon. Usually however, this is something that would be added to an overlay or image object, which can then be positioned with pixel offsets."

Which exactly answers your question.
can i use something like this

var/obj/MN = new

MN.pixel_y = -10
MN.maptext = "[src.level]"
src.maptext = MN


also is it shown for everyone or only for you?
No, you cannot do something like that. You cannot assign an object to a string.

You will need to add the object to the atom's overlays list.

Second, it will be shown for everyone who can see the object it is attached to.
Damit it shortens the word to the usr's objects maptext length and bounds isn't really working T.T
Did you even look up maptext_height and maptext_width?