Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   showimg question(s) (https://forums.graalonline.com/forums/showthread.php?t=41868)

darkriders_p2p 01-09-2003 11:05 PM

showimg question(s)
 
ya, i have a couple questions, I made a rough chat system for a non-p2p server, and yes, i have a couple question(s).

I make it print out what you say to the other chatters (in this case myself :P) using showimg, and yes, i run into the problem of chat characters 'running' off the page. I am wondering if its possible to get the length of a showimg, so i can trim it down.
I though tokenize, but then relized it would be exactly the same problem, if someone entered extremely long sentences. If you can offer any help, please post :P

Jeff 01-10-2003 12:08 AM

see newfeatures2001.txt, specifically, the section on wraptext and wraptext2.

darkriders_p2p 01-11-2003 04:06 AM

Quote:

Originally posted by Jeff
see newfeatures2001.txt, specifically, the section on wraptext and wraptext2.
Ya I seen that awhile ago, and I couldn't get it to work with showimg/showtext, could someone post an example of it working with either?

something like this?
// The graphics I'm using of only for testing, actual graphics are being made.

wraptext2 imgwidth(norin_chat.gif)-4,.75,,SHOWIMG THING HERE;

Python523 01-11-2003 04:26 AM

wraptext/2 is just a different form of tokenize...

darkriders_p2p 01-11-2003 04:49 AM

Quote:

Originally posted by Kaimetsu


Debatable. It does things that tokenize cannot.

would wraptext be able to show text in a showimg, until it ran out of the 'chat window'?

darkriders_p2p 01-11-2003 05:01 AM

Quote:

Originally posted by Kaimetsu


It would be able to split text into chunks of given maximum size.

ya, I get that, I just don't know how to use it in conjunction with showimg.

Dach 01-11-2003 05:29 AM

Wraptext creates tokens of certain length, you must then use showtext with the tokens.

darkriders_p2p 01-11-2003 05:46 AM

I think I get this now, thanks o:

Jeff 01-11-2003 10:07 PM

Quote:

Originally posted by Kaimetsu


Debatable. It does things that tokenize cannot.

Not to go off topic, but I believe Jagen has unintentionally proven my point on too much reductionism leading to misunderstanding.

If you think wraptext is nothing more than tokenize by another name, you have a higher chance of forgetting what it is good for :)

Python523 01-11-2003 10:29 PM

what I ment by different form was that it is different than tokenize in that in divides the string into tokens but in a different way but it still makes tokens


All times are GMT +2. The time now is 11:40 AM.

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