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 08-10-2001, 05:36 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Text Color Changing

What is wrong with this and help me!
if (playertouchsme) {
toweapons *Text Coloring;
}
if (isweapon) {
if (strequals( #c, setfont white )) {
if (playerchats) {
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
changeimgcolors index,1,1,1,1.99;
changeimgzoom index,1;
}
}
if (strequals( #c, setfont blue )) {
if (playerchats) {
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
changeimgcolors index,0,0,1,1.99;
changeimgzoom index,1;
}
}
if (strequals( #c, setfont green )) {
if (playerchats) {
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
changeimgcolors index,0,1,0,1.99;
changeimgzoom index,1;
}
}
if (strequals( #c, setfont red )) {
if (playerchats) {
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
changeimgcolors index,1,0,0,1.99;
changeimgzoom index,1;
}
}
}
if (weaponfired) {
if (strequals( #c, setfont white )) {
if (playerchats) {
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
changeimgcolors index,1,1,1,1.99;
changeimgzoom index,1;
}
}
if (strequals( #c, setfont blue )) {
if (playerchats) {
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
changeimgcolors index,0,0,1,1.99;
changeimgzoom index,1;
}
}
if (strequals( #c, setfont green )) {
if (playerchats) {
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
changeimgcolors index,0,1,0,1.99;
changeimgzoom index,1;
}
}
if (strequals( #c, setfont red )) {
if (playerchats) {
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
changeimgcolors index,1,0,0,1.99;
changeimgzoom index,1;
}
}
say2 To change your font#bcolor say:#bsetfont [COLOR]#bHere are the colors:#bWhite#bRed#bBlue#bGreen;
}
Reply With Quote
  #2  
Old 08-10-2001, 06:12 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
if (playerchats && strequals(#c,setfont white)) {

All the setfont commands should start like that.

And, not bold(Bold). Just 1 plain lowercase b
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #3  
Old 08-10-2001, 06:41 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
no need to put it under if (weaponfired) {}
__________________
Do it with a DON!
Reply With Quote
  #4  
Old 08-10-2001, 08:27 AM
CrazedMerlin CrazedMerlin is offline
Some Guy :\
Join Date: Apr 2001
Posts: 3,619
CrazedMerlin is on a distinguished road
Send a message via AIM to CrazedMerlin Send a message via Yahoo to CrazedMerlin
Re: Text Color Changing

PHP Code:
if (playertouchsme) {
  
toweapons *Text Coloring;
}
if (
hasweapon(*Text Coloring)) {
  if (
playerchats&&strequals(#c,setfont white)) {
      
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
      
changeimgcolors index,1,1,1,1.99;
      
changeimgzoom index,1;
    }
  }
  if (
playerchats&&strequals(#c,setfont blue)) {
      
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
      
changeimgcolors index,0,0,1,1.99;
      
changeimgzoom index,1;
    }
  }
  if (
playerchats&&strequals(#c,setfont green)) {
      
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
      
changeimgcolors index,0,1,0,1.99;
      
changeimgzoom index,1;
    }
  }
  if (
playerchats&&strequals(#c,setfont red)) {
      
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
      
changeimgcolors index,1,0,0,1.99;
      
changeimgzoom index,1;
    }
  }
}
if (
weaponfired) {
  if (
playerchats&&strequals(#c,setfont white)) {
      
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
      
changeimgcolors index,1,1,1,1.99;
      
changeimgzoom index,1;
    }
  }
  if (
playerchats&&strequals(#c,setfont blue)) {
      
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
      
changeimgcolors index,0,0,1,1.99;
      
changeimgzoom index,1;
    }
  }
  if (
playerchats&&strequals(#c,setfont green)) {
      
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
      
changeimgcolors index,0,1,0,1.99;
      
changeimgzoom index,1;
    }
  }
  if (
playerchats&&strequals(#c,setfont red)) {
      
showimg index,@Tempus Sans ITC@bold(Bold)@#c,x,y;
      
changeimgcolors index,1,0,0,1.99;
      
changeimgzoom index,1;
    }
  }
  
say2 To change your font#bcolor say:#bsetfont [COLOR]#bHere are the colors:#bWhite#bRed#bBlue#bGreen;

maybe
__________________

ICQ: 117881194
AIM: TehWizad
E-Mail: [email protected]
Reply With Quote
  #5  
Old 08-10-2001, 10:30 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
They do work ^_^ but ='( they dont change the color of the players text
Reply With Quote
  #6  
Old 08-10-2001, 12:56 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Poogle
They do work ^_^ but ='( they dont change the color of the players text
*smacks Nick upside the head*

No can do. Player chattext is the same text, font, and size as specified in options menu which is the same style used for Nicknames.

using showimg to display text is more for visual signs, not chat text, altough it could be done it is not necessary

The hardest part would be keeping it centered above the player's head
__________________
Reply With Quote
  #7  
Old 08-10-2001, 02:12 PM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Quote:
Originally posted by G_yoshi


*smacks Nick upside the head*

No can do. Player chattext is the same text, font, and size as specified in options menu which is the same style used for Nicknames.

using showimg to display text is more for visual signs, not chat text, altough it could be done it is not necessary

The hardest part would be keeping it centered above the player's head
actually it would be nearly impossible since u cant get the size of the players screen + some other stuff which it needs to display the text like graal does.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #8  
Old 08-10-2001, 11:26 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by LiquidIce00


actually it would be nearly impossible since u cant get the size of the players screen + some other stuff which it needs to display the text like graal does.
variables for screen sizes. Screenwidth and Screenheight.
__________________
Reply With Quote
  #9  
Old 08-11-2001, 01:23 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by LiquidIce00


actually it would be nearly impossible since u cant get the size of the players screen + some other stuff which it needs to display the text like graal does.
So I should give up?
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:27 AM.


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