[Opinion]Npc Dialog System

07/24/2010 14:01 Basser#1
Since I am currently working on [Only registered and activated users can see links. Click Here To Register...], I am now working on Npc implementation.
This won't be very hard, however perhaps the dialogue system will be, therefore I ask what kind of system do you recommend me to use?
I was thinking:
- Extern files, with a simple script language. (However, this will make it very hard to make functions, so I dislike this one)
- C# files, with a simple script language. (Just one, or multiple strings with a syntax the dialogue processor will read, advantage is you can still access the entity class.)
- Lots of other options.

I need detailed opinions and ideas!
07/24/2010 15:01 ~Yuki~#2
How about NPC DDL? Scripting in C# and still portable and you could edit them in realtime without server restart
07/24/2010 16:11 _DreadNought_#3
Use a seprate project exactly like impulse did. Works fine.
07/24/2010 16:22 CptSky#4
A script file, but not in plain text :D It's a good way to do this. Just need the imagination for a structure without limitation and the time to do the writer and the reader.
07/24/2010 16:52 Fish*#5
Quote:
Originally Posted by ~Yuki~ View Post
How about NPC DDL? Scripting in C# and still portable and you could edit them in realtime without server restart
Like lua?
07/24/2010 16:53 Basser#6
How about named pipes?
07/24/2010 17:26 Korvacs#7
Named pipes to do what?

You can use them to move serialized data between processes, but that doesnt solve your issue of how to construct the data in the first place.
07/24/2010 20:18 ~Yuki~#8
Quote:
Originally Posted by grillmad View Post
Like lua?
Yes i mean lua when i say C# DLL duh!
<3
07/24/2010 20:54 dodolinobobo#9
somethink that can be edited in realtime will be the best i think,the server restart is boring xD
07/24/2010 21:01 _DreadNought_#10
For that, what if a player is using it then a sudden dialog change? + lag?
07/24/2010 23:47 .Beatz#11
Quote:
Originally Posted by Eliminationn View Post
For that, what if a player is using it then a sudden dialog change? + lag?
It can be coded so that when a player is using it, it wont edit it until the player has finished.
07/25/2010 04:58 _tao4229_#12
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...] (there's a .NET wrapper out there somewhere)


Edit: In my opinion IronPython/Ruby are your best bet, as they're decently fast (for inline scripting), and they work amazingly well with the .NET framework and what you've set up already.

You can pass any variable to IronPython/Ruby and access all the functions/data inside of it, and (using Func<t>/delegates) you can also pass functions. They're extremely, extremely easy to setup and use, ask me on MSN if you ened any help.


They're also really fucking easy to learn, so you could have someone else script NPCs for you.

As for LUA, I've never used it, but it's a decent language as well.
07/25/2010 11:04 ~Yuki~#13
I would like Ruby! Gonna make a wrapper for my server now.
07/25/2010 13:22 kinshi88#14
Meh, I just like coding it inside your server, no extern shit or anything.
Also, I like the way Hybrid did it in the source he released, just as a string array, super sweet.
But meh, just my opinion.
07/26/2010 17:09 InfamousGeek#15
You might like this; [Only registered and activated users can see links. Click Here To Register...]