Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #### Short Desc
- `at_after_move` is set on the Character typeclass. It tells the character what to do immediately upon entering a new location.
- ```python
- def at_after_move(self, source_location):
- """
- This hook's default behavior is to look at the room after it moves to it.
- """
- # Force the character to be greeted with the room's short description.
- if not source_location:
- return
- self.msg(f"{self.location.short_desc(self)}")
- ```
- **Example String:**
- ```
- You arrive at Hoff's Bar. Hoff and basic supplies merchant are here. You see a dimly lit hallway to the north, a supply shop to the west, a well kept garden to the east, and alley to the south.
- ```
- **Short Description's String Formatting**
- 1. You arrive at `{room_name}`.
- 2. `{list_of_occupants}` are here.
- 3. You see `{list_of_exits}`.
- #### Long Desc
- **Alley**
- ```
- a cramped alley
- Return Description
- ------------------
- You see a cramped alley. This alley runs behind residential buildings. The spacing here is tight, leaving only enough room for two people to brush past each other.
- You see a cramped alley to the west, and a cramped alley to the east.
- a pile of gold coins, a pile of silver coins, and a stave lie upon the ground.
- Bob, Jerry, and Kate are here. This area is devoid of a crowd.
- ```
- **Description Format**
- * `room_name` - `a cramped alley`
- * Return Description - What returns to the looker when looking at this room.
- 1. `You see <room_name>.`
- 2. Short generalized description of the room.
- 3. Short generalization of the room's activity status.
- 4. New line with `You see {list_of_exits}.`
- 5. New Line: `{list_of_items} lie upon the ground.`
- 6. New Line: `{list_of_occupants} are here. {crowd description}`
- ```python
- string = f"{location_name}"
- if self.db.desc:
- string = f"{string} {self.db.desc}"
- if exits:
- string = f"{string}\n{exits_string}"
- if things:
- string = f"{string}\n {list_to_string(thing_strings)} |nlie upon the ground."
- if characters:
- string = f"{string}\n {list_to_string(characters)} {'is' if len(characters) == 1 else 'are'} here."
- if self.db.crowd and not characters:
- string = f"{string}\n {self.db.crowd_short_desc}"
- if self.db.crowd and characters:
- string = f"{string} {self.db.crowd_short_desc}"
- return string
- ```
- Examples of various floor types that could be utilized.
- `<adjective>` `<floor_type>` floor
- **Floor Adjectives**
- make-shift
- highly-polished
- crumbling
- rocky
- slippery
- dirty
- rough
- solid
- smooth
- uneven
- filthy
- misshapen
- deformed
- **Floor Types**
- wood
- marble
- stone
- dirt
- mud
- cobblestone
- tiled
- straw
- Example sentences of how the floor could be presented within the appearance.
- **Sand**
- * The floor is comprised of white sand.
- * This floor is nothing but plain beach sand. You can occasionally spot little lifeforms crawling all over the pebbles and seashells.
- * This floor's pale-grey sand is dotted with dark patches.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement