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 04-12-2001, 11:26 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
could someone tell me how to make a health/magic bar sort of like faheria?
__________________
Justin
Reply With Quote
  #2  
Old 04-12-2001, 11:32 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
NPC Code:

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
Reply With Quote
  #3  
Old 04-12-2001, 11:37 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
ok, ill try that
__________________
Justin
Reply With Quote
  #4  
Old 04-12-2001, 11:39 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
er... how about you make the WHOLE thing... im feeling lazy =^P
__________________
Justin
Reply With Quote
  #5  
Old 04-12-2001, 11:45 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
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...
Reply With Quote
  #6  
Old 04-12-2001, 11:46 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
i dont want to pick anything... i want someone to do all that for me =^P
__________________
Justin
Reply With Quote
  #7  
Old 04-12-2001, 11:48 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
oh, you're gonna have to pay me 1K in gralat on newmain then
Reply With Quote
  #8  
Old 04-12-2001, 11:49 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
that would be like giving you a bomy
__________________
Justin
Reply With Quote
  #9  
Old 04-12-2001, 11:51 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
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
Reply With Quote
  #10  
Old 04-12-2001, 11:53 AM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
i think ill find someone to do it for me out of the goodness in their heart
__________________
Justin
Reply With Quote
  #11  
Old 04-12-2001, 11:56 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
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...
Reply With Quote
  #12  
Old 04-12-2001, 12:00 PM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
jeez, all i want is just a script that makes a little bar on your screen, and when you get hit it goes down
__________________
Justin
Reply With Quote
  #13  
Old 04-12-2001, 12:04 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Quote:
Originally posted by kyle0654
NPC Code:

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
Reply With Quote
  #14  
Old 04-12-2001, 12:05 PM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
if i actually scripted that often i might know some of this stuff
__________________
Justin

Last edited by mystic_pheonix; 04-12-2001 at 12:08 PM..
Reply With Quote
  #15  
Old 04-12-2001, 12:18 PM
mystic_pheonix mystic_pheonix is offline
Registered User
Join Date: Mar 2001
Location: Dunno
Posts: 123
mystic_pheonix is on a distinguished road
Send a message via AIM to mystic_pheonix Send a message via Yahoo to mystic_pheonix
besides i learn best by observing and watching others =^P
__________________
Justin
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 05:28 AM.


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