alkemann / stone_soup_cosplay

POC of a Dungeon Crawl Stone Soup scoreboard keeper for the Cosplay challenges
MIT License
1 stars 6 forks source link

add quotes (from monspeak.txt) for Uniques #39

Open RoGGa-loves-DCSS opened 5 years ago

RoGGa-loves-DCSS commented 5 years ago

Uniques say things that are quite peculiar sometimes ...such as Harold: "I don't have all day!" Capture these quotes in database and show randomly one of the quotes on the challenge's description page.

As an example, see the text above: "Dungeon Crawl Stone Soup is an open-source," on the following page: http://crawl.develz.org/wordpress/

RoGGa-loves-DCSS commented 5 years ago

those quotes can be found in: \Crawl\dat\database\monspeak.txt

here's an extract: _Asterioncommon

VISUAL:@The_monster@ snorts and paws the ground.

VISUAL:@The_monster@ slowly taps @possessive@ weapon in @possessive@ hand.

@The_monster@ says, "Soon your soul will belong to Makhleb." @player_only@

@The_monster@ says, "Makhleb has given me powers of destruction."

@The_monster@ says, "Your corpse will decorate my castle walls." @player_only@

@The_monster@ says, "In my kingdom, weaklings like you are put to the sword." @player_only@

@The_monster@ says, "No maze can contain me."

@The_monster@ says, "Enter my house and I will deliver you from evil." @player_only@

@The_monster@ says, "My mother, she was a queen." @player_only@

@The_monster@ screams, "Stop staring at me!" @player_only@

@The_monster@ bellows, "My home has fourteen doors!"

@The_monster@ chants a prayer to Makhleb.

@The_monster@ says @to_foe@, "Your valuables will do nicely in my coffers." @player_only@

%%%% _Asterionrare

@The_monster@ unleashes a bloodcurdling roar.

@The_monster@ chants and is briefly shrouded in fire.

@The_monster@'s eyes glow. You hear demonic laughter.

@The_monster@ says, "{{ if you.skill("Spellcasting") >= 5 then return "Ah, a wizard! I'll enjoy hearing you beg for your life." else return "You're no warrior. You fight like a peasant!" end }}" @player_only@

@The_monster@ says, "{{ if you.god() == "Makhleb" then return "In the name of our god, lay down your life!" else return "Kneel before Makhleb, unbeliever!" end }}" @player_only@

@The_monster@ screams @at_foe@, "What ORB?! I have an entire kingdom!" @player_only@

@The_monster@ screams @at_foe@, "Bow down before your king! Bow! Bow!!" @player_only@ %%%%

kitchen-ace commented 5 years ago

It should be easy for me to preprocess these so that a quote can just be picked from a plain-text list of possible options. Maybe even just as a "quotes" field in the challenge form.

kitchen-ace commented 5 years ago

I'm not really sure where to put a quote right now, so let's leave this until I get a different css design going.