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-30-2001, 01:06 AM
lord blade lord blade is offline
Registered User
Join Date: Jun 2001
Location: Arizona
Posts: 27
lord blade is on a distinguished road
Send a message via ICQ to lord blade
reconizing everyone

how can i a npc(or rather a command) that only reconizes the leader(first to enter the level) to reconize everyone?
__________________

Which way is the correct path, as I stand upon this chaotic crossroad of hate?
How many ways are there to roam on this dark and damned road of Fate?
There are many ways, my son, to find where the souls Demons remain...
But it takes only a moment of despair and doubt until at last, your soul they will gain...
Inherit these lands, these things, these dreams forever yours to adore...
For there is no life, in the depths of chaos, my son, for you to explore...
Reply With Quote
  #2  
Old 06-30-2001, 01:40 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
What do you want this NPC to do?
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #3  
Old 06-30-2001, 01:42 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
Talking

yea, thats really simple, we just hafta know what ya want the npc ta do =/
Reply With Quote
  #4  
Old 06-30-2001, 04:45 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Hrm...

You want the NPC to say the name of the players that are in the room?
Reply With Quote
  #5  
Old 06-30-2001, 04:56 AM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
LOL!
if (playerenters&&isleader) {
do schtuffz;
}
Reply With Quote
  #6  
Old 06-30-2001, 07:33 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Ordinary:
if(playerenters||timeout){
shootball;
timeout=5;
}

There will only be one timeout running, and that only for the first to enter the level (he sets the timeout, everyone else's setting is ignored).

Multiplayer:
if(playerenters||timeout){
shootball;
timereverywhere;
timeout=5;
}

Timereverywhere makes a seperate instance of the timer for everyone who enters the level. So player 1 has his timeout, etc.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #7  
Old 06-30-2001, 07:51 AM
lord blade lord blade is offline
Registered User
Join Date: Jun 2001
Location: Arizona
Posts: 27
lord blade is on a distinguished road
Send a message via ICQ to lord blade
k...

its not an issue of timeouts or i would have dont the timereverywhere.. i'm detecting people saying things(ifplayerchats then checking the #c for a certain word) but its only working for the first person to enter the level here is the script

if (playerchats&&strequals(#c,done)&&(strequals(#g,Ev ents Team)){
show;
message Staff say start to begin;
}
__________________

Which way is the correct path, as I stand upon this chaotic crossroad of hate?
How many ways are there to roam on this dark and damned road of Fate?
There are many ways, my son, to find where the souls Demons remain...
But it takes only a moment of despair and doubt until at last, your soul they will gain...
Inherit these lands, these things, these dreams forever yours to adore...
For there is no life, in the depths of chaos, my son, for you to explore...
Reply With Quote
  #8  
Old 06-30-2001, 08:57 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Ah ha!
NPC Code:

if (playerchats&&strequals(#c,done)&&(strequals(#g,Ev ents Team)){
show;
message Staff say start to begin;
}


The problem is that you are missing a parenthesis. There should be 3 parenthesis ending the if command. Try this:

NPC Code:

if (playerchats && strequals(#c,done) && (strequals(#g,Events Team))) {
show;
message Staff say start to begin;
}


In fact, you don't need the parenthesis in front of the second strequals.

NPC Code:

if (playerchats && strequals(#c,done) && strequals(#g,Events Team)) {
show;
message Staff say start to begin;
}


That should work.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #9  
Old 06-30-2001, 10:08 AM
lord blade lord blade is offline
Registered User
Join Date: Jun 2001
Location: Arizona
Posts: 27
lord blade is on a distinguished road
Send a message via ICQ to lord blade
nope

thats not the problem actually i have the right amount of closing i just copied it wrong
__________________

Which way is the correct path, as I stand upon this chaotic crossroad of hate?
How many ways are there to roam on this dark and damned road of Fate?
There are many ways, my son, to find where the souls Demons remain...
But it takes only a moment of despair and doubt until at last, your soul they will gain...
Inherit these lands, these things, these dreams forever yours to adore...
For there is no life, in the depths of chaos, my son, for you to explore...
Reply With Quote
  #10  
Old 06-30-2001, 10:22 AM
T-Squad T-Squad is offline
Banned
T-Squad's Avatar
Join Date: Mar 2001
Location: United States of America
Posts: 1,733
T-Squad is on a distinguished road
Quote:
Originally posted by BocoC
Ah ha!
NPC Code:

if (playerchats&&strequals(#c,done)&&(strequals(#g,Ev ents Team)){
show;
message Staff say start to begin;
}


The problem is that you are missing a parenthesis. There should be 3 parenthesis ending the if command. Try this:

NPC Code:

if (playerchats && strequals(#c,done) && (strequals(#g,Events Team))) {
show;
message Staff say start to begin;
}


In fact, you don't need the parenthesis in front of the second strequals.

NPC Code:

if (playerchats && strequals(#c,done) && strequals(#g,Events Team)) {
show;
message Staff say start to begin;
}


That should work.
Boco is officially the script idiot! Nice work!
Reply With Quote
  #11  
Old 06-30-2001, 11:20 AM
lord blade lord blade is offline
Registered User
Join Date: Jun 2001
Location: Arizona
Posts: 27
lord blade is on a distinguished road
Send a message via ICQ to lord blade
hehe

LOL.. i think i might have figured out the problem actually i only copied one part of the command and the npc also uses sleeps.. i found out that it actually is reconizing all the people but when it gets to the sleep part it just stops if the leader isn't using it. i tried using timereverywhere and its still not working though =\
__________________

Which way is the correct path, as I stand upon this chaotic crossroad of hate?
How many ways are there to roam on this dark and damned road of Fate?
There are many ways, my son, to find where the souls Demons remain...
But it takes only a moment of despair and doubt until at last, your soul they will gain...
Inherit these lands, these things, these dreams forever yours to adore...
For there is no life, in the depths of chaos, my son, for you to explore...
Reply With Quote
  #12  
Old 06-30-2001, 11:46 AM
lord blade lord blade is offline
Registered User
Join Date: Jun 2001
Location: Arizona
Posts: 27
lord blade is on a distinguished road
Send a message via ICQ to lord blade
its fixed, twas a dumb mistake on my part
__________________

Which way is the correct path, as I stand upon this chaotic crossroad of hate?
How many ways are there to roam on this dark and damned road of Fate?
There are many ways, my son, to find where the souls Demons remain...
But it takes only a moment of despair and doubt until at last, your soul they will gain...
Inherit these lands, these things, these dreams forever yours to adore...
For there is no life, in the depths of chaos, my son, for you to explore...
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:41 AM.


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