Help and Look commands

Amochure
09 Oct 2017, 12:44Quick question about the help and look commands.
Where are they located?
(Are they in the Core Library?)
Also, am I allowed to edit them for my game?
The Pixie
09 Oct 2017, 12:53The core library is made up of several files; they are both in CoreCommands. Absolutely you can edit them, and I would positively encourage everyone to modify HELP to fit their own game (for example, adding credits).

Amochure
09 Oct 2017, 13:04So for all the children watching at home, how do I edit the CoreCommands file?
I found the CoreCommands under the Advanced > Libraries object.
Just not sure how to edit it.
Uh-Oh. I think I broke it. I clicked Reload and now I cant back into the game. Just get an error:
The Pixie
09 Oct 2017, 13:18You do not edit the file itself (if you cannot undo your changes it is probably best to install Quest). This guide will explain:
http://docs.textadventures.co.uk/quest/overriding.html
Or just create a new command with the same pattern.

Amochure
09 Oct 2017, 13:53Thank you very much, The Pixie!
Oh, I have it installed.
The Pixie
09 Oct 2017, 14:49Sorry, I meant RE-stall if it is messed up to set it back to how it should be.

Amochure
09 Oct 2017, 14:58Oh, gotcha. Thank you ^.^

Amochure
09 Oct 2017, 15:19When you say "same pattern" are you saying just recreate the verb or command using the same name?
Like if I create a help verb, it will override the Core verb named "help"?

Amochure
09 Oct 2017, 15:31Oh, I see, some of these verbs are called Command Patterns. Nevermind >.<
hegemonkhan
09 Oct 2017, 17:47the 'name' is the ID for quest, so creating/adding/setting something with the same name, OVER-RIDES/OVER-WRITES its old/original version.
when doing so in the GUI/Editor (lower left corner -> Filter -> Show Library Elements -> check box in -> up in the "tree of stuff" on the left side -> light grey text now is shown, this is all of the built-in stuff -> click on desired thing so highlighted -> on right side click on the copy button -> modify it how you want), it forces you to copy it, which protects the quest software/code from you messing it up and having to re-install quest, but if you can't remember/reverse what you've done, that game file is likely ruined (word to wise: always make backup copies as you do various stuff).
if you go directly into the quest's folder and open up the actual (core/langauge) files ... and you save them... you're altering quest's files... so if you screw anything up... you'll have to re-install quest.
though, this enables you to create your own unique engine for quest... if you're a good programmer and know quest well, Alex made quest really powerful.
I believe the 'help' Function is set up as an empty Function, wating for you to set it up (via OVER-RIDING/OVER-WRITING it), and I think the 'look' is similar, but it might/probably has some default responses/behavior set up for it... so not entirely empty like the 'help' Function is
Pixie and/or KV can be more accurate though about the 'help' and'look' Functions, as I haven't gotten around to really learning about all of quest's built-in stuff.

K.V.
09 Oct 2017, 19:10Did you get it going on, Amochure?
PS
I'm too lazy to type Amochure all the time...
What do you prefer?
- AM
- AH (insert maniacal laugh here -- I'm DH sometimes, so take no offense!)
- AC
hegemonkhan
09 Oct 2017, 19:22HK likes 'amo'.. lol
(omg... the FALLOUT games... brb... have to add to list... how'd I forget fallout games... ARGH!)

Doctor Agon
09 Oct 2017, 22:00On a related question:
I noticed that 'help' was set up as a 'regular expression' and not as a 'command pattern'. Any reason behind this? I mean the 'drop' command, for example, could easily be set up as a regular expression too, or is it just personal choice?

K.V.
09 Oct 2017, 22:25I think it's just personal preference, but The Pixie would be the one with that answer.
I do know that Quest converts all the commands (and verbs) to regular expressions anyway, though. So, I'll go out on a limb and bet a penny on personal preference.

Amochure
09 Oct 2017, 23:55Thanks guys!
I guess a good abbreviation would be anything I recognize as me.
I do like HK's suggestion, AMO
easy to type for the lazy =)

K.V.
10 Oct 2017, 00:28Yay!
I aspire to be lazy!
Did you still need any help help?
hegemonkhan
10 Oct 2017, 04:00HK, like never, types out HegemonKhan... yuck! too long... HK, much better! hehe :D
except... it's HK as in HegemonKhan, not HK as in Hong Kong... lol
though at least using HK doesn't result in being called a pokemon... lol
hegemon = warlord = (greek) // and within the ender series by orson scott card (why I know of it and love it, card is a fkn genius)
hegemony = rule by warlord (though officially "force" is used... bleah yuck! warlord is what they mean by 'force' anyways!), example: the hegemony of the U.S. has finally come to an end.
hegemonic = example: the world is jealous and thus despises the hegemonic U.S.
khan / kahn = leader (like king for example)
(khan / kahn is eastern world, used in middle east, and east/central asia/mongolia. HK is history buff and LOVES mongols, the most powerful force humanity has ever known, muwhaha, must baddass of all of all history, hehe)
HegemonKhan = leader/king/ruler/emperer of the warlords (muwhaha!), so, no, it's not a type of pokemon!!!!
The Pixie
10 Oct 2017, 07:17I noticed that 'help' was set up as a 'regular expression' and not as a 'command pattern'. Any reason behind this? I mean the 'drop' command, for example, could easily be set up as a regular expression too, or is it just personal choice?
I am only guessing, but... Behind the scenes it is all done with regular expressions, so they must have been implemented pretty much from the start (I am talking about during the development of Quest 5). It seems like HELP was implemented then, as an easy command to test it worked. Later the alternative of command pattern was added.
mrangel
10 Oct 2017, 12:12Behind the scenes it is all done with regular expressions
I wish to change this :p Either that or see if the regex library used can be made to support code callbacks (which somehow I think would be more of a chore and less a fun challenge).
Yet another detail on the list of things that might be fun to play with; rebuild bits of the parser to support backtracking. Maybe I'll try it, if I run out of other things to do and I can find a Windows system to play on.
The Pixie
10 Oct 2017, 12:51I wish to change this :p Either that or see if the regex library used can be made to support code callbacks (which somehow I think would be more of a chore and less a fun challenge).
Can you expand on that? What are you hoping to achieve?
Quest is built on .NET and uses its built-in regex, so unlikely we will change how a regex works.
mrangel
10 Oct 2017, 16:32I have no idea if .NET supports some of the more recently added regex features (like Perl's (?{ ... })
and (??{ ... })
constructs), and I suspect not. But even if it does, I suspect there would be quite a bit of work necessary to expose that functionality to Quest. Not my project in any case; I'd be more interested in playing around with the parser itself.
Mostly just idle speculation for now. But maybe when I've got more time on my hands.