Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

That might explain why my noun2 sometimes ends up being noun1 with disastrous consequences. That is so wrong.

Show me an example of this and I'll resolve it.

Generally speaking, if a standard preposition occurs between a verb and a known noun, then the next noun is noun2.

e.g. 

If the player enters:

put blah foo jimmy in cupboard

Where:

  • put is a known verb
  •  blah, foo, and jimmy are non dictionary words
  • 'in' is a standard preposition
  •  cupboard is a known noun

Adventuron would parse as :

  • verb = put
  • noun1 = undefined (empty)
  • noun2 = cupboard

Well, just as an example, there's that one I asked you about offline a couple of days ago. GET BLAH FROM POCKET resulted in s1 = pocket and s2 = pocket. It would help if we knew what the standard prepositions were.

Based on what you said here, I did a bit of experimenting and worked out that if I use a test like :if (preposition_is "from" && noun2_is "pocket") {}, that seems to fix it. Am I on the right track?

(+1)

You could add propositions in the vocabulary {} section.

The issue you reported the other day was a bug, and was fixed.

I just added an issue to the issue tracker to document the standard verbs and prepositions.

I wondered about that. I had added [in, into, inside] and [on, onto] (because I think I'll need them). The others I'm likely to need are [about], [from] and [with]. I've just added them. It looks like it's okay to have one word in the array. It certainly doesn't complain.

Yes, one word in an array is fine.