![]() |
Text, Font, all that wierd junk
Ok, I'm a little confused as to how to set fonts, what people use the @ for in scripts, and how to make text show up without drawing special images for every word, which I wouldn't waste time doing all that drawing... Can anyone help me out? Oh, and without using "message" or "setplayerprop #c,text" stuff, if possible...
|
showimg 1,@ariel@@<Text here>,x,y;
^ The font changeimgcolors 1,1,0,0,0; ^ Changes color to red |
I got it to work, but how do you get it to work with screenheight and screenwidth... I can't figure that one out...
|
showimg 200,@font here @b@text here,x,y;
|
Quote:
changeimgzoom ***** |
Alright thanks
|
w00ps
I posted after you did. Wasn't supposed to be in this order,lol. |
Quote:
|
Quote:
|
1 Attachment(s)
That look good? Well, aside from the NPC, that kinda sucks.
|
neato.
|
You know how to change color too right?
|
showimg index,@font@bicus@text,x,y;
changeimgzoom index; changeimgcolors index,red,green,blue,alpha; Ok. In showimg, bicus stands for: b = Bold i = Italic c = Center u = Underline s = Strikethru Use changeimgzoom to adjust the size of the font. Use changeimgcolors to change the color of the font. |
I know that X.X
i was asking him/her if he/she knew how to do it |
Quote:
showimg 201,@Sillytexthere,screenwidth/2-100,screenheight/2; changeimgvis 201,4; } SO the text would be nearly in the middle of the screen (I just subtracted 100 PIxel from screenwidth/2 because that should be nearly the size of my test-text I think :D) |
Quote:
|
Quote:
|
screenheight & width
...
alright it goes from left to right least to greatest... screenwidth is from _______________________________________________ |Graal: Doomsday_________________________________| |<- here to&n bsp; &nbs p; &n bsp; &nbs p; ^  ; & nbsp; &nb sp;here->| < screenwidth | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; screenheight & nbsp; &nb sp;   ;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; | &n bsp; &nbs p; &n bsp;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; | &n bsp; &nbs p; &n bsp;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; | &n bsp; &nbs p; &n bsp;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; | &n bsp; &nbs p; &n bsp;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; | &n bsp; &nbs p; &n bsp;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; | &n bsp; &nbs p; &n bsp;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; | &n bsp; &nbs p; &n bsp;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; | &n bsp; &nbs p; &n bsp;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; | &n bsp; &nbs p; &n bsp;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; | &n bsp; &nbs p; &n bsp;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; | &n bsp; &nbs p; &n bsp;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; | &n bsp; &nbs p; &n bsp;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; | &n bsp; &nbs p; &n bsp;| | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; & nbsp; to & nbsp; &nb sp;   ; | | & nbsp; &nb sp;   ; & nbsp; &nb sp;   ; h ere   ; & nbsp; &nb sp; | |_______________________________v_______________| heh i hope this formats right... screenwidth is the width <--> of the player's screen so if you wanted to display a text centered... it is: NPC Code: screenheight is the height ^ of the player's screen so the script to center text vertically is: | v NPC Code: got it? |
Yeah, I got it. I wasn't sure about subtracting from screenwidht/screenheight cause different size screens might make the text appear in wierd places, so I just used this code:
NPC Code: I didn't feel like using colours cause I'm not sure whether they're for p2p or non-p2p, and it's for a non-p2p PW. Anyway, thanks for all your help everyone. |
Re: screenheight & width
Quote:
|
welll damn i didnt even knwo that u could change the text well now i can do hahahahahahahaaha EBIL
|
| All times are GMT +2. The time now is 11:30 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.