Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-26-2002, 10:32 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
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??
__________________
[signature]insert here[/signature]
Reply With Quote
  #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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:44 PM.


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