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 09-25-2001, 07:41 AM
Dnetick Dnetick is offline
Registered User
Join Date: Sep 2001
Location: USA
Posts: 136
Dnetick is on a distinguished road
Send a message via AIM to Dnetick
AP Script help...Another "bar" thing.

Okay, I got the HP working properly but I am still having trouble on the healing. Anyway, I decided to make it to where instead of having the AP bar in the normal place, we will have it in the corner along with a AP bar looking health so it looks good. We will also have our MP up there. Now, what I need help with, is the AP bar. I am gonna make some graphics for it later I will script it right now and then add in images. What do I start it out with. I have no idea if it is like the HP bar script.
__________________
- dmjof
- Fortara 1.28: 192.168.200.2
- Fortara 1.28: 14900
- Fortara 1.28 Guest:
guest:guest
email: [email protected]
aim: dmjof
PW Owner: Fortara
PW Site: http://froggyfun.freewebsites.com/findex.html
Reply With Quote
  #2  
Old 09-25-2001, 07:56 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
if (timeout){showimg 1,@Tahoma@Bold@#v(playerap),75,64;changeimgvis 1,4;}

=P
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #3  
Old 09-25-2001, 06:28 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
The script for all kinds of bars work exactly the same, only thing you ever have to change is the showing image name, the location the bar should be drawn and the maximum possible length of the bar.
__________________

Reply With Quote
  #4  
Old 09-26-2001, 04:08 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Hey would you like to have an HP and AP bar script? I'll give it to you.
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #5  
Old 09-26-2001, 04:14 AM
SSRobgeta SSRobgeta is offline
Ebil Cloud = l337 *kupo*
SSRobgeta's Avatar
Join Date: Aug 2001
Location: Monroeville, PA
Posts: 1,084
SSRobgeta is on a distinguished road
Send a message via AIM to SSRobgeta
Too bad here it is


// NPC made by Rob Getashu
// Change the pictures.
timereverywhere;
timeout=.05;
if (playerenters) {
toweapons -Hp Bar-;
}
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,----.gif,this.pos[0],this.pos[1];
}
else if (evil) {
showimg 1,----.gif,this.pos[0],this.pos[1];
}
else {
showimg 1,----.gif,this.pos[0],this.pos[1];
}
changeimgvis 1, 4;
if (this.hpdisplay>0) {
showimg 3,----.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,----.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,----.gif,this.pos[0]+17,this.pos[1]+66;
changeimgpart 5,0,0,this.mpdisplay,6;
changeimgvis 5,4;
}
else {
hideimg=0.5;
}
}
}
if (playerdies) {playerap=playerap;playermp=playermp;}
__________________
Rob Getashu
Anyone can show you the way, but the real adventure is finding it yourself..
Reply With Quote
  #6  
Old 09-26-2001, 05:11 AM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
IMGS!!!!!

Post the IMGs please

-FrEaKy CaRnIe-

I cant make imgs...
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock
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 01:54 PM.


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