Main Menu
  • Welcome to The RPG Maker Resource Kit.

[REQUEST] a realy cool script Idea

Started by djunlogical, March 14, 2010, 12:31:30 PM

0 Members and 1 Guest are viewing this topic.

djunlogical

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

guldurkhand

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.

Mr_Wiggles

That would be really neat, how ever it would require quite a bit of work im thinking.
[spoiler]
METALFRESH is a paint contractor that specializes in refinishing metal and vinyl siding. We paint metal buildings as well as siding on homes.

We also

    Refinish decks
    Do custom interior painting
    Strip wallpaper
    Refinish cedar siding
    Metal front doors and sidelights
    Metal garage and service doors
    Grained fiberglass doors

    If your structure is *RUSTED *FADED *CHALKING *IN NEED OF COLOR CHANGE, we can fix it with a guarentee!

northern Illinois and southern Wisconsin.

http://metalfreshcoatings.com

[/spoiler]

djunlogical

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.

valdred

I don't think javascript and java is the same thing.

Mr_Wiggles

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.
[spoiler]
METALFRESH is a paint contractor that specializes in refinishing metal and vinyl siding. We paint metal buildings as well as siding on homes.

We also

    Refinish decks
    Do custom interior painting
    Strip wallpaper
    Refinish cedar siding
    Metal front doors and sidelights
    Metal garage and service doors
    Grained fiberglass doors

    If your structure is *RUSTED *FADED *CHALKING *IN NEED OF COLOR CHANGE, we can fix it with a guarentee!

northern Illinois and southern Wisconsin.

http://metalfreshcoatings.com

[/spoiler]

Zeriab

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*