HUD Script

[QUOTE=Yenairo;70961]
Okay.

Merged doublepost_______________


This is how I have it.
[/QUOTE]

Like Riley said put rupees on the inside since the number can go well over 1,000 thus pushing arrows (99) and bombs (99) to the right.

???

*did u do that?

I put them on the outside like Riley said.

Lol. k XD

___Merged doublepost__________________

So its done?

It’s not done, I still have to make the bars do what they do (You know, decrease. xD)
I also need to make it Mouse-Over. It’ll be done soon. Just not yet.

Yay :smiley:

___Merged doublepost__________________

Jesus, today i gained like 10-20 posts from this thread xD

D: I told myself I would post less upon my return…

xD
IS IT DONE YET? IS IT DONE YET?

Lol, i cant wait :stuck_out_tongue:

[spoilerbox=HUD][code]// NPC made by Yenairo for EXOTIC.
if (created||playerenters) {
toweapons -ExoticHUD;
timeout = 0.05;
}
if (timeout) {
timeout = 0.05;
showstats 256+512+1024;
//HUD
showimg 1000,riley_exoticgui.gif,0,0;
changeimgvis 1000,4;
changeimgpart 1000,0,0,112,24;
//WEAPON
showimg 1001,riley_exoticgui.gif,0,24;
changeimgvis 1001,4;
changeimgpart 1001,156,25,34,39;
//BOMBS
showimg 1002,riley_exoticgui.gif,155,3;
changeimgvis 1002,4;
changeimgpart 1002,0,28,17,19;
//ARROWS
showimg 1003,riley_exoticgui.gif,130,3;
changeimgvis 1003,4;
changeimgpart 1003,33,28,7,19;

//*Rupee Change
//Green = less than four
if(playerrupees =< 4){
showimg 1004,riley_exoticgui.gif,190,3;
changeimgvis 1004,4;
changeimgpart 1004,52,28,10,19;
}

//Blue = 5-29
if(playerrupees =< 29&&playerrupees => 5){
showimg 1004,riley_exoticgui.gif,190,3;
changeimgvis 1004,4;
changeimgpart 1004,69,28,10,19;
}

//Red = 30-99
if(playerrupees =< 99&&playerrupees => 30){
showimg 1004,riley_exoticgui.gif,190,3;
changeimgvis 1004,4;
changeimgpart 1004,86,28,10,19;
}

//Gold = 100-999
if(playerrupees =< 999&&playerrupees => 100){
showimg 1004,riley_exoticgui.gif,190,3;
changeimgvis 1004,4;
changeimgpart 1004,103,28,10,19;
}

//Black = 1,000-4,999
if(playerrupees =< 4999&&playerrupees => 1000){
showimg 1004,riley_exoticgui.gif,190,3;
changeimgvis 1004,4;
changeimgpart 1004,52,51,10,19;
}

//Purple = 5,000
if(playerrupees =< 9999&&playerrupees => 5000){
showimg 1004,riley_exoticgui.gif,190,3;
changeimgvis 1004,4;
changeimgpart 1004,69,51,10,19;
}

//Rainbow = 10,000
if(playerrupees => 10000){
showimg 1004,riley_exoticgui.gif,190,3;
changeimgvis 1004,4;
changeimgpart 1004,86,51,10,19;
}

//HP Bar
showimg 1005,riley_exoticgui.gif,3,5;
changeimgvis 1005,4;
changeimgpart 1005,117,5,playerhearts / playerfullhearts * 107,7;
if((mousescreenx in |3,109|)&&(mousescreeny in |5,11|)){
showimg 1006,@arial@#v(playerhearts)/#v(playerfullhearts),115/2-textwidth(0.5,arial,#v(playerhearts)/#v(playerfullhearts))/2,3;
changeimgvis 1006,5;
changeimgzoom 1006,0.5;
}
else {
hideimg 1006;
}

//MP Bar
showimg 1007,riley_exoticgui.gif,3,15;
changeimgvis 1007,4;
changeimgpart 1007,117,15,playermp / 100 * 107,7;

if((mousescreenx in |3,109|)&&(mousescreeny in |15,21|)){
showimg 1008,@arial@#v(playermp)/100,115/2-textwidth(0.5,arial,#v(playermp)/100)/2,13;
changeimgvis 1008,5;
changeimgzoom 1008,0.5;
}
else {
hideimg 1008;
}

if(playermp==0){
changeimgpart 1007,117,15,1,7;
}

//Weapon Image & Name
showimg 1009,#W,3,36;
changeimgvis 1009,4;
changeimgzoom 1009,0.6;
changeimgpart 1009,0,0,28,24;

showimg 1010,@arial@#w,1,64;
changeimgvis 1010,5;
changeimgzoom 1010,0.6;

//Bombs Arrows And Rupee Text
showimg 1011,@arial@#v(playerbombs),165-textwidth(0.5,arial,#v(playerbombs))/2,24;
changeimgvis 1011,4;
changeimgzoom 1011,0.5;

showimg 1012,@arial@#v(playerdarts),135-textwidth(0.5,arial,#v(playerdarts))/2,24;
changeimgvis 1012,4;
changeimgzoom 1012,0.5;

showimg 1013,@arial@#v(playerrupees),195-textwidth(0.5,arial,#v(playerrupees))/2,24;
changeimgvis 1013,4;
changeimgzoom 1013,0.5;
}[/code][/spoilerbox]

There ya go, I hope it works as good as it works in the editor. xD

Should code it like this just for the sake of saving space and improving readability in my opinion.

showimg 1004,riley_exoticgui.gif,190,3;
changeimgvis 1004,4;
if(playerrupees =< 4)changeimgpart 1004,52,28,10,19;//Green = less than four
else if(playerrupees =< 29)changeimgpart 1004,69,28,10,19;//Blue = 5-29
else if(playerrupees =< 99)changeimgpart 1004,86,28,10,19;//Red = 30-99
else if(playerrupees =< 999)changeimgpart 1004,103,28,10,19;//Gold = 100-999
else if(playerrupees =< 4999)changeimgpart 1004,52,51,10,19;//Black = 1,000-4,999
else if(playerrupees =< 9999)changeimgpart 1004,69,51,10,19;//Purple = 5,000-9999
else changeimgpart 1004,86,51,10,19;//Rainbow = 10,000 and greater 

You might have to put that changeimgvis statement at the bottom of the block of code for some reason, I cant remember exactly how graal draws -_-

You should get into the habbit of using else statements so checks can be skipped because there already known to be prooven false.

just saying…:munch:

Yeah, but it doesn’t burn MY brain (The coder) when I look at it.

OMG THIS IS AWESOME! COME ON AND LOOK!

–Post Comments Of the HUD below–

The image of the item you have selected is a bit screwed up :confused: its too low?

Aha! Blame it on Riley!

___Merged doublepost__________________

Now, cross, you have a few things to delete…x.x

List of things to be deleted:
My tutorial level
My bow script
My sword script
My hat script
My form script
My disco script(it’s actually tricxta’s but came from Noddess)
My bank script (it’s a version I fixed)
My server description(lolwut)
My storyline(ok, seriously?)

If you don’t agree with the storyline then look at Noddess and look at Exotic. On both servers you wake up complaining about baddies. Then you go through an escape route cave on your island. It takes you to the main island.

Maybe you guys will understand why I am constantly harrassing CrossFire. I think Exotic should be called Noddess V.1 Reborn.

[QUOTE=benjiro;71085]
List of things to be deleted:
My tutorial level
My bow script
My sword script
My hat script
My form script
My disco script(it’s actually tricxta’s but came from Noddess)
My bank script (it’s a version I fixed)
My server description(lolwut)
My storyline(ok, seriously?)

If you don’t agree with the storyline then look at Noddess and look at Exotic. On both servers you wake up complaining about baddies. Then you go through an escape route cave on your island. It takes you to the main island.

Maybe you guys will understand why I am constantly harrassing CrossFire. I think Exotic should be called Noddess V.1 Reborn.
[/QUOTE]

I dont have your server discription? And what hat script?

And btw, i want a story line… help me think of one and ill remove it.

Merged doublepost_______________

Well, Exotic will be closed today. Sorry for this.

[QUOTE=CrossFire;71093]And btw, i want a story line… help me think of one and ill remove it.[/QUOTE]

Your a kid who dreams of catching monsters in a sphere. You and your friend depart to catch the most monsters in a sphere. You go through bosses to get badges to go to the Elite Sphere Monster catchers.

[QUOTE=Mirage;71096]Your a kid who dreams of catching monsters in a sphere. You and your friend depart to catch the most monsters in a sphere. You go through bosses to get badges to go to the Elite Sphere Monster catchers.[/QUOTE]

I only like the first sentince… lol

Merged doublepost_______________

Benjiro, you’re form script is Tricxta’s, we talked about it and he basically gave it to us :stuck_out_tongue:

Merged doublepost_______________

So far i have all of thoughs done. Let me just fix the tutorial real quick and exotic will be open again.

Merged doublepost_______________

Joking aside, if you need help with a story line, PM me, and I’ll help you.