verb element

From QuestWiki
Jump to: navigation, search
<verb optional name=" name " optional pattern=" pattern " optional unresolved=" unresolved text " optional property=" attribute name " optional response=" default response text " optional template=" template name "> script </verb>

or

<verb optional name=" name "> attributes </verb>

Creates a verb, which is a specialised type of command element - so everything that applies to a command also applies to a verb. Underneath, verbs are just commands - if you look at them in the Debugger, they are the same thing. But they are designed to be easier to use than commands for the vast majority of commands which are of the form "command object", such as "look at thing", "eat food", "sit on bench" etc.

In addition to any "defaultcommand" type, verbs also inherit "defaultverb". In Core.aslx this provides the standard verb implementation. We take the object the player entered, and look for the attribute as specified by "property". Then:

Personal tools
Namespaces
Variants
Actions
Navigation
Quest Documentation
Toolbox