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 03-31-2006, 10:57 PM
wild8900 wild8900 is offline
Mr. Brightside
wild8900's Avatar
Join Date: Dec 2005
Posts: 418
wild8900 is an unknown quantity at this point
Send a message via MSN to wild8900
GUI probelms

I am having problems with my gui. It randomly works and stops working.
Normaly, the images stay in the left and corner of the screen but now the health bar wont stay there, it just stays on the map. what happened?

//#CLIENTSIDE
if (created){
enablepause;
timeout = .05;
}
if (timeout){
showimg 200,irata_gui.png,0,0;
changeimgvis 200,4;
changeimgpart 200,0,0,156,103;
//bar
if (playerhearts>0){
showimg 205,irata_gui.png,32,31;
changeimgpart 205,7,105,playerhearts*5,10;
changeimgvis 205,3;
changeimgcolors 205,1,1,1,0.5;}

if (playerhearts<1){
hideimg 205;}
//bar
if (playermp>0){
showimg 206,irata_gui.png,32,59;
changeimgpart 206,7,115,playermp,10;
changeimgvis 206,3;
changeimgcolors 206,1,1,1,0.5;}

if (playermp<1){
hideimg 206;}

showimg 201,@Verdana@#v(playerhearts)/20,69,31;
changeimgzoom 201,.495;
changeimgcolors 201,0,0,0,.99;
changeimgvis 201,10;

showimg 202,@Verdana@#v(playermp)/100,66,59;
changeimgzoom 202,.495;
changeimgcolors 202,0,0,0,.99;
changeimgvis 202,10;

showimg 203,@Verdana@: #v(playerrupees),30,82;
changeimgvis 203,9;
changeimgzoom 203,.495;
changeimgcolors 203,0,0,0,.99;

showimg 204,@Verdana@: #v(client.ep),105,82;
changeimgvis 204,9;
changeimgzoom 204,.495;
changeimgcolors 204,0,0,0,.99;
showimg 208,#f,160,16;
changeimgvis 206,11;


timeout = .05;
}
__________________
Reply With Quote
  #2  
Old 03-31-2006, 11:05 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Try for loops, and GS2 :-)

And why is your vis layer so high?
Gui should be like... 4
Then make text + images 5
Reply With Quote
  #3  
Old 04-01-2006, 04:57 AM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
Quote:
Originally Posted by wild8900
changeimgvis 205,3;

changeimgvis 206,3;
For starts, img vis of 3 puts it on the actual level iirc. 4+ is on the screen.
__________________
Who has time for life these days?
Reply With Quote
  #4  
Old 04-01-2006, 07:52 PM
wild8900 wild8900 is offline
Mr. Brightside
wild8900's Avatar
Join Date: Dec 2005
Posts: 418
wild8900 is an unknown quantity at this point
Send a message via MSN to wild8900
=O
I didn know that, I set my img layers to 4 and 5 and now it works.
Thanks
__________________
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 12:07 AM.


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