Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-28-2004, 07:05 PM
Orbit45244 Orbit45244 is offline
Registered User
Join Date: Jun 2004
Posts: 8
Orbit45244 is on a distinguished road
Commands

How do you make it so that when a specific person says something, somthing in the level happens?
  #2  
Old 06-28-2004, 07:07 PM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
NPC Code:
if (playerchats && strequals(#a,Account name of specific person) && strequals(#c,when they say this)) {
do this stuff;
}



I guess thats understandable... and I presume by specific person yo meant a specific account.
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache

Last edited by Polo; 06-28-2004 at 07:08 PM.. Reason: Released you said specific person...
  #3  
Old 06-28-2004, 07:09 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Read commands.rtf to see the available commands.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
  #4  
Old 06-28-2004, 07:11 PM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
Im mine you should 'probably' split the 2 strequals into a seperat nested if statement, but unless your doing multiple chat based stuff its not going to make a difference, just thought i'd mention it to please the pedants amongst us.
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
  #5  
Old 06-28-2004, 07:20 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Err I would prefer you didnt use &&.

1) It goes against the scripting standards or whatever kai posted for posting scripts on the board

2) It's ugly and debugging it is a pain
__________________
  #6  
Old 06-28-2004, 07:24 PM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
Yes, but's Kai's standards arn't necessarily the 'DO THIS OR DIE' correct method. There are things in it which, as a coder, I strongly disagree with. Im not saying that Kai's standards are wrong, I'm just saying that trying to impose restrictions on how people write scripts is stupid, as every seasoned scripter has thier own individual, yet still tidy format.
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
  #7  
Old 06-28-2004, 08:06 PM
Trevor Trevor is offline
True
Trevor's Avatar
Join Date: Mar 2003
Posts: 2,253
Trevor is on a distinguished road
Quote:
Originally Posted by Gerami
Err I would prefer you didnt use &&.

1) It goes against the scripting standards or whatever kai posted for posting scripts on the board

2) It's ugly and debugging it is a pain
You're crazy.
__________________


name: Trevor Fancher
email: trevor at fancher dot org
home page: fancher.org
  #8  
Old 06-28-2004, 08:36 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
doesn't matter if that is all that is going on in the script, otherwise nesting unlike checks for readability is rather pointless
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
  #9  
Old 06-29-2004, 04:48 PM
Orbit45244 Orbit45244 is offline
Registered User
Join Date: Jun 2004
Posts: 8
Orbit45244 is on a distinguished road
About toweapons: I use toweapons to give the player the item bow. The item is just something other than the weapon bow. I need help.
__________________
"We do not stop playing because we grow old;we grow old because we stop playing."

-Darlene195
  #10  
Old 06-29-2004, 05:17 PM
Damix2 Damix2 is offline
RED SQUARE CLUB
Join Date: Nov 2003
Location: NY-what's better?
Posts: 3,577
Damix2 will become famous soon enough
Quote:
Originally Posted by Orbit45244
About toweapons: I use toweapons to give the player the item bow. The item is just something other than the weapon bow. I need help.
1. Don't use toweapons

2.What are you asking? You want to give someone a bow that is not a bow?
__________________
  #11  
Old 06-29-2004, 06:44 PM
Xecutor Xecutor is offline
Former UN Manager
Join Date: Apr 2004
Posts: 117
Xecutor is on a distinguished road
Quote:
Originally Posted by Orbit45244
About toweapons: I use toweapons to give the player the item bow. The item is just something other than the weapon bow. I need help.
First question, are you doing this offline or online?
Second, what is name of the weapon?
  #12  
Old 06-29-2004, 09:49 PM
Orbit45244 Orbit45244 is offline
Registered User
Join Date: Jun 2004
Posts: 8
Orbit45244 is on a distinguished road
Quote:
Originally Posted by Xecutor
First question, are you doing this offline or online?
Second, what is name of the weapon?

Never Mind.
__________________
"We do not stop playing because we grow old;we grow old because we stop playing."

-Darlene195
  #13  
Old 06-29-2004, 10:12 PM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
....
Quote:
Originally Posted by Gerami
Err I would prefer you didnt use &&.
....


LOL
__________________
  #14  
Old 06-29-2004, 11:58 PM
Nappa Nappa is offline
The Great Nappa
Nappa's Avatar
Join Date: Sep 2003
Location: Florida
Posts: 1,911
Nappa is on a distinguished road
Send a message via AIM to Nappa
These new forums are REALLY PISSING ME OFF. I've already tried to do ~12 replies today, all which did not go through. I swear to god this is ****ing making me mad. anyway I'll just retype what I said before.

Quote:
Originally Posted by Andy0687
LOL

What's so hillarious about that ?
__________________
  #15  
Old 06-30-2004, 01:01 AM
Trevor Trevor is offline
True
Trevor's Avatar
Join Date: Mar 2003
Posts: 2,253
Trevor is on a distinguished road
You did read what he quoted, right?
__________________


name: Trevor Fancher
email: trevor at fancher dot org
home page: fancher.org
Closed Thread


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 05:40 AM.


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