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 11-01-2005, 01:29 AM
Zergling Zergling is offline
Registered User
Zergling's Avatar
Join Date: Oct 2005
Location: 999999999999 light years away... Yeah i know i got a super internet conection.
Posts: 64
Zergling is on a distinguished road
help me with dealie

// NPC made by Stefan Knorr
if (created) {
setimg block.png;
setshape 1,32,32;
}
if (playermessage) hi; {
hide;
sleep 3;
show;
}
i want it too acivate when you say hi...
__________________
Fire burning...
......Death murder....
.............An unhapy place...
SOON TO COME TOO GRAAL NEAR YOU!!!
Once i have more money and more wisdom...
Reply With Quote
  #2  
Old 11-01-2005, 01:32 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
*senses moderator action*

Remember the comments from your other thread?
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 11-01-2005, 01:36 AM
Zergling Zergling is offline
Registered User
Zergling's Avatar
Join Date: Oct 2005
Location: 999999999999 light years away... Yeah i know i got a super internet conection.
Posts: 64
Zergling is on a distinguished road
i looked hard for the answer... I just cant find it...
__________________
Fire burning...
......Death murder....
.............An unhapy place...
SOON TO COME TOO GRAAL NEAR YOU!!!
Once i have more money and more wisdom...
Reply With Quote
  #4  
Old 11-01-2005, 01:47 AM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by npcprogramming.doc
7. Events

Here you will see a list of all events. 'Event' means the npc script will be called and a special flag is set.

playerenters the player enters the level right now
playerouchsme the player touchs the npc
playertouchsother another npc is touched by the player
playerlaysitem an item is layed by the player or another npc
playerchats the player says something
...
8. Addtional flags

A list of flags not mentioned yet:

...
strequals( str1, str2 ) str1 = str2 (both strings can contain message codes)
strcontains( str1, str2 ) str1 contains str2
(to check what the player says use: strequals(#c,str), strcontains(#c,str); to check if the player is in a special guild: strequals(#g,guildname) or strcontains(#n,(guildname)))
Put them together.
Reply With Quote
  #5  
Old 11-01-2005, 02:46 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
As Riot said, check what the player has said within a playerchats event block.
Reply With Quote
  #6  
Old 11-01-2005, 03:11 AM
Zergling Zergling is offline
Registered User
Zergling's Avatar
Join Date: Oct 2005
Location: 999999999999 light years away... Yeah i know i got a super internet conection.
Posts: 64
Zergling is on a distinguished road
i cant open that document...
__________________
Fire burning...
......Death murder....
.............An unhapy place...
SOON TO COME TOO GRAAL NEAR YOU!!!
Once i have more money and more wisdom...
Reply With Quote
  #7  
Old 11-01-2005, 03:34 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
hope that helps a bit more
just a note, read the NPC programing document in the graal2001 folder

Last edited by Lance; 11-01-2005 at 06:44 AM.. Reason: Rule 2.
Reply With Quote
  #8  
Old 11-01-2005, 04:26 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally Posted by excaliber7388
just a note, read the NPC programing document in the graal2001 folder
you should too =D
__________________
Reply With Quote
  #9  
Old 11-01-2005, 04:29 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by ZeLpH_MyStiK
you should too =D
XD I did, but it only helps with basic problems (like this one)
Reply With Quote
  #10  
Old 11-01-2005, 05:13 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
yeah i'm begging to see the beauty of gs2 it's a little different at first, but it's easier to read
Reply With Quote
  #11  
Old 11-01-2005, 06:15 PM
Zergling Zergling is offline
Registered User
Zergling's Avatar
Join Date: Oct 2005
Location: 999999999999 light years away... Yeah i know i got a super internet conection.
Posts: 64
Zergling is on a distinguished road
it wont let me open that document can you paste it here for me?
__________________
Fire burning...
......Death murder....
.............An unhapy place...
SOON TO COME TOO GRAAL NEAR YOU!!!
Once i have more money and more wisdom...
Reply With Quote
  #12  
Old 11-01-2005, 11:54 PM
Silent Silent is offline
<3
Silent's Avatar
Join Date: Mar 2005
Location: England
Posts: 132
Silent is on a distinguished road
Send a message via AIM to Silent Send a message via MSN to Silent
Quote:
Originally Posted by Zergling
it wont let me open that document can you paste it here for me?
Presuming you're using Windows, open it with Wordpad

Edit: Just realised Wordpad can't open it, my bad. I've saved it in Rich Text format, check attachment (unzip it, of course)
Attached Files
File Type: zip npcprogramming.zip (72.1 KB, 211 views)
__________________
Quote:
Originally Posted by MilkyWay0016
The Bible also says things like...

"Stone disobedient children" (Deuteronomy 21:18-21)
Quote:
Originally Posted by Loriel
Disobedient children are likely enough to get stoned already, I think.

Last edited by Silent; 11-02-2005 at 12:12 AM..
Reply With Quote
  #13  
Old 11-02-2005, 12:25 AM
Zergling Zergling is offline
Registered User
Zergling's Avatar
Join Date: Oct 2005
Location: 999999999999 light years away... Yeah i know i got a super internet conection.
Posts: 64
Zergling is on a distinguished road
thaks this helps alot no more wondering why i'm not alot to ask questions there answerd here!!!
__________________
Fire burning...
......Death murder....
.............An unhapy place...
SOON TO COME TOO GRAAL NEAR YOU!!!
Once i have more money and more wisdom...
Reply With Quote
  #14  
Old 11-02-2005, 12:46 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Try reading Skyld's topic on formatting your script.
It makes it a lot easier to read, which makes it a lot easier for us to help you.

Last edited by Darlene159; 11-02-2005 at 01:04 AM.. Reason: No need to bash him
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 08:23 PM.


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