Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-09-2003, 11:05 PM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
Red face 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
__________________
maximus_asinus
Reply With Quote
  #2  
Old 01-10-2003, 12:08 AM
Jeff Jeff is offline
Registered User
Join Date: Oct 2002
Location: Nebraska, USA
Posts: 707
Jeff is on a distinguished road
see newfeatures2001.txt, specifically, the section on wraptext and wraptext2.
__________________
Jeff, the Archduke of Dustari
Member of the LAT on Graal The Adventure
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GO d+ s++:+ !a C++ UL+(UL+++)@ P+ L+(++)>+++ E---- W++@ N- !o ?K w(w--) !O !M@ !V PS- PE+ Y PGP t+ 5 X R tv(tv+) b++(b+)>b++++ DI(DI+) D-- G e->e++++ h! !r y
------END GEEK CODE BLOCK------
Reply With Quote
  #3  
Old 01-11-2003, 04:06 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
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;
__________________
maximus_asinus
Reply With Quote
  #4  
Old 01-11-2003, 04:26 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
wraptext/2 is just a different form of tokenize...
Reply With Quote
  #5  
Old 01-11-2003, 04:49 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
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'?
__________________
maximus_asinus
Reply With Quote
  #6  
Old 01-11-2003, 05:01 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
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.
__________________
maximus_asinus
Reply With Quote
  #7  
Old 01-11-2003, 05:29 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Wraptext creates tokens of certain length, you must then use showtext with the tokens.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #8  
Old 01-11-2003, 05:46 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
I think I get this now, thanks o:
__________________
maximus_asinus
Reply With Quote
  #9  
Old 01-11-2003, 10:07 PM
Jeff Jeff is offline
Registered User
Join Date: Oct 2002
Location: Nebraska, USA
Posts: 707
Jeff is on a distinguished road
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
__________________
Jeff, the Archduke of Dustari
Member of the LAT on Graal The Adventure
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GO d+ s++:+ !a C++ UL+(UL+++)@ P+ L+(++)>+++ E---- W++@ N- !o ?K w(w--) !O !M@ !V PS- PE+ Y PGP t+ 5 X R tv(tv+) b++(b+)>b++++ DI(DI+) D-- G e->e++++ h! !r y
------END GEEK CODE BLOCK------
Reply With Quote
  #10  
Old 01-11-2003, 10:29 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
Reply


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 09:24 PM.


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