Thread: wraptext2
View Single Post
  #2  
Old 03-27-2002, 03:01 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Strait from newfeatures2002.txt
- new script commands:
- wraptext linelength,delimiters,text;
Word-wraps a text into pieces each of length
'linelength'; the result can be accessed by reading
#t(0..tokenscount-1)
- wraptext2 pixelwidth,zoomfactor,delimiters,text;
Wraps a text depending on the visible text width;
instead of the numbers of characters you give the
width of the text on the screen (in pixels);
the text can be like in showimg, e.g. @TimesRoman@b@text
I am guessing its like this:
NPC Code:

if (playerenters) {
wraptext2 16*10,1,,Welcome to Graal Allz Youz Peoplez;
for (i=0;i<tokenscount;i++) {
showimg i,@#t(i),5,100+(i*15);
changeimgvis i,4;
}
}



So the delims can be like this:
NPC Code:

if (playerenters) {
wraptext2 16*10,1,^,Welcome to Gra^al Allz You^z Peop^lez;
for (i=0;i<tokenscount;i++) {
showimg i,@#t(i),5,100+(i*15);
changeimgvis i,4;
}
}



It just puts another break wherever that is, could be useful, somehow.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote