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
  #16  
Old 07-24-2002, 03:27 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Quote:
Originally posted by brock128

Oh I'm sorry I'm not a l33t scripter like you please give me your master advice Mister Kaimetsu.

You don't have to be l33t to move an npc a half a tile.
__________________

subliminal message: 1+1=3
Reply With Quote
  #17  
Old 07-24-2002, 03:38 AM
Dean Dean is offline
Banned
Join Date: Sep 2001
Location: United Kingdom
Posts: 351
Dean will become famous soon enough
Quote:
Originally posted by Falcor


You don't have to be l33t to move an npc a half a tile.
You don't? Why didn't any of you tell me!
Reply With Quote
  #18  
Old 07-24-2002, 03:43 AM
brock128 brock128 is offline
oldbie
Join Date: Dec 2001
Posts: 2,861
brock128 is on a distinguished road
Quote:
Originally posted by Kaimetsu


Okay:

You're not intelligent enough to script to any degree of competence. Give up now.
*Insert rude picture here*

Anyway, another stupid question from a stupid person. I want to make it so that when sombody says somthing, the NPC gets destroyed. What should I do?
Reply With Quote
  #19  
Old 07-24-2002, 03:49 AM
Dean Dean is offline
Banned
Join Date: Sep 2001
Location: United Kingdom
Posts: 351
Dean will become famous soon enough
if (playerchats&&strequals(#c,Word)){destroy;}
Reply With Quote
  #20  
Old 07-24-2002, 03:56 AM
Dean Dean is offline
Banned
Join Date: Sep 2001
Location: United Kingdom
Posts: 351
Dean will become famous soon enough
I don't believe so, but maybe
Reply With Quote
  #21  
Old 07-24-2002, 04:18 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
you don't need quotes.

and, to prevent it from moving over .5 every time someone enters the room, you could just set the x/y to a coordinate.

if (playerenters){
x = 32.5;
y = 32.5;
}
etc.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #22  
Old 07-24-2002, 10:54 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
Quote:
Originally posted by brock128

Thanks, but what if it is many words? Use quotes?
no, you dont use quotes

just

NPC Code:

if (playerchats && strequals(#c,bla bla bla bla bla bla times 3)) {
destroy;
}

__________________
[signature]insert here[/signature]
Reply With Quote
  #23  
Old 07-24-2002, 10:56 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Torankusu
you don't need quotes.

and, to prevent it from moving over .5 every time someone enters the room, you could just set the x/y to a coordinate.

if (playerenters){
x = 32.5;
y = 32.5;
}
etc.
too bad that messes up on a terrain (I think) since it's all like one big level, it'll send up in the upper left level, but I don't think most people have to worry about that
Reply With Quote
  #24  
Old 07-24-2002, 08:43 PM
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
like feeding wild bears
__________________
[signature]insert here[/signature]
Reply With Quote
  #25  
Old 07-24-2002, 09:10 PM
brock128 brock128 is offline
oldbie
Join Date: Dec 2001
Posts: 2,861
brock128 is on a distinguished road
Quote:
Originally posted by Kaimetsu


People, people! Giving out scripts only keeps them coming back!
Respect points = -100. I can figure it out. I just need a poke in the right direction sometimes.

Anyway, I'm done. *INSERT 100 RUDE PICTURES AIMED AT KAIMETSU HERE*
Reply With Quote
  #26  
Old 07-24-2002, 09:24 PM
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
Quote:
Originally posted by brock128

Respect points = -100. I can figure it out. I just need a poke in the right direction sometimes.

Anyway, I'm done. *INSERT 100 RUDE PICTURES AIMED AT KAIMETSU HERE*
fight the kai !!!!!
__________________
[signature]insert here[/signature]
Reply With Quote
  #27  
Old 08-01-2002, 07:23 PM
stomper_TK stomper_TK is offline
Registered User
stomper_TK's Avatar
Join Date: Feb 2002
Location: My chair :-)
Posts: 846
stomper_TK is on a distinguished road
Send a message via AIM to stomper_TK
I want to learn how to script..
__________________
Reply With Quote
  #28  
Old 08-01-2002, 07:44 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
To some degree Kaimetsu is right and to another that brock guy is. Some people are just better at learning from examples instead of being told to use: strequals playerchats #c destroy.

I think it's because some people don't bother to learn the basic syntax of GScript. Anyway, you saw above how it works, and you should jump for joy.

One thing though argueing with Kaimetsu is pointless, he just use his college mumbo jumbo talk and make you wet yourself
Reply With Quote
  #29  
Old 08-01-2002, 08:18 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
If you are wonderhing what a command does...

TRY IT AND SEE WHAT HAPPENS!
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #30  
Old 08-01-2002, 08:22 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by nyghtGT
To some degree Kaimetsu is right and to another that brock guy is. Some people are just better at learning from examples instead of being told to use: strequals playerchats #c destroy.

I think it's because some people don't bother to learn the basic syntax of GScript. Anyway, you saw above how it works, and you should jump for joy.

One thing though argueing with Kaimetsu is pointless, he just use his college mumbo jumbo talk and make you wet yourself
Lol yes argueing with Kaimetsu is pointless. But I doubt it has that much to do with college mumbo jumbo.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
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 11:58 AM.


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