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 06-24-2002, 09:49 PM
faiola faiola is offline
Registered User
Join Date: Jun 2002
Posts: 27
faiola is on a distinguished road
Send a message via AIM to faiola
Question Horrible At Scipting and I Need Help

I Am Horrible at Scripting and i need help changing my heartsinto a new hearts that i made wher umm....do i start? well this is what i have so far but it don't work........:grrr: :grrr: :grrr:


// NPC made by X.Draco.X
if (created || timeout) {
this.hearts = playershearts;
setstring heartsthing,this.hearts;
showimg 2,@Dancin LET@c@#s(heartsthing),playerx+.5,playery-1.5;
timeout = .05;
}
if (playertouchsme) {
}


there i am trying to get it to just say 3 above the damn guys head.......
__________________
Reply With Quote
  #2  
Old 06-24-2002, 10:05 PM
jeff335 jeff335 is offline
Registered User
Join Date: Oct 2001
Posts: 605
jeff335 is on a distinguished road
The following is the one line you need:
NPC Code:

showimg 2,@#v(playerhearts)/#v(playerfullhearts),playerx+.5,playery-1.5;

__________________

Quote:
Some people like standing around talking to idiots in the real world, and some don't. Neither choice is inherently better than the other.

-Kaimetsu
Reply With Quote
  #3  
Old 06-24-2002, 10:10 PM
Cybnext Cybnext is offline
Registered User
Join Date: Jun 2002
Posts: 100
Cybnext is on a distinguished road
Quote:
Originally posted by jeff335
The following is the one line you need:
NPC Code:

showimg 2,@#v(playerhearts)/#v(playerfullhearts),playerx+.5,playery-1.5;

He is wanting to make a new HP system, not just use the current hearts.

NPC Code:

if (created || timeout) {
this.hearts = playershearts;
setstring heartsthing,#v(this.hearts);
showimg 2,@Dancin LET@c@#s(heartsthing),playerx+.5,playery-1.5;
timeout = .05;
}

Reply With Quote
  #4  
Old 06-24-2002, 10:33 PM
faiola faiola is offline
Registered User
Join Date: Jun 2002
Posts: 27
faiola is on a distinguished road
Send a message via AIM to faiola
Hmm yea that would be great Cybnext but um....it still is only giving me a 0 above my head?
__________________
Reply With Quote
  #5  
Old 06-25-2002, 01:59 AM
jeff335 jeff335 is offline
Registered User
Join Date: Oct 2001
Posts: 605
jeff335 is on a distinguished road
Actually, Cyb, it didn't look like an HP system. It looked like he was getting playerhearts ever .05 and displaying it
__________________

Quote:
Some people like standing around talking to idiots in the real world, and some don't. Neither choice is inherently better than the other.

-Kaimetsu
Reply With Quote
  #6  
Old 06-25-2002, 02:02 AM
Logo Logo is offline
Banned
Join Date: Nov 2001
Posts: 377
Logo is on a distinguished road
Send a message via AIM to Logo
Quote:
Originally posted by jeff335
Actually, Cyb, it didn't look like an HP system. It looked like he was getting playerhearts ever .05 and displaying it
lies
Reply With Quote
  #7  
Old 06-25-2002, 03:11 AM
faiola faiola is offline
Registered User
Join Date: Jun 2002
Posts: 27
faiola is on a distinguished road
Send a message via AIM to faiola
all i want is to learn how to make a friggin thing that goes above somone's head and display's a hp status to all but i ended up wiht this



// NPC made by X.Draco.X
if (timeout) {
showimg 2,@#v(playerhearts*1255)/#v(playerfullhearts*1255),playerx-1.5,playery-2;
timeout = .05;
}
if (playerenters) {
timeout = .05;
}
__________________
Reply With Quote
  #8  
Old 06-28-2002, 10:14 AM
Xbob42 Xbob42 is offline
Registered User
Join Date: May 2002
Posts: 429
Xbob42 is on a distinguished road
umm looks as though there's a mixup. Draco can you explain a little more in detail as to what you mean?
__________________
Criminal uses this account to post.
Reply With Quote
  #9  
Old 06-28-2002, 12:22 PM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
Quote:
Originally posted by faiola
all i want is to learn how to make a friggin thing that goes above somone's head and display's a hp status to all but i ended up wiht this



// NPC made by X.Draco.X
if (timeout) {
showimg 2,@#v(playerhearts*1255)/#v(playerfullhearts*1255),playerx-1.5,playery-2;
timeout = .05;
}
if (playerenters) {
timeout = .05;
}
if (created || timeout) {
showimg 1,@#v(playerhearts)/#v(playerfullhearts),playerx+.5,playery-2;
timeout = .05;
}
Done
Reply With Quote
  #10  
Old 06-28-2002, 09:16 PM
faiola faiola is offline
Registered User
Join Date: Jun 2002
Posts: 27
faiola is on a distinguished road
Send a message via AIM to faiola
Quote:
if (created || timeout) {
showimg 1,@#v(playerhearts)/#v(playerfullhearts),playerx+.5,playery-2;
timeout = .05;
}
Done

lovely....
but
i already had that
now i need a know how to put my own hp / mp bars up?
anyone can help me .........spankz
__________________
Reply With Quote
  #11  
Old 06-28-2002, 09:59 PM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
Quote:
Originally posted by faiola



lovely....
but
i already had that
now i need a know how to put my own hp / mp bars up?
anyone can help me .........spankz
if (created) {
showimg 300,@#v(playerap) AP,15,90;
showimg 301,@#v(playermp) MP,15,110;
changeimgvis 300,4;
changeimgvis 301,4;
}

Just learn to use showimg its very useful.

showimg index,filename,x,y;

If you wish to show text use " showimg index,@text,x,y; "
If you wish to use fonts in the text use " showimg index,@Arial@text,x,y;

I think I am right but any index under 200 shows the showimg to everyone. Any index above 200 shows it only to the player but not anyone else.

There are also commands that you can use with showimg like:
changeimgpart index,x,y,width,height;
changeimgvis index,drawingheight;
changeimgcolors index,red,green,blue,alpha;
changeimgzoom index,zoomfactor;

If you want to learn anything else IM me, I'll help you out.
Reply With Quote
  #12  
Old 06-28-2002, 10:29 PM
faiola faiola is offline
Registered User
Join Date: Jun 2002
Posts: 27
faiola is on a distinguished road
Send a message via AIM to faiola
you almost sounded like serious person there alex....
that was wierd.....your not on aim at all or you have me on ignore?
__________________

Last edited by faiola; 06-28-2002 at 11:11 PM..
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 09:46 PM.


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