Apothem Posted April 15, 2008 I dunno what I'm doing wrong, but it seems I'm putting it in right and it just wont show up on the screen. So at first I thought it was sethudsize, so I removed that from the picture. Now it's down to the basics of just replacing a piece of text and it wont even do that. So I'm utterly confused and now I'm at a loss as to what to do, if anyone can give me a suggestion as to what's wrong, it'd be appreciated. #include "zcommon.acs" #Define MONINIT 998 #Define APMON 997 int APC [8]; //the number indicates the amount of AP int ablAct [8]; //array check for toggling of active ability function int maxval (int x, int y) { if (x > y) { print(i:(x-y)); return (x - y); } return (y-x); } function int minval (int x, int y) { return 1; } function void UPDATEBAR (int lastval, int newval, int pnum) { //int acounter; //hudmessage(s:"pnum: ", i:pnum, s:"Diff:", i:diff, s:"apc:", i:apc[pnum]; HUDMSG_PLAIN, 202,1, 700, 75, 1); /* for(acounter = minval(lastval, newval); acounter < maxval(lastval, newval); acounter++) { setfont("fillcaut"); hudmessage(s:"a"; hudmsg_fadeout, acounter, 3, 56.1 + acounter << 16, 559.0, 1); }*/ // For when I figure the hard way out //for the time being.. print(s:"check"); //sethudsize(800,600,0); hudmessage(s:""; Hudmsg_plain , 50, CR_YELLOW, 0.1245, 0.9245, 0); hudmessage(i:apc[playernumber()]; Hudmsg_plain | hudmsg_log , 50, CR_YELLOW, 0.1245, 0.9245, 0); //<-- item causing problems } script 999 ENTER { Thing_changetid(0,1000+playernumber()); setactorproperty(0,APROP_ALPHA, 0.1); ACS_Execute(MONINIT, 0,0,0,0); } Script MONINIT (void) //initializes the display script for ap { int bcounter; int acounter; sethudsize(800,600,0); apc[playernumber()] = 100; //defaults the ap bar to full setfont("APSTATBR"); hudmessage(s:"a"; HUDMSG_PLAIN, 0, 0, 20.1,550.0,0); //pastes the bar on the screen updatebar(0, 100,playernumber()); acs_execute(APMON,0,0,0,0); } Script APMON (void) { int currentcheck; currentcheck = apc[playernumber()]; setfont("DEFAULT"); if (apc[playernumber()] > 100) { apc[playernumber()] = 100; } if (apc[playernumber()] < 0) { apc[playernumber()] = 0; } //print(s:"Execute 1"); while( apc[playernumber()] == currentcheck) { currentcheck = apc[playernumber()]; //hudmessage(s:"Current AP Value: ", i:apc[playernumber()]; HUDMSG_PLAIN, 202,1, 700, 45, 1); delay(1); } //print(i:currentcheck); updatebar(currentcheck, apc[playernumber()], playernumber()); //argument is for a better drawing method I haven't figured out yet delay(1); restart; } 0 Share this post Link to post