Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Health Bar Changing (https://forums.graalonline.com/forums/showthread.php?t=12626)

Dnetick 09-23-2001 06:49 AM

Health Bar Changing
 
Okay, if you read my post, "Fortara Update"
in the PW Forum, you will know that I am going
to start working on a AP Bar/Type Health thing.
I am wondering if someone could help me on
how to make it to where the Ying-Yang Health
Icons are a different image. Like the Bomies health.
It is like an AP bar.

Merlin 09-23-2001 07:03 AM

hide the original hearts with showstats
and add a new one with showimg

Dnetick 09-23-2001 07:24 AM

How do I make it to where the new image will do the Health Job. I mean like, it will do the Bomy-Type thing. Add and remove health from the new image.

Dnetick 09-23-2001 07:42 AM

Argh, How can I make it to where it dont show the Hearts, but, shows everything else. When I put showstats 32; it shoes it and not everythign else.

Merlin 09-23-2001 07:58 AM

if the hearts = 32 for showstats
do everything else
like showstats 1+2+etc for example.

Dnetick 09-23-2001 08:11 AM

Okay, it works now. Thanks Merlin. All I need now is how to put the image I want for the health bar in the place of the hearts

Merlin 09-23-2001 08:15 AM

here is an example spanky made this don't use it, just look at it:cool:

showimg 352,@Courier New@bc@#v(playerhearts),570,34;
showimg 351,merlinh.gif,550,45;
changeimgcolors 352,0,0,0,0;
changeimgzoom 352,0;
changeimgvis 352,4;
changeimgvis 351,4;
timeout=.05;

ownerofbabylon 10-14-2001 01:11 PM

what does @courier@new stuff do?

KJS 10-14-2001 01:20 PM

Quote:

Originally posted by ownerofbabylon
what does @courier@new stuff do?
@text
@fontname@text
@fontname@things like bold, underline, ect@text

that is how it can be formated

it will put text on the screen

ownerofbabylon 10-14-2001 08:34 PM

alright, i redid the state.png but now i realize i cant just make it replace like addtileder. I am going to try and script it. I will prolly be able to do the bombs arrows money hearts ap bar and so on but im a little worried about the a s and d things.

What commands should I use for scripting this

nyghtGT 10-14-2001 09:32 PM

Quote:

Originally posted by KJS


@text
@fontname@text
@fontname@things like bold, underline, ect@text

that is how it can be formated

it will put text on the screen

would the size go in where i underlined above ?

SagaTCN 10-14-2001 09:52 PM

You can use changeimgzoom for changing the size of the text. -Yin

nyghtGT 10-14-2001 09:55 PM

this wont work .....
 
why wont this work ?
NPC Code:

// NPC made by Nyght *Asst* (LAT Admin)
if (playerenters) {
@verdana@underline@This is so fawkin awesome !!!;
}


SagaTCN 10-14-2001 10:05 PM

It's meant to be used with showimg (ie. showimg 0,@text,x,y). -Yin

nyghtGT 10-14-2001 10:08 PM

yeah i see now but now how would i make a line break so text would appear under it ?
would i have to just use showimg again ?

SagaTCN 10-14-2001 10:44 PM

You'd probably have to use some string parsing techniques. Or, you could use the say2 command with #b. I believe Lady Midnight posted a string parsing script a while back, search through either the NPC Scripting or NPCServer forums. -Yin

nyghtGT 10-14-2001 11:56 PM

thanx anyway
 
i figured it out thanx anyway ........

btedji 10-15-2001 12:18 AM

someone really should make a tutuorial on this, its been asked a lot

Xaviar 10-15-2001 04:07 AM

Tutorial
 
Go read newfeatures2001.txt :D


All times are GMT +2. The time now is 05:32 PM.

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