Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0

Defined in: adventure/dictionary/NounMustBe.js, line 5

Engine class

Description

NounMustBe is a special class used while parsing Input to specify general conditions that a noun must meet for a Verb to act on it. This is a broad set of exclusions used to narrow items by class or by certain properties, or availability to the player character. Exclusion is handled by Parser.qualifyParsedNoun. Each verb has more specific logic to handle more specific conditions. This is an internal class that authors should not need to construct, though there are methods to allow authors to customize these settings per Verb. See Modify Verbs for more info.

Private Constructor:

var foo = new AdventureJS.Dictionary.NounMustBe()
Inherited Overrides

Methods Collapse all  |  Expand all

Properties  | 

character
character :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 32

Default value: false

If true, Verb will only act on Characters.
child_of_noun2
child_of_noun2 :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 39

Default value: false

If true, Verb will only act on noun1 if it is a child of noun2. For verbs such as 'take a from b', where b must be in a for verb to be relevant.
direction
direction :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 48

Default value: false

If true, Verb will only act on directions, such as "go north".
dov
dov :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 55

Default value: false

If true, parser will exclude assets that Verb can't act on.
exit
exit :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 62

Default value: false

If true, Verb will only act on Exits
extant
extant :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 70

Default value: true

Extant means the asset is available in the game world. If extant is false the asset can be referred to but not used.
global
global :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 79

Default value: false

If true, Verb will only act on global Assets
global_substance
global_substance :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 88

Default value: false

If true, Verb will only act on global_substance. This is method for referring to a substance in the abstract rather than to a specific portion of substance.
in_hands
in_hands :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 98

Default value: false

If true, Verb will only act on Assets in the player character's hands, such as held objects like ropes.
in_inventory
in_inventory :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 107

Default value: false

If true, Verb will only act on Assets in player's inventory.
in_inventory_if_takeable
in_inventory_if_takeable :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 115

Default value: false

If true, if Asset is takeable, it must be in player character's inventory for verb to act on it.
intangible
intangible :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 124

Default value: false

If true, Verb will only act on Intangibles.
iov
iov :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 131

Default value: false

If true, parser will exclude assets that Verb can't act on.
known
known :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 138

Default value: false

If true, Verb will only act on Assets that are known by player character.
matter
matter :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 146

Default value: false

If true, Verb will only act on Matter, which includes Tangibles and Substances.
not_direction
not_direction :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 170

Default value: false

If true, Verb will not act on directions.
not_exit
not_exit :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 177

Default value: false

If true, Verb will not act on Exits
not_global
not_global :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 185

Default value: false

If true, Verb will not act on global Assets
not_in_hands
not_in_hands :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 194

Default value: false

If true, Verb will not act on Assets in the player character's hands, such as held objects like ropes.
not_in_inventory
not_in_inventory :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 203

Default value: false

If true, Verb will not act on Assets in player's inventory.
not_in_prior_plural
not_in_prior_plural :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 211

Default value: false

If true, qualified object of noun2 will be excluded from noun1. Chiefly intended for cases like 'put all in thing' where 'thing' should not be included in 'all'.
not_parent
not_parent :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 311

Default value: false

If true, Verb will not act on the parent object of the subject of current input. By default that is the player but may also be an NPC in cases such as "Floyd, go east".
not_parent_or_room
not_parent_or_room :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 320

Default value: false

If true, Verb will not act on the parent object or room of the subject of current input. By default that is the player but may also be an NPC in cases such as "Floyd, go east".
not_player
not_player :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 244

Default value: false

If true, Verb will not act on the player character.
not_player_parent
not_player_parent :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 266

Default value: false

If true, Verb will not act on the parent object of the player character.
not_scenery
not_scenery :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 220

Default value: false

If true, Verb will not act on Scenery
not_self
not_self :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 284

Default value: false

If true, Verb will not act on the character specified by current input. By default that is the player but may also be an NPC in cases such as "Floyd, go east".
not_substance
not_substance :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 228

Default value: true

If true, Verb will not act on Substances
not_worn
not_worn :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 236

Default value: false

If true, Verb will only act on Assets not worn by player.
parent
parent :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 293

Default value: false

If true, Verb will only act on the parent object of the subject. By default that is the player but may also be an NPC in cases such as "Floyd, go east".
parent_or_room
parent_or_room :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 302

Default value: false

If true, Verb will only act on the parent object or room of the subject. By default that is the player but may also be an NPC in cases such as "Floyd, go east".
player
player :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 251

Default value: false

If true, Verb will only act on the player character.
player_parent
player_parent :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 258

Default value: false

If true, Verb will only act on the parent object of the player character.
present
present :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 154

Default value: false

If true, Verb will only act on Tangibles that are in the current Room
present_if_tangible
present_if_tangible :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 162

Default value: false

If true, Verb will only act on Tangibles that are in the current Room
reachable
reachable :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 336

Default value: false

If true, Verb will only act on Tangibles that are reachable to player character. Reachability may be determined by a number of factors.
reachable_if_tangible
reachable_if_tangible :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 345

Default value: false

If true, Verb will only act on Tangibles that are reachable to player.
reservoir_if_substance
reservoir_if_substance :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 396

Default value: false

If true, Verb will only act on Substances reservoirs. Looks for Substances in a present Vessel.
reservoir_if_substance
reservoir_if_substance :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 405

Default value: false

If true, Verb will only act on Substances that are in reservoirs or carried vessels. Looks for Substances in a present Vessel.
scenery
scenery :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 353

Default value: false

If true, Verb will only act on Scenery
self
self :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 273

Default value: false

If true, Verb will only act on the character specified by current input. By default that is the player but may also be an NPC in cases such as "Floyd, go east". This is distinct from this.player, which will only act on the player character.
singular
singular :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 361

Default value: true

If true, Verb will not act on a group of items. This is distinct from singular. For example, if player has three keys and tries to "unlock door with all keys", "all keys" being plural will be rejected.
singular
singular :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 370

Default value: false

If true, Verb will not act on items that are not singular, such as collections. For example, author might make a collection to represent three drawers in a desk. Though the collection itself is a single asset, it represents multiple other assets.
string
string :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 379

Default value: false

If true, Verb will only act on strings, for example: say "foo" to npc
substance
substance :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 387

Default value: false

If true, Verb will only act on Substances. Looks for Substances in a present Vessel.
takeable
takeable :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 415

Default value: false

If true, Verb will only act on Tangibles that can be taken by player character.
tangible
tangible :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 329

Default value: false

If true, Verb will only act on Tangibles.
visible
visible :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 423

Default value: false

If true, Verb will only act on Tangibles that are visible to player character. Visibility may be determined by a number of factors.
visible
visible :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 432

Default value: false

If true, Verb will only act on Tangibles that are visible to player character. Visibility may be determined by a number of factors.
worn
worn :Boolean

Defined in: adventure/dictionary/NounMustBe.js, line 441

Default value: false

If true, Verb will only act on Assets worn by player.