Archived

This topic is now archived and is closed to further replies.

Looky what I made! =)

This topic is 5007 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is pretty tight. The player has the freedom to ask his own questions, and the NPC will respond to your keywords you provide in your questions. I posted a screenshot about this. This is inspired off of Everquest''s way of interacting with NPC''s. http://phil.webula.net/game.JPG

Share this post


Link to post
Share on other sites
Demo:
http://phil.webula.net/Practice2.zip

New Screenshot:
http://phil.webula.net/game3.JPG

Hope ya like it. I always enjoyed games where you can type in your own questions instead of being limited in how you interact. Try cussing at the NPC and stuff. That''s always fun.

~ phil

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Pretty cool, if you know what to write :/
I''m not sure I would have figured that out withour the screenshots.

"Player -> Do you have a sword up your but?

Armorer -> Yes, I have one lying around here."



Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
Pretty cool, if you know what to write :/
I''m not sure I would have figured that out without the screenshots.

"Player -> Do you have a sword up your butt?

Armorer -> Yes, I have one lying around here."


Disturbing. That''s EXACTLY what I was going to type first...

Share this post


Link to post
Share on other sites
Decided to do some playing around with to see how it works: here are some interesting results:

"sword" => "Yes I have one lying around here"

"wife" => "Yes I have a wife ..."

"sword wife" => sword response

"wife sword" => also sword response

If I am correct, you go through a list of keywords, and if the current keyword is found in the sentence, you look up that keywords response.

This is also evident in the following sequence of commands:

shield => "I surely do. Would you like to 'buy one' today?"
No => "Then move along ..."
sword => "Yes I have one lying around here"
cost => "Its 500 gold ..."
buy one => "Okay that will be 300 gold"

It seems to be case sensitive.

It is a good start, although it would be very cool if you managed to keep context of the conversation, such as some sort of state variables (ie talking about "sword", willingness to sell=50%, mood="angry", etc). Then, the response given to a keyword would depend on multiple variables, rather than just a single response. The states could also change depending on what keyword/response was chosen. Another long term addition could be to add in responses to multiple keywords ("wife kick" would trigger an angry response such as "leave my wife alone!")

Keep up the good work!

[edited by - kevmo on March 22, 2004 9:40:16 PM]

Share this post


Link to post
Share on other sites
Can''t get the demo to work
No matter what I say:
hello, sword, shield, cost, wife, no, background, children, fuck, shit, (all the words I found in the exe)
all he says is "excuse me?"

BTW screenshots like that should be saved as png or gif, NOT jpg.

Share this post


Link to post
Share on other sites
Player -> Do you have any swords?
Armorer -> Yes, I have one lying around here.
Player -> Can I buy it off you?
Armorer -> Excuse me?
Player -> Can I buy it?
Armorer -> Excuse me?
Player -> I want to buy the sword! What the fuck is wrong with you?
Armorer -> Yes, I have one lying around here.
Player -> Good, give me it!
Armorer -> Excuse me?
Player -> I hate you
Armorer -> Excuse me?
Player -> Sword? You have?
Armorer -> Excuse me?
Player -> You have a sword?
Armorer -> Yes, I have one lying around here.
Player -> I'll buy it
Armorer -> Excuse me?
Player -> I'll buy the sword
Armorer -> Yes, I have one lying around here.
Player -> sword
Armorer -> Yes, I have one lying around here.
Player -> buy
Armorer -> Excuse me?
Player -> cost
Armorer -> It's 500 gold for the sword. Take it, or leave it.
Player -> take
Armorer -> Excuse me?
Player -> take sword
Armorer -> Yes, I have one lying around here.
Player -> take sword
Armorer -> Yes, I have one lying around here.
Player -> Fuck this
Armorer -> Excuse me?

It's great that you're making progress with this project, but the parser has lots of problems. Maybe this conversation I had can help guide you.

~CGameProgrammer( );

Screenshots of your games or desktop captures -- Upload up to four 1600x1200 screenshots of your projects, registration optional. View all existing ones in the archives..

[edited by - CGameProgrammer on March 22, 2004 11:17:39 PM]

Share this post


Link to post
Share on other sites
quote:
Original post by VThornheart
Out of curiosity, why shouldn''t it be saved in JPG?



I''m glad you asked, this is something everyone who uses the internet should know.

For line art/guis/cartoon drawings - eg. lots of flat colour,
png/gif are superior(look better AND smaller filesize)

For natural images - eg. photographs, images with texture,
jpeg is superior(look almost identical with way better filesize)

When jpeg is used incorrectly (for things other than "natural images"), it looks totally fugly.

example: (45,961 bytes)


See what I mean by fugly?

now using 24 bit png(17,394 bytes), almost 1/3 of the size.


Perfect quality.

The difference is clear.(pun intended)
Use the appropriate format for your images.

quote:
Original post by VThornheart
I''d personally not reccommend saving as a GIF, not after the whole GIF patent debacle.


You don''t have to worry about that unless you write a program that loads/saves gifs. (If you use other APIs that have a license for it, that''s ok too AFAIK)

Share this post


Link to post
Share on other sites
quote:
Original post by CGameProgrammer
Player -> Do you have any swords?
Armorer -> Yes, I have one lying around here.
Player -> Can I buy it off you?
Armorer -> Excuse me?
Player -> Can I buy it?
Armorer -> Excuse me?
Player -> I want to buy the sword! What the fuck is wrong with you?
Armorer -> Yes, I have one lying around here.
Player -> Good, give me it!
Armorer -> Excuse me?
Player -> I hate you
Armorer -> Excuse me?
Player -> Sword? You have?
Armorer -> Excuse me?
Player -> You have a sword?
Armorer -> Yes, I have one lying around here.
Player -> I''ll buy it
Armorer -> Excuse me?
Player -> I''ll buy the sword
Armorer -> Yes, I have one lying around here.
Player -> sword
Armorer -> Yes, I have one lying around here.
Player -> buy
Armorer -> Excuse me?
Player -> cost
Armorer -> It''s 500 gold for the sword. Take it, or leave it.
Player -> take
Armorer -> Excuse me?
Player -> take sword
Armorer -> Yes, I have one lying around here.
Player -> take sword
Armorer -> Yes, I have one lying around here.
Player -> Fuck this
Armorer -> Excuse me?


ROFL! This is hillarous!! LMAO!

Share this post


Link to post
Share on other sites