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 09-28-2001, 09:21 AM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
Bread Help

ok, i have this script, and i wanna make it so you can have more than one, and im getting new at this whole npc scripting with stuff like this.wahtever and stuff, can some one help me with this, i tried it but it doesn't work

NPC Code:

// NPC made by Urónd the Paladin
if (playertouchsme) {
toweapons Bread;
this.Bcount = +1;
}
if (isweapon && Bcount<1) {
destroy;
}
if (weaponfired && this.Bcount>1) {
playerhearts+=2;
this.Breadcount = -1;
}

Reply With Quote
  #2  
Old 09-28-2001, 10:05 AM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
ok Im gonna fix this, BUT I have to be able to use it on my server
ok?


// NPC made by Urónd the Paladin
if (playertouchsme) {
toweapons Bread;
this.Bcount = +1;
}
if (isweapon && Bcount<1) {
destroy;
}
if (weaponfired && this.Bcount>1) {
playerhearts+=2;
this.Bcount -=1;
}

That should fix it

and Im waiting for Kai, Rebel95 or possibly KJL to correct me

-freaky-
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock

Last edited by SSj_Link; 09-28-2001 at 10:15 AM..
Reply With Quote
  #3  
Old 09-28-2001, 10:14 AM
Speedoflight14 Speedoflight14 is offline
Registered User
Join Date: Apr 2001
Posts: 72
Speedoflight14 is on a distinguished road
you should never put it up until he says ok
__________________
Everyone is human.
Nobodys perfect
Reply With Quote
  #4  
Old 09-28-2001, 10:16 AM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
Quote:
Originally posted by SSj_Link
ok Im gonna fix this, BUT I have to be able to use it on my server
ok?


// NPC made by Urónd the Paladin
if (playertouchsme) {
toweapons Bread;
this.Bcount = +1;
}
if (isweapon && Bcount<1) {
destroy;
}
if (weaponfired && this.Bcount>1) {
playerhearts+=2;
this.Bcount -=1;
}

That should fix it

-freaky-
thanks, but only if it works can you use it, i'll tell you tommorow
Reply With Quote
  #5  
Old 09-28-2001, 10:18 AM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
Quote:
Originally posted by SSj_Link
ok Im gonna fix this, BUT I have to be able to use it on my server
ok?


// NPC made by Urónd the Paladin
if (playertouchsme) {
toweapons Bread;
this.Bcount = +1;
}
if (isweapon && Bcount<1) {
destroy;
}
if (weaponfired && this.Bcount>1) {
playerhearts+=2;
this.Bcount -=1;
}

That should fix it

and Im waiting for Kai, Rebel95 or possibly KJL to correct me

-freaky-
nope, dont work, didnt fix, but thanks for helping and not flaming or splodin a grenade on my face
Reply With Quote
  #6  
Old 09-28-2001, 10:22 AM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
Hmm I didnt care lol


if (playertouchsme) {
toweapons Bread;
this.Bcount = +1;
}
if (weaponfired && this.Bcount>=1) {
playerhearts+=2;
this.Bcount =-1;
}
if (isweapon && Bcount<1) {
destroy;
}

hmm maybe this.....

someone correct me

-freaky-
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock
Reply With Quote
  #7  
Old 09-28-2001, 07:31 PM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
ok, thanks for the help kamu (not sarcasim, im serious) but, i have know idea what you mean, so

NPC Code:

// NPC made by Urónd the Paladin
if (playertouchsme) {
toweapons Bread;
this.Bcount = +1;
}
if (weaponfired && this.Bcount>1) {
playerhearts+=2;
this.Bcount -=1;
if (isweapon && this.Bcount<1) {
destroy;
}
}



will work?
Reply With Quote
  #8  
Old 09-28-2001, 07:51 PM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
so i need
NPC Code:

// NPC made by Urónd the Paladin
if (playertouchsme) {
toweapons Bread;
this.Bcount = =1;
}
if (weaponfired && this.Bcount>1) {
playerhearts+=2;
this.Bcount ==1;
if (isweapon && this.Bcount<1) {
destroy;
}
}


or
NPC Code:

// NPC made by Urónd the Paladin
if (playertouchsme) {
toweapons Bread;
this.Bcount ==+1;
}
if (weaponfired && this.Bcount>1) {
playerhearts+=2;
this.Bcount -==1;
if (isweapon && this.Bcount<1) {
destroy;
}
}

Reply With Quote
  #9  
Old 09-28-2001, 08:03 PM
Metal-Slug Metal-Slug is offline
!_!
Metal-Slug's Avatar
Join Date: Jun 2001
Posts: 2,421
Metal-Slug is on a distinguished road
ok
Reply With Quote
  #10  
Old 09-28-2001, 09:54 PM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
+=
not
=+
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #11  
Old 09-29-2001, 12:37 AM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
ooh..
Hmm
Im not too good with this.variables and strings...

Kai, or anyone else, could you give me an example of how strings work with counts?
( like minerals in mining)


Thanks

-freaky-
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock
Reply With Quote
  #12  
Old 09-29-2001, 12:39 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
ok
setstring Bcount,strtofloat(#s(Bcount))+1;

that is adding 1
setstring Bcount,strtofloat(#s(Bcount))-1;
should work..
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #13  
Old 09-29-2001, 12:41 AM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
Thumbs up Thanks!

Thanks
Im just learning strings and this.variables
I now understand them both
^_^


-Freaky-
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock
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:48 AM.


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