![]() I guess that “the spell understood” probably isn’t set at that stage of parsing. Understand "" as performing magic when the spell understood is the magic word.īut the “understand” line doesn’t work even when you use the magic word. (I didn’t make the text of my check performing magic rule adaptive, due to laziness.) This lets us write custom responses to the other possible magic words and may avoid some complications from an unrestricted “” token. Say “You sense a distant disturbance, as if the spell you uttered had some effect in an alternate universe but in this universe, nothing happens.” instead. Unless the spell understood is the magic word: Understand “” as performing magic.Ĭheck performing magic (this is the spell must be the magic word rule): Performing magic is an action applying to one spell. The spells are xyzzy, plugh, plover, frotzle, and frobnoid. We could also create the possible magic words as a value and have our action run on that:Ī spell is a kind of value. It took an annoying amount of fiddling before I hit on ‘unless “” matches the text “”:’ as the formulation for that line. Test me with “read book / read book / read book / xyzzy / plugh / plover / frotzle / frobnoid”. Say “ the word ‘’ in a commanding voice, and eyebrows grow bushier.” (A). Performing magic is an action applying to one topic.Ĭheck performing magic (this is the failed spells are unrecognized rule): The description of the book is “It falls open to a page that says ‘’ in ornate gold letters.” Now the magic word is the substituted form of “xyzzyplughploverfrotzlefrobnoid”. I think this would basically amount to creating an action on text that matched a “” token, and then having our spell check whether the topic understood matched the magic word: We could look at doing something similar at the I7 level here. We could look at doing something similar at the I7 level here.īalances (an I6 demo game with an Enchanter-like spell system) implemented spell names as verbs using the UnknownVerb entry point and mapping “failures” that matched memorized spell names to a special alternate version of the cast action. Balances (an I6 demo game with an Enchanter-like spell system) implemented spell names as verbs using the UnknownVerb entry point and mapping “failures” that matched memorized spell names to a special alternate version of the cast action. The issue stems in part from a topic being distinct from a text, and in part from Inform not liking dynamic verb words because it needs to set up grammar entries. The enumeration of the magic words in understand statements isn’t ideal. This relaxation allows us to set the variable based on computations done in a ‘when play begins’ rule that the compiler might not be willing or able to perform at compile time. In other words, it’s set once when play begins (or when the player first reads the book) and is left alone after that. The text variable doesn’t actually have to be a constant, so long as it’s treated as one. Test me with "read book / read book / read book / xyzzy / plugh / plover / frotzle / frobnoid". Say " the word '' in a commanding voice, and eyebrows grow bushier." (A). Report performing magic (this is the report performing magic rule): Understand "frobnoid" as performing magic when the magic word is "frobnoid". Understand "frotzle" as performing magic when the magic word is "frotzle". ![]() Understand "plover" as performing magic when the magic word is "plover". ![]() Understand "plugh" as performing magic when the magic word is "plugh". Understand "xyzzy" as performing magic when the magic word is "xyzzy". Performing magic is an action applying to nothing. The description of the book is "It falls open to a page that says '' in ornate gold letters." Now the magic word is the substituted form of "xyzzyplughploverfrotzlefrobnoid". Here’s one way to do it: Test Chamber is a room.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |