Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Showtext Problem (https://forums.graalonline.com/forums/showthread.php?t=53339)

DeFord 06-23-2004 02:07 PM

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.

Xecutor 06-23-2004 06:01 PM

The text is being drawn under the image of the showpoly. Use:
NPC Code:
changeimgvis index,layer;



Won't take long to figure out.

DeFord 06-23-2004 08:29 PM

Works now, thanks alot


All times are GMT +2. The time now is 11:28 PM.

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