Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
175 lines (122 sloc) 4.33 KB
"Cinderella" by hung,kai che
[==============::CODE::==============]
The Plaza is a room.
When play begins:
now the player is in the Plaza.
[::OBJ and STATE::]
The water is in the well.
The water can be either unfetched or fetched. The water is unfetched. "the water is clear".
A pitcher is in the plaza.
A pitcher can be either fine or broken. The pitcher is fine. "the pitch is sound and well".
A fairy is in the plaza.
A fairy can be either disappear or appear. The fairy is disappear. "the fairy have magic".
The well is in the plaza.
[::ACTION::]
Fetching is an action applying to one touchable thing. Understand "fetch [something]" as fetching.
Check Fetching:
if the noun is fetched, say "you already fetch the pitcher with water" instead.
Carry out Fetching:
now the noun is in fetched.
[Report fetching
say "You fetch the wate. It heavy."]
After Fetching the Noun:
say "you ftetch the water, a pitcher of water is heavy"
Carrying is an action applying to one touchable thing. Understand "grap [something]" or "take [something]" or "carry [something]" as carrying.
Check Carrying:
if the noun is fine, say "the pitcher is sound and well" instead.
Check Carrying:
if the noun is broken, say "omg, the pitcher is broken you will be punished " instead.
[Carry out Carrying:
now the noun is carried.]
Instead of carrying the Noun:
say "the pitcher fall down into the well and broke. your mom will punish you, you better start to cry."
After Carrying the Noun:
say "well, now you can finally go home".
Crying is an action applying to nothing. Understand "cry" as crying.
Report crying:
say "you are crying so saddly, maybe the fairy will comes out a help you".
Saying is an action applying to one touchable thing. Understand "say" or "speak" or "talk" or "tell" as saying.
Report Saying:
say "you are trying to call [the noun]. [if disappear] no one can help you [else] the fairy will help you to fix it [end if]."
Cursing is an action applying to one touchable thing. Understand "curse" as cursing.
Check cursing:
if the noun is broken, say "bi bi ma mo tsu tsu ka ku" instead.
Carry out cursing:
now the noun is in fine.
After cursing the Noun:
say "now you have a pitcher with legs and arms to help you".
[========::ELEMENTS IN CINDERELLA::========]
[Character:
orange
lemon
mom
fairy
pitcher]
[Action:
fetch/carry
break
say/tell
disappear]
[State:
gone
grieved
broke]
[Object:
water
pitcher]
[Location:
Well
Plaza
Home]
[==============::NOTE::==============]
[***Things in the inform***]
[Actions, Commands, Kinds, Relations, Worlds]
[**Verb**]
[1.Verbing is an action applying to nothing.]
[*state*]
[2.Understand "verb" as verbing.]
[*Changing a property* ]
[3.Report verbing:
say "...............[the noun]................."]
[Verbing is an action applying to one touchable thing. Understand "verb [something]" as verbing.]
[*Interfering with Graham’s actions*]
[Instead of Verbing the Noun:
say "..................................................."]
[After Verbing the Noun:
say "..................................................."]
[**State**]
[*Boolean properties*]
[X can be either Y or Z. X is usually Y.]
[[if property] text A [else] text B [end if]]
[*Changing a property* ]
[Check tuning:
if the noun is property, say "some text" instead.
(triggered before the action takes place)]
[Carry out tuning:
now the noun is in tune.
(actual instructions of how to update the game state)]
[**New kinds of things : Class**]
[X is a kind of thing. X can be either Y or Z. Xs are usually Y.]
[A is a X.]
[**Relations**]
[X relates one Y to one Z. The verb to V means the X relation.]
[**debug: showme**]
[**Descriptions**]
[The Noun is a room. The description of the noun is "description" ]
[The Noun is a room. "description" ]
[[object] is here]
[**Decorating the set, possessions, getting dressed relation**]
[is carrying, is on, is wearing]
[is an openable container, is fixed in place, is edible]
[**map**]
[is [DIR] of]
[When play begins:
now the player is in the [location].]
[**END of the story**]
[Instead of going inside from the Laboratory:
if the player [Verbing Noun]:
say "...................................................";
end the story finally;
otherwise:
say "....................................................";
continue the action.]