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 12-20-2001, 11:51 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Lightbulb new stuff for showimg text

i think the letter 'f' should be added for fitted, to fit the text on the screen by returning when needed.

this would be very useful for chat programs, menus, etc.
Reply With Quote
  #2  
Old 12-20-2001, 03:37 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: new stuff for showimg text

Quote:
Originally posted by Warcaptain
i think the letter 'f' should be added for fitted, to fit the text on the screen by returning when needed.

this would be very useful for chat programs, menus, etc.
indeed it is, thanx a lot ...
Reply With Quote
  #3  
Old 12-20-2001, 11:17 PM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Re: Re: new stuff for showimg text

Quote:
Originally posted by nyghtGT

indeed it is, thanx a lot ...
Personally, I just want built in suport for wrapping text around when it overruns the screen...
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #4  
Old 12-21-2001, 01:05 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Ok, I don't know if this will work or not, but try something like this.

this.text = <yourtexthere>
this.text.SelStart = Len(this.text)
this.text.SelLength = 0

I wrote that in VB. I haven't tried it yet, but it may work. No clue.

Or try

this.text = Len(this.text)

I don't know if that'll work either, but you can try.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #5  
Old 12-21-2001, 01:45 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

if (playerchats){
this.length=strlen(#c);
for(this.done=0;this.done<int(this.length/32)+1;this.done++){
setstring chatline#v(this.done),#e(this.done*32,32,#c);
}
}

Something like that? I haven't tested in graal editor, but that's the basic idea...
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #6  
Old 12-21-2001, 02:45 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
yeah but that has a few flaws:


it doesnt take into affect the width of the font\letters, only the length of the text.

and if it wrapped automaticly wraps it no matter how many lines.

width of font\letters isnt scripted, so its impossible as is.

itd be very nice if stefan added a wrap option to showimg text
Reply With Quote
  #7  
Old 12-21-2001, 03:49 AM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
I wrote a script like this for Xaviar. The only problem was, it messes up when you use lower-case letters. But if you want to see it, forum PM me or give me an IM at C Y B N E X T.
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
Reply With Quote
  #8  
Old 12-21-2001, 03:53 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
this would be nice so that ya wouldn't have to keep makins small messages, ya can just make one big one without making it go of the screen
__________________
Reply With Quote
  #9  
Old 12-21-2001, 07:59 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Sure, you can script it, but I want hard-coded support for it...And Cybnext, it also went letter-by-letter, so it screwed up words on the end, I'm gonna re-do it
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #10  
Old 12-21-2001, 08:42 AM
ShockwaveISTHEBEST ShockwaveISTHEBEST is offline
Registered User
Join Date: Nov 2001
Location: never never land
Posts: 208
ShockwaveISTHEBEST is on a distinguished road
Send a message via AIM to ShockwaveISTHEBEST Send a message via Yahoo to ShockwaveISTHEBEST
That would make things a lot simpler putting it into the real graal scripting commands. It would take one line instead of the 4 or 5 we have to use now.
__________________
[img]http://rick.*******ers.net/ss/users/jerrytyrrell64/Shockwave%20Sig%2003.jpg[/img]
Reply With Quote
  #11  
Old 12-21-2001, 11:39 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
thats the point
Reply With Quote
  #12  
Old 12-21-2001, 03:01 PM
Cybnext_Design Cybnext_Design is offline
Registered User
Join Date: Jun 2001
Posts: 244
Cybnext_Design is on a distinguished road
Send a message via AIM to Cybnext_Design
Quote:
Originally posted by Xaviar
Sure, you can script it, but I want hard-coded support for it...And Cybnext, it also went letter-by-letter, so it screwed up words on the end, I'm gonna re-do it
It worked for me, although it might depend on different screenwidths, so I guess that might of been the problem
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
Reply With Quote
  #13  
Old 12-21-2001, 05:16 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
well the chat for my server allredy made text tha was over 42 charcters long everything after it it extracted and added to line t so itwould like like:

nyghtGT: blah blah blah Blah
blah bah blah
nyghtGT: testing ...
nyghtGT: testing ....

and so on ... this sorta helps, but like you guys have said... "it could be much better...."
Reply With Quote
  #14  
Old 12-21-2001, 08:21 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
This would be a pain but you could figure out what the actual pixel width of each letter and space is, but not a whole lot of people want to do that much work.
Reply With Quote
  #15  
Old 12-21-2001, 11:24 PM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by Cybnext_Design


It worked for me, although it might depend on different screenwidths, so I guess that might of been the problem
Nah, the problem was that if you typed "Once upon a time, there were three little bears.", and the first e in three went over the char limit per line, it would wrap it around like this:

"Once upon a time, there were thr
ee little bears."

But don't worry about it, I can set up my own
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #16  
Old 12-22-2001, 03:03 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Quote:
Originally posted by btedji
This would be a pain but you could figure out what the actual pixel width of each letter and space is, but not a whole lot of people want to do that much work.
still remember..

some fots are huge width\heigth

and some are very tiny.

and no way to determine the width of the individual character's width.


W
W
see difference in width?
Reply With Quote
  #17  
Old 12-22-2001, 10:50 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
but you can set the font on a chatting thing...
__________________
Reply With Quote
  #18  
Old 12-22-2001, 10:54 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
its something like:
showimg 202,@Copperplate Gothic Bold@buc@Menu,screenwidth/5+screenwidth/4,screenheight/4+screenwidth/45;
__________________
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 11:21 PM.


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