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 03-02-2002, 12:18 AM
la_builder la_builder is offline
Registered User
Join Date: Jan 2002
Location: Holland
Posts: 154
la_builder is on a distinguished road
Question does a command exists.....

Is there a command that could dectect for example a baddy in the same level as you are (or even better in the 4 levels surounding you) and if there is is it p2p or non-p2p
__________________
Dark Frontier
The enemy is surrounding us all,more evil than a human could ever imagine.

Dark Fontier Coming Soon
Reply With Quote
  #2  
Old 03-02-2002, 12:51 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
cmpuscount, some for loops and compus[index].x compus[index].y
__________________
No Webhost at the moment
Reply With Quote
  #3  
Old 03-02-2002, 12:54 AM
la_builder la_builder is offline
Registered User
Join Date: Jan 2002
Location: Holland
Posts: 154
la_builder is on a distinguished road
Talking

bud would that really dectect it like if the baddy or something is in there that i could use a if statement
__________________
Dark Frontier
The enemy is surrounding us all,more evil than a human could ever imagine.

Dark Fontier Coming Soon
Reply With Quote
  #4  
Old 03-02-2002, 12:56 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
if (compuscount>0)
Reply With Quote
  #5  
Old 03-02-2002, 12:56 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by la_builder
bud would that really dectect it like if the baddy or something is in there that i could use a if statement
NPC Code:

if (playerenters && compuscount > 0) {
for (i=0;i<compuscount;i++) {
if (compus[i]. ....
code here...
}
}
}

__________________
No Webhost at the moment
Reply With Quote
  #6  
Old 03-02-2002, 02:06 AM
la_builder la_builder is offline
Registered User
Join Date: Jan 2002
Location: Holland
Posts: 154
la_builder is on a distinguished road
if (playerenters && compuscount > 0) { for (i=0;i<compuscount;i++) { if (compus([i],say2 hello)) } } } this wont work
(feels really noobisch right now)
__________________
Dark Frontier
The enemy is surrounding us all,more evil than a human could ever imagine.

Dark Fontier Coming Soon
Reply With Quote
  #7  
Old 03-02-2002, 02:48 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
I hate making detection scripts =(
Reply With Quote
  #8  
Old 03-02-2002, 04:13 AM
la_builder la_builder is offline
Registered User
Join Date: Jan 2002
Location: Holland
Posts: 154
la_builder is on a distinguished road
well i need it for sume things btw is there a dectection system that detects comps in 4 surrounding levels
__________________
Dark Frontier
The enemy is surrounding us all,more evil than a human could ever imagine.

Dark Fontier Coming Soon
Reply With Quote
  #9  
Old 03-02-2002, 04:54 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by la_builder
if (playerenters && compuscount > 0) { for (i=0;i<compuscount;i++) { if (compus([i],say2 hello)) } } } this wont work
(feels really noobisch right now)
omg X_x
example:

if (compus[i].x in |0,32|) message lalala;


watch the commads.rtf what u can use instead of the x
__________________
No Webhost at the moment
Reply With Quote
  #10  
Old 03-02-2002, 02:01 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Kaimetsu
Can't check out surrounding levels, however. Maybe if you did some tricks with the NPC Server, but not normally.
Yeah, maybe some sort of level probing, hmph, maybe whatever the direction of the player is have some sort of invisible npc that goes into the level in front of the player and test for compus and send it back to the player's system...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #11  
Old 03-02-2002, 02:33 PM
la_builder la_builder is offline
Registered User
Join Date: Jan 2002
Location: Holland
Posts: 154
la_builder is on a distinguished road
k thanks
__________________
Dark Frontier
The enemy is surrounding us all,more evil than a human could ever imagine.

Dark Fontier Coming Soon
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 07:28 PM.


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