Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-23-2001, 10:57 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
STATUS BARS x.X

ok, i made a status bar.. the thing is that when i enter a new level, it messes up.. = \ i WILL NOT post the script since all the newbies and midbies that need it will steal it, so any good scripter willing to help, ill PM the script. thank you
Reply With Quote
  #2  
Old 06-23-2001, 11:03 AM
Guest
Posts: n/a
Hmm... I will make you a status bar for life, mp, and ap. it will take be about 10-15 mins.
Reply With Quote
  #3  
Old 06-23-2001, 11:06 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
i already made them, i just need a good scripter that will fix it so that it works on all levels =\
Reply With Quote
  #4  
Old 06-23-2001, 11:10 AM
Guest
Posts: n/a
// NPC made by Ice Pick
timereverywhere;
timeout=.05;
if (playerenters) {
toweapons weapon name;
}
if (timeout) {
if (isweapon) {
showstats 1+2+4+8+16+256+512+1024;
this.pos = {screenwidth-180,30};
this.hpdisplay = ((playerhearts/playerfullhearts)*100);
this.mpdisplay = ((playermp/100)*100);
this.apdisplay = ((playerap/100)*100);
if (good) {
showimg 1,statsmenuname.gif,this.pos[0],this.pos[1];
}
else if (evil) {
showimg 1,statsmenuname.gif,this.pos[0],this.pos[1];
}
else {
showimg 1,statsmenuname.gif,this.pos[0],this.pos[1];
}
changeimgvis 1, 4;
if (this.hpdisplay>0) {
showimg 3,mpbarname.gif,this.pos[0]+15,this.pos[1]+33;
changeimgpart 3,0,0,this.hpdisplay,6;
changeimgvis 3,4;
}
else {
hideimg 3;
}
if (this.apdisplay>0) {
showimg 4,mpbarname.gif,this.pos[0]+15,this.pos[1]+50;
changeimgpart 4,0,0,this.apdisplay,6;
changeimgvis 4,4;
}
else {
hideimg 4;
}
if (this.mpdisplay>0) {
showimg 5,mpbarname.gif,this.pos[0]+17,this.pos[1]+66;
changeimgpart 5,0,0,this.mpdisplay,6;
changeimgvis 5,4;
}
else {
hideimg 5;
}
}
}
if (playerdies) {playerap=playerap;playermp=playermp;}

try that... I dunno if it works right though...
Reply With Quote
  #5  
Old 06-23-2001, 11:43 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
hello icepick, be really cool and make me a stats meeter, bai!
__________________

ICQ: 117881194
AIM: TehWizad
E-Mail: [email protected]
Reply With Quote
  #6  
Old 06-23-2001, 11:49 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
it's not for a normal bar, it's like.. a Stamina bar and it goes down with a timeout but messes up when you go in another level > _ < i alerady have every other type of status bar =\
Reply With Quote
  #7  
Old 06-23-2001, 05:58 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Well only advice I can think of is this:
put in "isweapon" flags in all stuff which it only needs to if it is a weapon, put a !isweapon flag in any things which it needs to do if it isn't a weapon, use strings for storing how many stamina the player has, and make sure that it doesn't reset the stamina everytime the player entesr another level.
__________________

Reply With Quote
  #8  
Old 06-23-2001, 09:22 PM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Bleh

Dont use timeout to count down. Timeout is really unreliable other than looping really fast =\
Id suggest a Variable
NPC Code:

if (isweapon) {
if (playerenters||timeout) {
timeout = 0.05;
if (this.time<=0) {
setstring stamina,#v(strtofloat(#s(stamina)) - 1);
this.time = 30;
}
this.time --;
}
}



Try something alonge those lines :o
__________________

subliminal message: 1+1=3
Reply With Quote
  #9  
Old 06-24-2001, 09:05 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
Hmm

Send me it i'll fix it : )
Yah Variables will work Alot better (Like Falados said)
Reply With Quote
  #10  
Old 06-24-2001, 01:57 PM
Marco2002 Marco2002 is offline
Registered User
Join Date: Jun 2001
Location: Germany
Posts: 77
Marco2002 is on a distinguished road
Send a message via ICQ to Marco2002
use a save[index] variable
it's much better for those things
__________________
Reply With Quote
  #11  
Old 06-25-2001, 12:39 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
Yah, send it to me too...

PS: I am supersonic, as stated below, i am cooler
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 05:47 AM.


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