how to force more with regular expressions?


Ask fellow adventurers how to stay alive in the deep, dark, dangerous dungeon below, or share your own accumulated wisdom.

User avatar

Tomb Titivator

Posts: 799

Joined: Monday, 31st January 2011, 23:19

Post Sunday, 10th March 2019, 17:56

how to force more with regular expressions?

I want to do this:

force_more_message += \bresist\b, so when something is resisted, I get a force more message, but not when I walk over a ring of fire resistance. Is that possible? \b is a word boundary.

Ziggurat Zagger

Posts: 4222

Joined: Friday, 8th May 2015, 17:51

Post Sunday, 10th March 2019, 18:01

Re: how to force more with regular expressions?

It is not an exact answer to your question but you can try "force_more_message += resists".
Underestimated: cleaving, Deep Elf, Formicid, Vehumet, EV
Overestimated: AC, GDS
Twin account of Sandman25
User avatar

Tomb Titivator

Posts: 799

Joined: Monday, 31st January 2011, 23:19

Post Sunday, 10th March 2019, 18:25

Re: how to force more with regular expressions?

That works for when they resist, but not when I resist. That helps, though, thanks.

Ziggurat Zagger

Posts: 5251

Joined: Friday, 25th November 2011, 07:36

Post Wednesday, 13th March 2019, 23:30

Re: how to force more with regular expressions?

So then would this cover both cases:

"force_more_message += resists".
"force_more_message += you resist".

I haven't tested this but I believe when the player resists it should match that. Not sure if you need to capitalize the Y.

Return to Dungeon Crawling Advice

Who is online

Users browsing this forum: No registered users and 4 guests

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