Graal Forums

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

SaijinGohan 09-21-2003 10:41 PM

Ok well I've figured it out. wraptext wont work the way I need it to be used. I'll use #e.

DustyPorViva 09-21-2003 11:00 PM

Quote:

Originally posted by SaijinGohan
Ok well I've figured it out. wraptext wont work the way I need it to be used. I'll use #e.
wraptext works with pixels I believe?

adam 09-21-2003 11:22 PM

Quote:

Originally posted by SaijinGohan
Well since my other post disappeared. -.-

NPC Code:
for (i=0;i<tokenscount;i++)setstring temp,#s(temp)#t(i)#b;



That #b is causing each word to be on a new line. :/ I don't think the wraptext is working. Maybe because it's serverside or does that not matter with wraptext?

no... that can't be the problem works fine for me.. would for you to if you just put it in an npc in an emtpy level and said something and touched it.

Python523 09-21-2003 11:41 PM

Quote:

Originally posted by DustyPorViva


wraptext works with pixels I believe?

wraptext2 does, wraptext doesn't

Mal1core 09-22-2003 12:17 AM

Quote:

Originally posted by SaijinGohan
Well since my other post disappeared. -.-

NPC Code:
for (i=0;i<tokenscount;i++)setstring temp,#s(temp)#t(i)#b;



That #b is causing each word to be on a new line. :/ I don't think the wraptext is working. Maybe because it's serverside or does that not matter with wraptext?

uhh, thats saying that for each token i gets + 1.., so the problem woudl be that for every word since the begining they are both equal, causing a #b for each word :) im so smart i figured that out by myself. ;P

try:
NPC Code:
for (i=5;i<tokenscount;i+=5;)setstring temp,#s(temp)#t(i)#b;



thats for 5 words a line.

SaijinGohan 09-22-2003 01:23 AM

The problem is wraptext doesnt work serverside and therefor was shortchanging the rest of the script.


All times are GMT +2. The time now is 01:28 AM.

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