Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-26-2001, 08:33 AM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
npcs affecting other npcs

ok how would i make it so when i use one npc on another on it afects that npc. like say i make a rod that shoots out a fire npc and the fire npc hits another npc ow owuld i make it so it would set a flag?
__________________

  #2  
Old 06-26-2001, 12:28 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool you would...

you would have to check the x and y of the npcs (that is if they walk around randomly but if they are going in like 1 path and always that path then you can just use sleep until there at the position they want to do the stuff...)...
you would have to know the index of the npcs I guess also...
__________________
Thanks,
-KJL
  #3  
Old 06-26-2001, 05:01 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Re: you would...

Quote:
Originally posted by KJS
you would have to check the x and y of the npcs (that is if they walk around randomly but if they are going in like 1 path and always that path then you can just use sleep until there at the position they want to do the stuff...)...
you would have to know the index of the npcs I guess also...
Or you could use triggeraction for it.
__________________

  #4  
Old 07-10-2001, 11:23 PM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
Angry

I need to learn NPC. =(
__________________

Job: A Legend

And you think that you have played Graal forever? Ha!
  #5  
Old 07-17-2001, 10:42 PM
DuckyJ DuckyJ is offline
Registered User
Join Date: Jun 2001
Location: Maryland
Posts: 93
DuckyJ is on a distinguished road
Send a message via ICQ to DuckyJ Send a message via AIM to DuckyJ
wellfor putnpc what I liek to do to affect another one is
that you make a var that doesnt have this. on the front of it so

// I like arrays;

setarray myarray,1;

if (playersays(blah + 1)&&playerchats) {
myarray[0] = myarray[0] + 1;
}

and on the other npc

if (myarray[0] = 1) {
destroy;
}

// another script

int blah;
// I think this is how you declare it Not sure I dont do it much;
// you might not need to declare it but you do in C++ so try
// Anyways.
if (playertouchsme) {
blah = 0;
blah = blah + 1;
}

// On the other NPC

if (blah==1) {
destroy;
// Just an example;
}

// There you have a preety simple script, not sure it will work with
// NPC server though.
__________________
"Death is like being locked in a closet - locked away from life." - Me

"Sympathy is a Virtue, but only if your on the receiver side, otherwise, it's just another hole in your wallet." - Me

Ducky Vs The Devil
Devil:Give me your soul and I will give you anything.
Ducky:What happens when I give you my soul?
Devil:When you die you go straight to hell, no if ands or buts, but while your alive you get anything you want!
Ducky:Okay*signs soul certificate entitling the Devil to his soul*
Devil:Now whats the first thing you want?
Ducky:Too live forever.



Bill Clinton VS the Big Dubya
Bill:I get alot of *****.
Bush:I try to lower the eco-projects to keep gas in your car.
Bill:Im Democrat and I hate Doctors.
Bush:Im Republican and my daughter drinks alcohol and Im Proud of it!
Bill:Atleast I get some.
Bush:Look who won the election, then look at who almost got Impeached!
Bill:Whats Impeached? A Peach that was Imed?
Bush: Democraps...oops, did I just say that?
Bush:Monicas a fat pig.
Bill:SHES ONLY 200 POUNDS!
visit my LiveJournal
  #6  
Old 07-17-2001, 10:44 PM
DuckyJ DuckyJ is offline
Registered User
Join Date: Jun 2001
Location: Maryland
Posts: 93
DuckyJ is on a distinguished road
Send a message via ICQ to DuckyJ Send a message via AIM to DuckyJ
use a putnpc command to put a fire npc and have the fire nPC move acccross the screen and then do like what theysaid triggeraction
__________________
"Death is like being locked in a closet - locked away from life." - Me

"Sympathy is a Virtue, but only if your on the receiver side, otherwise, it's just another hole in your wallet." - Me

Ducky Vs The Devil
Devil:Give me your soul and I will give you anything.
Ducky:What happens when I give you my soul?
Devil:When you die you go straight to hell, no if ands or buts, but while your alive you get anything you want!
Ducky:Okay*signs soul certificate entitling the Devil to his soul*
Devil:Now whats the first thing you want?
Ducky:Too live forever.



Bill Clinton VS the Big Dubya
Bill:I get alot of *****.
Bush:I try to lower the eco-projects to keep gas in your car.
Bill:Im Democrat and I hate Doctors.
Bush:Im Republican and my daughter drinks alcohol and Im Proud of it!
Bill:Atleast I get some.
Bush:Look who won the election, then look at who almost got Impeached!
Bill:Whats Impeached? A Peach that was Imed?
Bush: Democraps...oops, did I just say that?
Bush:Monicas a fat pig.
Bill:SHES ONLY 200 POUNDS!
visit my LiveJournal
 


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 10:59 AM.


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