Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Tell us about adjectives

A topic by Garry Francis created Oct 09, 2019 Views: 60 Replies: 3
Viewing posts 1 to 4
Submitted

The Adventuron doco tells us that you can define an object with an identifier of a_b, where a is the adjective and b is the noun. For example:

scary_ghost : object "scary ghost" start_at = "morgue";

However, what do you do if the adjective is possessive, e.g. guardian's keys?

guardian's_keys : object "guardian's keys" start_at = "dungeon";

You can't use an identifier of guardian's_keys, as it spits the dummy with the single quote (or apostrophe, to be more technically correct). With a bit of experimentation, I discovered that I could omit the adjective in the identifier and use adjective = "something" in the definition. The only trouble is...it doesn't do anything!

Furthermore, the doco tells us that you can test for adjective1_is "adjective" and adjective2_is "adjective". adjective1 = "something" and adjective2 = "something" can't be used. (They cause an error.) So how on earth do you define your adjectives if you have a possessive adjective or you have multiple adjectives?

With a bit more experimentation, I think I may have answered my own question. It looks like if I leave the adjective off the identifier, it just gets the adjectives from inside the double quotes and you can have as many adjectives as you like. For example:

hat : object "gnome's really big hat" start_at = "vault";

Is this correct? If so, I'm deleting all the adjectives from my identifiers to save typing.

Host

Omitting the adjective part from the identifier will just not associate an adjective with the object (only a noun).

The possessive adjective is not used (or supported) right now. I'd just focus on giving objects one adjective. I'd say in the case of the gnome's really big hat, just use 

big_hat : object  "gnome's really big hat" start_at = "vault";

Multiple objects can share the same verb and adjective, using numeric suffixes:

big_hat_1 : object  "troll's really big hat" start_at = "vault";


Disambiguation for all the system commands is automatic, but for user match commands, you'll have to disambiguate manually (for now). This implementation will be changing, but not before the end of this jam.

Submitted

But the possesive adjective works for me. It does for EXAMINE at least.

Another one that I keep coming up against is "something of something". For example, a bag of gold, a bottle of water, a pair of boots and so on. If I say:

bag_of_gold : object "bag of gold";

it complains, because I can only have one underscore in the identifier, except in those cases where there's a numeric suffix.

How should I define this? I want it to understand bag, gold and bag of gold as all being synonymous. If I use:

gold : object "bag of gold";

I can make bag a synonym in the vocabulary{} block, but will it understand "bag of gold"?

Submitted

Actually, making bag a synonym isn't going to work, as I have bag and gold as separate objects, then bag of gold later when they are combined. (Incidentally, these aren't the real objects in my game. I'm just using bag of gold as an example, but the principle is the same.)