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-18-2002, 04:31 AM
Darkspector Darkspector is offline
Registered User
Join Date: May 2001
Location: under the newjersey turnpike in a styrfoam box
Posts: 380
Darkspector is on a distinguished road
Send a message via ICQ to Darkspector
if i say

how would i script somthin so that if i said "Artic Banana" it warp me to x,y
__________________
[img]ftp://dragonlance.keenspace.com/20020902.gif[/img]
Reply With Quote
  #2  
Old 03-18-2002, 04:39 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Location: Canada
Posts: 7,989
haunter is on a distinguished road
Re: if i say

Quote:
Originally posted by Darkspector
how would i script somthin so that if i said "Artic Banana" it warp me to x,y
NPC Code:
 
If (playersays(artic banana) {playerx=(x); playery=(y);}



Or

NPC Code:
 
If (playerchats && strequals(#c,artic banana) {playerx=(x); playery=(y);}




Take out the "(y)"s and replace them with the y co-ordinate you want to warp to, and do the same for the "(x)"s except for your x co-ordinate
__________________
- Jordan
Reply With Quote
  #3  
Old 03-18-2002, 06:18 AM
BARGAD BARGAD is offline
Registered User
Join Date: Aug 2001
Location: Sweden
Posts: 345
BARGAD will become famous soon enough
No No

playersays =:
1) dont work anymore
2) it repetes the action till the #c prop has changed to " "

so you should use playerchats&&strequals(#c,))
or playersays2(text) if it still works

-Note that playersays2 only uses the action once-

/FrEaKy CaRnIe
__________________
Gori

Born To Kill
Death Silent Killers

Two little newbies, out in the sun.
Then came Gori and there was only one.

Reply With Quote
  #4  
Old 03-18-2002, 09:33 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Location: Canada
Posts: 7,989
haunter is on a distinguished road
Re: No No

Quote:
Originally posted by BARGAD
playersays =:
1) dont work anymore
2) it repetes the action till the #c prop has changed to " "

so you should use playerchats&&strequals(#c,))
or playersays2(text) if it still works

-Note that playersays2 only uses the action once-

/FrEaKy CaRnIe
so playersays2 works like playerchats&&strequals(#c,)

?
__________________
- Jordan
Reply With Quote
  #5  
Old 03-18-2002, 09:34 AM
BARGAD BARGAD is offline
Registered User
Join Date: Aug 2001
Location: Sweden
Posts: 345
BARGAD will become famous soon enough
exactly
Or it did, I dont know if it still works because playersays dosnt

/CaRnIe
__________________
Gori

Born To Kill
Death Silent Killers

Two little newbies, out in the sun.
Then came Gori and there was only one.

Reply With Quote
  #6  
Old 03-18-2002, 10:34 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
playersays2??

i never heard of that
__________________
[signature]insert here[/signature]
Reply With Quote
  #7  
Old 03-18-2002, 10:36 AM
BARGAD BARGAD is offline
Registered User
Join Date: Aug 2001
Location: Sweden
Posts: 345
BARGAD will become famous soon enough
I hadnt either till Sky (NAT Cheif on Shaded Legend) told me about it

/CaRnIe
__________________
Gori

Born To Kill
Death Silent Killers

Two little newbies, out in the sun.
Then came Gori and there was only one.

Reply With Quote
  #8  
Old 03-18-2002, 11:47 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Re: Re: if i say

Quote:
Originally posted by haunter


NPC Code:
 
If (playersays(artic banana) {playerx=(x); playery=(y);}



Or

NPC Code:
 
If (playerchats && strequals(#c,artic banana) {playerx=(x); playery=(y);}




Take out the "(y)"s and replace them with the y co-ordinate you want to warp to, and do the same for the "(x)"s except for your x co-ordinate
missing the end ) in the if statements
__________________
[signature]insert here[/signature]
Reply With Quote
  #9  
Old 03-18-2002, 12:07 PM
BARGAD BARGAD is offline
Registered User
Join Date: Aug 2001
Location: Sweden
Posts: 345
BARGAD will become famous soon enough
Shhh
XD
I was gonna see if the guy asking for the script would say anything

/CaRnIe
__________________
Gori

Born To Kill
Death Silent Killers

Two little newbies, out in the sun.
Then came Gori and there was only one.

Reply With Quote
  #10  
Old 03-19-2002, 05:57 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Location: Canada
Posts: 7,989
haunter is on a distinguished road
Re: Re: Re: if i say

Quote:
Originally posted by screen_name

missing the end ) in the if statements
Haha, oops, it usually tells me when i hit the 'test' button and i fix it... the 'test' button is my friend... i am not leet =(
__________________
- Jordan
Reply With Quote
  #11  
Old 03-19-2002, 10:56 AM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
What a weird style of coding you guys use.. here is what I came out with, oh and I spelled arctic the way I figured it should be spelled

NPC Code:

if (playerchats && strequals(#c,arctic banana)) {
playerx = 32;
playery = 32;
}

__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote
  #12  
Old 03-19-2002, 12:18 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:
this dood Darkspector posted this:
how would i script somthin so that if i said "Artic Banana" it warp me to x,y
*taps his foot waiting for kai to close this thread*
__________________

!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
  #13  
Old 03-19-2002, 03:49 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by Saga2001

*taps his foot waiting for kai to close this thread*
Yes i agree on this, the question has been answered even tho really it never should have been.
but anyways i'm outa here
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #14  
Old 03-19-2002, 08:59 PM
BARGAD BARGAD is offline
Registered User
Join Date: Aug 2001
Location: Sweden
Posts: 345
BARGAD will become famous soon enough
I think it can be closed now, We've explained it 10 times

/CaRnIe
__________________
Gori

Born To Kill
Death Silent Killers

Two little newbies, out in the sun.
Then came Gori and there was only one.

Reply With Quote
  #15  
Old 03-19-2002, 09:04 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by Kaimetsu
I dunno. It's simplistic enough not to really trigger the close button of Doom, I think.
Yes he isn't asking anyone for a "Whole custom controls and HP system" :P
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
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 10:27 AM.


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