Need help about talking to NPC

Learn more on how to use Sandbox, or submit your own tutorials or resources.
azure11
Member
Member
Posts: 10
Joined: December 21st, 2011, 9:15 am
Name: Azure

Need help about talking to NPC

Postby azure11 » December 21st, 2011, 10:20 am

Please help me how to talk with NPC, I have read FAQ, other question in forum and follow the tutorials but i still can't talking with NPC.
The tutorials is for version 2.5 whilst i'm using 2.6.1 (http://www.sandboxgamemaker.com/wiki/in ... ript_guide) i have follow the tutorials but nothing happen.
Please help me and help me too about making enemies that can killed and attack player.

Many thanks to you....

chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Need help about talking to NPC

Postby chocolatepie33 » December 26th, 2011, 2:21 pm

if this is for FPS mode, then let me see your code so I can explain to you what went wrong, also maybe you should break down what you did into step-by-step stuff, to see if you missed anything important. I think I'm gonna have to go and fix that tutorial.

azure11 wrote:Please help me and help me too about making enemies that can killed and attack player.

Also, by the sounds of it, you're working with RPG mode. the two modes (FPS and RPG) have different scripting languages.
Julius wrote:Contribute to http://www.opengameart.org NOW!

Save the wiki!

azure11
Member
Member
Posts: 10
Joined: December 21st, 2011, 9:15 am
Name: Azure

Re: Need help about talking to NPC

Postby azure11 » December 28th, 2011, 7:33 pm

Sorry for late reply.
Yes I'm making RPG game using Sandbox, I don't know how to make NPC talking and enemies. May be you can give me script so I can learn from it.
Thank you.

azure11
Member
Member
Posts: 10
Joined: December 21st, 2011, 9:15 am
Name: Azure

Re: Need help about talking to NPC

Postby azure11 » January 14th, 2012, 9:56 am

Ok now i know how to make NPC script to talk, but i have a new problem, the problem is when i interact to NPC (E) there is a message says "script is not defined or being loaded". Can anyone what's wrong with my script?

This is my script: //Hasyawau's script

r_script_signal interact [
r_script_say "Hello, how are you doing" [ // 0 - it's good practice to number your entries
r_response "I'm well, yourself?" 1 //goes to dialogue #1
r_response "Goodbye" -1 //closes the dialogue ]
]

r_script_say "I'm glad to hear it" [ // 1
r_response "Goodbye" -1]
]


Please someone help me. I'm using Sandbox 2.7.1

azure11
Member
Member
Posts: 10
Joined: December 21st, 2011, 9:15 am
Name: Azure

Re: Need help about talking to NPC

Postby azure11 » January 14th, 2012, 9:56 am

Ok now i know how to make NPC script to talk, but i have a new problem, the problem is when i interact to NPC (E) there is a message says "script is not defined or being loaded". Can anyone what's wrong with my script?

This is my script: //Hasyawau's script

r_script_signal interact [
r_script_say "Hello, how are you doing" [ // 0 - it's good practice to number your entries
r_response "I'm well, yourself?" 1 //goes to dialogue #1
r_response "Goodbye" -1 //closes the dialogue ]
]

r_script_say "I'm glad to hear it" [ // 1
r_response "Goodbye" -1]
]


Please someone help me. I'm using Sandbox 2.7.1

azure11
Member
Member
Posts: 10
Joined: December 21st, 2011, 9:15 am
Name: Azure

Re: Need help about talking to NPC

Postby azure11 » January 14th, 2012, 9:56 am

Ok now i know how to make NPC script to talk, but i have a new problem, the problem is when i interact to NPC (E) there is a message says "script is not defined or being loaded". Can anyone what's wrong with my script?

This is my script: //Hasyawau's script

r_script_signal interact [
r_script_say "Hello, how are you doing" [ // 0 - it's good practice to number your entries
r_response "I'm well, yourself?" 1 //goes to dialogue #1
r_response "Goodbye" -1 //closes the dialogue ]
]

r_script_say "I'm glad to hear it" [ // 1
r_response "Goodbye" -1]
]


Please someone help me. I'm using Sandbox 2.7.1

User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: Need help about talking to NPC

Postby kddekadenz » January 14th, 2012, 10:57 am

Trololol... Triple post :lol:

You need to create a critter (write a cfg in data/rpg/games/yourgame/critters) with r_char_script x inside.

Insert for x the number of your script in data/rpg/games/yourgames/scripts.

Hope this helps ;)
Kelgar is an advanced RPG beeing developed in Sandbox

Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Need help about talking to NPC

Postby Hirato » January 14th, 2012, 11:45 am

ooh, you're quite close.
His problem is that his script ISN'T inside data/rpggames/yourgame/scripts, but rather elsewhere, hence those error messages.
This is not a url, clicking it is pointless

User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: Need help about talking to NPC

Postby kddekadenz » January 14th, 2012, 11:49 am

Hirato, how the consumables and armor work?
I declared for example an apple as consumable, but cannot eat it :?
Kelgar is an advanced RPG beeing developed in Sandbox

Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: Need help about talking to NPC

Postby Hirato » January 14th, 2012, 10:18 pm

consumables aren't implemented yet, I'll leave a more thorough answer here
viewtopic.php?t=3495
This is not a url, clicking it is pointless


Return to “Tutorials and Resources”

Who is online

Users browsing this forum: No registered users and 2 guests