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-21-2005, 08:38 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
showtext default font set?

Well, I have a few questions about the showtext font. I already know that specifying no font uses the default font.
What I would like to know is:
1. Does it support font parameters like "fantasy", "serif", and "sans-serif"?
2. Can you embed fonts? (doubt it, and doubt Stefan would add it if I asked for it)
Reply With Quote
  #2  
Old 12-21-2005, 04:02 PM
NicoX NicoX is offline
Kingdoms Management
NicoX's Avatar
Join Date: Mar 2004
Location: Frankfurt/Main, Germany
Posts: 1,933
NicoX will become famous soon enough
Send a message via AIM to NicoX Send a message via MSN to NicoX
Quote:
Originally Posted by jake13jake
Well, I have a few questions about the showtext font. I already know that specifying no font uses the default font.
What I would like to know is:
1. Does it support font parameters like "fantasy", "serif", and "sans-serif"?
2. Can you embed fonts? (doubt it, and doubt Stefan would add it if I asked for it)
You tell it a font to display, it displays that font. So in theory it should show everything you throw at it if you have the font in the first place.

Btw what means embed ? I belive you mean "emboss" ? If yes just use showtext twice. One on top of the other with a very slight difference.
And different colour - you'll probably want to make the showtext at the back darker. Light text on top of dark text.

NPC Code:

showtext 1,x,y,tempus sans itc,c,I am sexy;
showtext 2,x+.1, y+.1,tempus sans itc,c,I am sexy;
changeimgcolors 1,1,1,1,1;
changeimgcolors 2,0,0,0,1;

__________________
Yours Sincerely,

-Nico
(GK Management)

Clash: Nico, I'm going to give you an example of good management.
Clash: One of my staff removed my RC and banned me.
Clash: I didn't ban or remove their RC after I got another one to fix me.
Clash: Do you know why?
Björn: Because you IP banned him ?

Stefan logged on.
(npcserver) has reset the attributes of Stefan
*Stefan: ah my client crashed








Reply With Quote
  #3  
Old 12-21-2005, 05:37 PM
prozacboy666 prozacboy666 is offline
Registered User
Join Date: Mar 2002
Posts: 130
prozacboy666 will become famous soon enough
showtext index,x,y,font,style,text; shows text at the given position with font and style
*just put it there for reference*

As far as I know, you can put any font in your options menu. The only problem is if other people dont have it. I dont know if it reset the value to your settings on your computer or it just wont show up..
Reply With Quote
  #4  
Old 12-21-2005, 05:41 PM
NicoX NicoX is offline
Kingdoms Management
NicoX's Avatar
Join Date: Mar 2004
Location: Frankfurt/Main, Germany
Posts: 1,933
NicoX will become famous soon enough
Send a message via AIM to NicoX Send a message via MSN to NicoX
Quote:
Originally Posted by prozacboy666
showtext index,x,y,font,style,text; shows text at the given position with font and style
*just put it there for reference*

As far as I know, you can put any font in your options menu. The only problem is if other people dont have it. I dont know if it reset the value to your settings on your computer or it just wont show up..

Well I think it would show you new times roman or arial or something else if you dont have that Font. But I am not sure.
__________________
Yours Sincerely,

-Nico
(GK Management)

Clash: Nico, I'm going to give you an example of good management.
Clash: One of my staff removed my RC and banned me.
Clash: I didn't ban or remove their RC after I got another one to fix me.
Clash: Do you know why?
Björn: Because you IP banned him ?

Stefan logged on.
(npcserver) has reset the attributes of Stefan
*Stefan: ah my client crashed








Reply With Quote
  #5  
Old 12-21-2005, 06:50 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by NicoX
I belive you mean "emboss" ?
He does not mean "emboss", he means "embed". This means providing the font to the player's client if the client does not already have it, I believe.
Quote:
Originally Posted by NicoX
Well I think it would show you new times roman or arial or something else if you dont have that Font. But I am not sure.
If you do not have the font on your computer, it displays your system's default sans-serif font, I think.
__________________
Skyld
Reply With Quote
  #6  
Old 12-21-2005, 08:25 PM
Fry Fry is offline
Registered User
Fry's Avatar
Join Date: Sep 2001
Location: Germany
Posts: 384
Fry has a spectacular aura about
And you meant specifying font families with 1, and no, you can't do this with Graal. I guess it'd be good if you could specify the file name of a font downloadable by the client.
__________________
Graal Statistics

Top 3 servers at the moment (players):


Reply With Quote
  #7  
Old 12-21-2005, 09:22 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Skyld
He does not mean "emboss", he means "embed". This means providing the font to the player's client if the client does not already have it, I believe.
I thought he meant change fonts multiple times in one string of text, could be mistaken though. (No, that's not possible without multiple showtext/showimg calls.)

Quote:
Originally Posted by Skyld
If you do not have the font on your computer, it displays your system's default sans-serif font, I think.
I thought it displayed the font you had picked in your options menu?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #8  
Old 12-21-2005, 09:22 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by ApothiX
I thought it displayed the font you had picked in your options menu?
It might do, I don't remember.
__________________
Skyld
Reply With Quote
  #9  
Old 12-21-2005, 09:28 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Skyld
It might do, I don't remember.
Me either, and my IP address isn't set on #gscript, so I can't test. *HINT HINT* :P
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #10  
Old 12-22-2005, 04:20 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Ah, okay. So you can't do either. HTML supports both but the only browser that supports any kind of embedded fonts is IE. Embedded fonts might bring some copyright issues; I don't know how font licensing works exactly, but having default family fonts like sans-serif, serif, cursive and fantasy would be a pretty good idea in my opinion.
Reply With Quote
  #11  
Old 12-22-2005, 04:32 AM
Damix2 Damix2 is offline
RED SQUARE CLUB
Join Date: Nov 2003
Location: NY-what's better?
Posts: 3,577
Damix2 will become famous soon enough
Quote:
Originally Posted by ApothiX
Me either, and my IP address isn't set on #gscript, so I can't test. *HINT HINT* :P

fry or Chad mate =D
__________________
Reply With Quote
  #12  
Old 12-22-2005, 05:09 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by jake13jake
Ah, okay. So you can't do either. HTML supports both but the only browser that supports any kind of embedded fonts is IE. Embedded fonts might bring some copyright issues; I don't know how font licensing works exactly, but having default family fonts like sans-serif, serif, cursive and fantasy would be a pretty good idea in my opinion.
You can use whatever they have installed on their computer, I believe. (So all default Windows fonts should work for most people)

Quote:
Originally Posted by Damix2
fry or Chad mate =D
Blast these elusive people! My computer doesn't like IRC right now, so I'll have to wait until I get it fixed
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
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 02:32 PM.


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