I7 - will this hack come back to bite me?

I consider having two repair actions, since repairing meat and machinery would act completely different. So I made a repa1ring action for “repair spoon” and a repairing action for “repair donald”.

But is this okay code?


repa1ring is an action applying to one thing.
Understand “repair [someone]” as repa1ring.
Report repa1ring someone:
Say “Whoever is now repaired!”;


repairing is an action applying to one thing.
Understand “repair [something]” as repairing.
Report repairing something:
Say “Whatever is now repaired!”;


The Holy Platform of Pi is a room.
Electric spoon is a thing in The Holy Platform of Pi.
Donald is a person in The Holy Platform of Pi.[/code]

Why not just use a single action with multiple rules?

Also, if I’m not completely wrong (which can be: it’s 3 AM here), [something] overrides [someone] as an inform thing can be a person. Right?

Jamespking, you’re right, Inform totally objectifies people! (but don’t happen in my code, though, for whatever reason)

Draconis, I’m not completely sure about this. But I sort of see it as two different actions, which just happens to share the same words. In the repa1ring action I could add 10 to the nouns life points, without bothering about that a spoon do not have life points, as it is not a person. To me, it sort of seem logical that these are seperate actions.

For clarity, I’d give the actions much better names, such as healing and mending. I’d also add understand vocab lines for those verbs too, in addition to the overriden repair vocab.

You could probably achieve something similar like this (untested):

[code]Healing is an action applying to one thing.
Repairing is an action applying to one thing. Understand “repair [something]” as repairing.

Before repairing a person: try healing the noun instead.[/code]

Then you could write action rules for healing without worrying that they would accidentally get applied to things that weren’t people. (I used “First before” rather than “Instead” just to make sure that the action gets redirected at the first possible opportunity.)

I’m not sure that this has any special advantages over using two different Understand lines, though.

Thanks Matt - much better solution! It tells Inform directly what it want, instead of the previous ones vague suggestion.

r3p41r1n6 15 4n 4c710n 4pply1n6 70 0n3 l3375p34k3r