Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   wraptext2 (https://forums.graalonline.com/forums/showthread.php?t=26322)

screen_name 03-26-2002 10:32 AM

wraptext2
 
okay, this is a awesome command, but what are the delimeters, they don't seem to work like they do in tokenize2

Kai, any help??

Saga2001 03-27-2002 03:01 AM

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.


All times are GMT +2. The time now is 04:45 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.