Force more on weapons of distortion


Problems running or configuring the software, commands & options, compiling, different platforms, using the interface, documentation, etc.

Halls Hopper

Posts: 81

Joined: Friday, 17th April 2015, 23:46

Post Tuesday, 2nd June 2015, 16:48

Force more on weapons of distortion

I want to add a line to my RC file in order to force a [More] prompt when a monster wielding a weapon of distortion shows up.

The text I want to detect is "is wielding a <type_of_weapon> of distortion". I'm not sure how to express it using a regular expression.

Would something like
  Code:
force_more_message += is wielding a.*of distortion
work?

Thanks.

Ziggurat Zagger

Posts: 11111

Joined: Friday, 8th February 2013, 12:00

Post Tuesday, 2nd June 2015, 16:51

Re: Force more on weapons of distortion

I use
  Code:
force_more_message += distortion


and/or

  Code:
flash_screen_message += distortion


depending on crawl version (the latter works in trunk only).

Edit. Note that it does not guarantee anything, it is still possible to get no warning when several monsters come into view and one/some of them have distortion.

For this message the author Sandman25 has received thanks:
quik

Halls Hopper

Posts: 81

Joined: Friday, 17th April 2015, 23:46

Post Tuesday, 2nd June 2015, 16:54

Re: Force more on weapons of distortion

Thanks for your quick answer. I didn't know the flash_screen_message command, very interesting!

EDIT: And now I saw your edit. That's a bummer.

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 18 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.