The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: djunlogical on March 14, 2010, 12:31:30 PM

Title: [REQUEST] a realy cool script Idea
Post by: djunlogical on March 14, 2010, 12:31:30 PM
okay, so I was talking to a messanger bot on msn yesterday.. and it got me thinking..
on games like fable you get good and evil points.. (aswell as pure and corrupt for fable2).. depending on how you act towards people..
I saw a few scripts that allowed for the keyboard to be used to input letters into the name input screen (please don't ask me where, I honestly can't remember)
so what if you had a text input command, that allowed you to reply in a certain way with variable outcomes?
for example, if you have a man that says: "hello, how are you" and you reply "good thanks, you?" it would make the man reply "I am also feeling good". If you reply "good thanks" he will say "wonderful".. if you reply "get lost old man" he will attack you and kill you.. or reply "that's very rude etc."
this script could revolutionalize the making of RPGM games.
I am very very very lacking in the scripting knowlage to be able to do this, but I'm sure there is someone clever out there who will donate their time to this! Help the children!

Thankyou for your time in listening to my very long explanation of the script..
I don't actually know if it IS possible.. but using logic it could be.. although msn chatbots are java I think..
Good luck, and happy scripting if you choose to accept this monster of a challenge
Title: Re: [REQUEST] a realy cool script Idea
Post by: guldurkhand on March 18, 2010, 07:09:33 AM
Hmm, it would certainly speed up eventing. You can do without it ofcourse(with variables and stuff), but that takes allot of time and would be easier with a script.
Title: Re: [REQUEST] a realy cool script Idea
Post by: Mr_Wiggles on March 18, 2010, 08:18:31 AM
That would be really neat, how ever it would require quite a bit of work im thinking.
Title: Re: [REQUEST] a realy cool script Idea
Post by: djunlogical on March 20, 2010, 08:19:58 PM
I guess soo.. although I just figured out they have these "msn bot" things.. AI which is scripted in java? so I'm still trying to get my hands on the jscript.. once I got that it should have half the work done for me.. it's just transfering it from J language to ruby.
Title: Re: [REQUEST] a realy cool script Idea
Post by: valdred on March 20, 2010, 10:53:49 PM
I don't think javascript and java is the same thing.
Title: Re: [REQUEST] a realy cool script Idea
Post by: Mr_Wiggles on March 21, 2010, 01:25:10 AM
well msn scripts are in a neat scripting language "forgot name" but here is a sample of a script for msn.



/*ParrotBot.
Script by: Konda
Info: kondaspam@gmail.com

Please do not remove this
*/


var lastmes = "";
var memes = "";
var start = false;

function OnEvent_Initialize(MessengerStart)
{
}

function OnEvent_Uninitialize(MessengerExit)
{
}

function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MsgKind){
lastmes = Message;

if(lastmes != memes ){
if(start == true){
ChatWnd.SendMessage(Message);
}
}

}

function OnEvent_ChatWndSendMessage(ChatWnd, Message){
memes = Message
if(Message == "/imitate"){
start = true;
MsgPlus.DisplayToast("", "ParrotBot started!");
return '';
}
else if(Message == "/stopimitate"){
start = false;
MsgPlus.DisplayToast("","ParrotBot stopped!");
return '';
}

}

function OnGetScriptCommands(){
var ScriptCommands = "<ScriptCommands>";
ScriptCommands += "<Command>";
ScriptCommands += "<Name>imitate</Name>";
ScriptCommands +="<Description>It works like a Parrot! :P</Description>";
ScriptCommands += "</Command>";

ScriptCommands += "<Command>";
ScriptCommands += "<Name>stopimitate</Name>";
ScriptCommands += "<Description>Stop parrot!</Description>";
ScriptCommands += "</Command>";

ScriptCommands+="</ScriptCommands>";
return ScriptCommands;

}


and it doesn't differ too much from ruby.
Title: Re: [REQUEST] a realy cool script Idea
Post by: Zeriab on March 21, 2010, 12:24:48 PM
It will be very hard to accomplish.
It will not make it easier to the eventer (the user, you). Quite to the contrary. It will make it harder.

You would want to take spelling errors and weird phrases into account.
You would have to analyze the input and 'understand' it so that you can give a corresponding response.
Just look at the various bots you can talk to. I have seen none that I think are satisfactory (imo)
Of course you can limit the area that the NPC have to understand, but even so it will be very difficult to make unless do to the keyword combination. ('Take Key', 'Say Hello', etc.)

There are also issue for the 'eventer'.
You would probably like the characters to respond differently as well as allowing to specify what they know.
It's obvious that they will have a lot more information than normally. You will have to specify that. You will have to fill in that information.

I don't think anyone will make it, but I wish you good luck regardless ^_^

*hugs*