need HUD

hi i am french and new to the world of the scripts, i wanna make a HUD but i don’t know for make that. if a guy can help me it’s good.

showimg 300,pics1.png,64,64;
changeimgvis 300,4; //4 et plus est GUI/HUD
changeimgpart 300,0,0,100 * (playerhearts / playerfullhearts),32; //Health Bar
if(playerhearts==0) hideimg 300;
timeout = 0.05;

GUI/HUD est primarily “showimg” dans layer 4 et plus.

thank you very very much! i have a last(s) question(s)

how i can show the healt bar on the middle (if i modify the windows’ size is again on the middle)
how i can hide the default HUD?
how to change variables;how to modify a variable and how to create a variable?
how to show the nickname on the HUD?
how to show a new number in link with a variable(on the HUD)
i think is:
if (variable = 1) {
showimg the layer,thenumber.png,thepo,sition;
}

so again thank you very much

can you take me the script for the default HUD?(the healt "ying-yang,the bows and arrows the item used etc)

I suggest a loop that reloads the hud. Like [CODE]if (created) {
timeout = 0.5;
}

if (timeout) {
//HUD-Code here
timeout=0.5;
}[/CODE]

use the command showstats

[QUOTE=commands.rtf]
showstats bitflag; shows/hides parts of the stats bar[/quote]

this.variablename = text;
player.variablename = text;
server.variablename = text;

not entirely sure, but I guess there’s some documentation at www.graal.net

#n is the var for the nickname according to commands.rtf (you should check it out, it’s in your graal-folder)

Not entirely sure. I’m not a scripter myself but I know the basics and what’s stated in the commands.rtf. I guess www.graal.net could have some information about that. Again, not entirely sure. :slight_smile:

I hope this is for some help atleast. :slight_smile:

Cadavre, player. and server. would be set with setstring.

thanks for that but i have again problems
i make that:

showstats 4; showstats 8; showstats 2; showstats 1; showstats 16; showstats 128; showstats 512; showstats 1024; showimg 300,pics1.png,64,64; changeimgvis 300,4; //4 et plus est GUI/HUD changeimgpart 300,0,0,100 * (playerhearts / playerfullhearts),32; //Health Bar if(playerhearts==0) hideimg 300; timeout = 0.05;

but the icons the mp the inventory the numbers of bombs arrows and rupees don’t show

i use “#n,#n 0” but “command not found”

thanks for help me

showstats 4+8+2+1+16+128+512+1024;

works the same without multipal lines . any problems with images not showing might be in the coords .

Ah, right. I stated that I’m not a scripter myself. I just learned some of it from other peoples scripts and posts here on the forum. Atleast I tried! :smiley:

O_o but it’s my 1st realy script it’s hard for me!
i try showtxt 300,#n,0,0; for show the nickname but is’nt that i try again again…

Have you tried #s(#n) ?

yes i have tried that bud no. i have a litte picture of my idea:

ps:beholder is a super scripter

if (playerenters || timeout) {
  timeout = 0.05;
  showtext 300,#n,10,10;
  changeimgvis 300,4;
}

You have to use changeimgvis to change the layer to 4, which would be the screenspace layer. Otherwise, it shows up at the top left corner of the level.

cool thanksi have just 2 last questions
how to don’t use state.png and use an other image?

and have you got a tip for createe a xp system? i think that

showimg 300,dpp_bar.png,20,10;
changeimgvis 300,4;
if (“myvariable”=“number”){
changeimgpart 300,0,0,1,5;
}
if (“myvariable”=“number”){
changeimgpart 300,0,0,10,5;
}
if (“myvariable”=“number”){
changeimgpart 300,0,0,20,5;
}
“etc etc…”
if(playerhearts==0) hideimg 300;
timeout = 0.05;

and on the bad npc:
if (“playerkill”)
{“myvariable +10”}

if
(variable xp= 100)
{variablelevel +1}

that right? (the commands in <<" ">> is not the realy command)

LOL

eh how to create a variable beholder?

I dunno, I just guessed. :stuck_out_tongue:

To create a variable:

b33fcAke = 3; //Assign Variable
message #v(b33fcAke); //Visual Output

okay that right! now i can create a xp system thanks!

yes i know,thanks