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 06-23-2004, 02:07 PM
DeFord DeFord is offline
<3 Old Val
Join Date: Nov 2002
Location: Irvine, CA
Posts: 53
DeFord is on a distinguished road
Send a message via AIM to DeFord
Question Showtext Problem

NPC Code:

//#CLIENTSIDE
// Graal2002 NPC by Stefan Knorr
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,head0.png;
setcharprop #C0,orange;
setcharprop #C1,white;
setcharprop #C2,blue;
setcharprop #C3,red;
setcharprop #C4,black;
setcharprop #2,shield1.gif;
setcharprop #n,Zach's Showpoly (NPC);
shieldpower = 1;
dir = 2;
}
if(playertouchsme)
{
showpoly 1,{x-1,y-1,x+10,y-1,x+10,y,x-1,y};
changeimgcolors 1,0,0,1,.35;
showpoly 2,{x-1,y,x+10,y,x+10,y+5,x-1,y+5};
changeimgcolors 2,1,1,1,0;
showtext 3,x-.9,y-.9,Comic Sans,,Conversation;
changeimgcolors 3,1,1,1,0;
changeimgzoom 3,.65;
showtext 4,x-.9,y+.1,Comic Sans,,Welcome to my house;
changeimgzoom 4,.65;
changeimgcolors 4,0,0,0,0;
showpoly 5,{x-1,y+6,x+3,y+6,x+3,y+7,x-1,y+7};
changeimgcolors 5,1,1,1,.35;
showtext 6,x-.9,y+6.1,Comic Sans,,Done;
changeimgzoom 6,.65;
changeimgcolors 6,0,0,0,0;
}


Everything works except the lines for img index 4 (The "Welcome to my House"). The code is almost similar to the img index 6, 6 works, but 4 does not. Any help? Probably a stupid mistake somewhere on my part.
__________________
-Zach Kline-
Reply With Quote
  #2  
Old 06-23-2004, 06:01 PM
Xecutor Xecutor is offline
Former UN Manager
Join Date: Apr 2004
Posts: 117
Xecutor is on a distinguished road
The text is being drawn under the image of the showpoly. Use:
NPC Code:
changeimgvis index,layer;



Won't take long to figure out.
Reply With Quote
  #3  
Old 06-23-2004, 08:29 PM
DeFord DeFord is offline
<3 Old Val
Join Date: Nov 2002
Location: Irvine, CA
Posts: 53
DeFord is on a distinguished road
Send a message via AIM to DeFord
Works now, thanks alot
__________________
-Zach Kline-
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:33 AM.


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