Input parsing

Out-of-character discussion forum for players of Cantr II to discuss new ideas for the development of the Cantr II game.

Moderators: Public Relations Department, Players Department, Programming Department, Game Mechanics (RD)

User avatar
Arlequin
Posts: 495
Joined: Wed Sep 20, 2006 2:32 pm
Location: Valencia
Contact:

Input parsing

Postby Arlequin » Thu Mar 15, 2007 2:37 pm

The suggestion is to implement parsing for a small amount of actions, like in old text adventures.

Lets say the * is the emote symbol. Simple spoken actions would be:

*goes to hunt* -> that would attack all animals with the best weapon, and print only the ones that were killed.

*fights someone* -> hits the someone with full strenght and the best weapon.

*drops all xxxx* -> drops all the xxxx (if any) and prints nothing else.

*drops 1000 xxxx* -> drops one thousand grams of xxxx.

*gives all/n xxxx* -> sends you straight to the character picker page.

I know, translations could be a bit of a headache, but...
♫ bling! ♫
User avatar
Pie
Posts: 3256
Joined: Sun Jun 19, 2005 3:30 am
Location: the headquarters of P.I.E.

Postby Pie » Thu Mar 15, 2007 2:53 pm

hmmm, it's kindof a spoof suggestion. I'm not shure if we really need it actually.
Pnumerical Intuitiong Engyn
Paranormal Investigation Exorsism
Porcupine Interspecies Extra_poison
Pick In Enter

... The headquarters of P.I.E.!!!
User avatar
SekoETC
Posts: 15526
Joined: Wed May 05, 2004 11:07 am
Location: Finland
Contact:

Postby SekoETC » Thu Mar 15, 2007 3:20 pm

I've been thinking about written commands speeding things up, saving you from loading pages in the middle, for example if you know that you have at least one hammer in storage but it's going to be listed under two dozen types of resources, it would be faster to write "pick up hammer". Or you could chain commands with "and" - "pause project and go out".

The problem is if these commands were written into the say to all box, we would be flooded with bad rp no one wants to see. Or even if the commands didn't show up in events, mispelled commands would, should they use asterisks as a trigger. It would be better to use / as in irc, and if the line starts with / and the command is unreadable, it would give an error message without printing the line.

It would be better if there was a separate console for quick commands, and commands would not show up to other characters, only the results would. This would be useful in reducing server load since people could skip loading lists they don't want to see. Commands could be listed in the wiki and no one would have to use them, they would be only for advanced users who know what they want.
Not-so-sad panda
User avatar
SumBum
Posts: 1903
Joined: Fri Jan 05, 2007 10:57 pm

Postby SumBum » Thu Mar 15, 2007 3:26 pm

Not sure I like it due to RP. Although, we currently work around the way the game displays actions now... *shrugs*
User avatar
Arlequin
Posts: 495
Joined: Wed Sep 20, 2006 2:32 pm
Location: Valencia
Contact:

Postby Arlequin » Thu Mar 15, 2007 5:37 pm

I agree, invisible IRC like commands would be better. The / must be coded carefully, tho, because in some regular expressions it must be escaped.

Even if they are just for two or three common shortcuts, they would save a lot of time and page loads. And not like anyone is forced to use them.
♫ bling! ♫
User avatar
SekoETC
Posts: 15526
Joined: Wed May 05, 2004 11:07 am
Location: Finland
Contact:

Postby SekoETC » Thu Mar 15, 2007 6:09 pm

/ would naturally matter only if it's the first symbol of your line. So if you were to include it in your rp or speaking, it wouldn't trigger anything. The only problem situations would appear when a person forgets to include the /. I've seen it in chat. Even though those situations are rare, it might slightly increase the number of screwups on the events page. But if the commands were written in the say to all box, just as long as they don't appear to the public as long as the first sign is /, it would save space not to have a separate textbox for commands.
Not-so-sad panda
User avatar
N-Aldwitch
Posts: 1771
Joined: Thu Mar 16, 2006 1:48 am
Contact:

Postby N-Aldwitch » Mon Mar 19, 2007 9:11 am

This is a great idea! I love it!

And guys, do you know how much more server it would save? If everyone did this, used the Events page as the control-center, I can assure you Cantr would be (even if slightly) less laggy. Because people are clicking around on links less etcetera, and getting straight to the task.

Also, it's even better for keyboard-bound people.
Nakranoth's "evil" character says:
"Thief! That's terrible! *shakes his head* That would hurt people's feeling if I did that."


http://www.sylorn.com - Free MMORPG in development.. need help.

Return to “Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest