PDA

View Full Version : Health/Magic Bar needed!


mystic_pheonix
04-12-2001, 12:26 PM
could someone tell me how to make a health/magic bar sort of like faheria?

kyle0654
04-12-2001, 12:32 PM
showimg indexhere, bar.imgfile, xonscreen, yonscreen;
changeimgvis indexhere, 4;
setimgpart indexhere, topleftx, toplefty, int((hpnow/hpmax)*barwidth), barheight;

now, three lines adds up to...21 gralat! hehe, j/k ;)

mystic_pheonix
04-12-2001, 12:37 PM
ok, ill try that

mystic_pheonix
04-12-2001, 12:39 PM
er... how about you make the WHOLE thing... im feeling lazy =^P

kyle0654
04-12-2001, 12:45 PM
uh...that is the whole thing...you just need to pick an index above 200, and do the other variables based on where on the screen you want it and how the graphic is made...

mystic_pheonix
04-12-2001, 12:46 PM
i dont want to pick anything... i want someone to do all that for me =^P

kyle0654
04-12-2001, 12:48 PM
oh, you're gonna have to pay me 1K in gralat on newmain then

mystic_pheonix
04-12-2001, 12:49 PM
that would be like giving you a bomy

kyle0654
04-12-2001, 12:51 PM
No, it would be like paying me 1K

so...you can either work with, and learn, the script I gave you, or give me 1000 gralat on newmain and have me do it all for you. The choice is yours

mystic_pheonix
04-12-2001, 12:53 PM
i think ill find someone to do it for me out of the goodness in their heart

kyle0654
04-12-2001, 12:56 PM
I did! It's right up there!

You see, if I just made it for you, if it ever had a problem in the future, you would have no idea how to fix it. However, if you take it and learn how it works, you can fix it in the future, or even make it kick butt more than it could now (try making it go up like in a bottle when you have more health)

but...if you want me to script it for you my offer still stands...

mystic_pheonix
04-12-2001, 01:00 PM
jeez, all i want is just a script that makes a little bar on your screen, and when you get hit it goes down

kyle0654
04-12-2001, 01:04 PM
Originally posted by kyle0654

showimg indexhere, bar.imgfile, xonscreen, yonscreen;
changeimgvis indexhere, 4;
setimgpart indexhere, topleftx, toplefty, int((hpnow/hpmax)*barwidth), barheight;

have you plugged that in yet?

indexhere = 200
bar.imgfile = (your status bar picture)
x/yonscreen = where on the screen (in pixels) you want the top left of the bar, from the top left of the screen.
topleftx/ywhere in the image file the top left of your bar is (probably 0,0)
barwidth/barheight how wide / tall your bar is
hpnow the player's current hp
hpmax the player's max hp

mystic_pheonix
04-12-2001, 01:05 PM
if i actually scripted that often i might know some of this stuff

mystic_pheonix
04-12-2001, 01:18 PM
besides i learn best by observing and watching others =^P

Thak2
04-12-2001, 07:33 PM
Kyle explained it very well and did everything for you pretty much, and you still need help?

mystic_pheonix
04-12-2001, 11:09 PM
hehe, im not very good (yet) at NPC making