Results 1 to 4 of 4

Thread: Message suppression - what am I doing wrong?

  1. #1
    Join Date
    Jan 2011
    Location
    Poland
    Posts
    1,757

    Default Message suppression - what am I doing wrong?

    Hey guys.
    I'm dabbling in chaos alchemy but wanted to streamline the process a bit and suppress/replace the related messages.
    For example, I have these two messages which occasionally extend beyond the standard two lines and the (more) prompt is then used:
    Code:
    You dip the uncursed potion of raw chaos into the uncursed potion of raw chaos.
    The uncursed potion of raw chaos is transformed into a potion of foo!
    What I did in adom.msg is the following (just an excerpt relevant to the topic):
    Code:
    :replace
    #brown
    :brown
    .*potion of raw chaos into.*|PoRC dip.
    .*potion of raw chaos is transformed into.*|PoRC polymorph.
    Result?
    Code:
    You dip the uncursed potion of raw chaos into the uncursed potion of raw chaos.
    PoRC polymorph.
    Why does it only work for the second line?
    "Hell is empty and all the devils are here."

  2. #2
    Join Date
    Aug 2011
    Posts
    701

    Default

    The first message is composed of two different strings: [You dip the uncursed potion of raw chaos] [into the uncursed potion of raw chaos.]
    You need something like:
    Code:
    You dip the.*potion of raw chaos|Dip PoRC
    into the.*potion of raw chaos|into PoRC.

  3. #3
    Join Date
    Jan 2010
    Posts
    941

    Default

    For the benefit of others browsing this thread, some of the posts in this thread have further examples of this structure: [1], [2]
    gate closers: GeWi GnMo(unarmed) DeAs/Pa/Mi(staves)/Ra GePr DrBb HrMo | p7: MeBf | p17: GnPr | p20: DrDu GnAs DeCk MeWp OrBf GnTh MeHe | R57: MeDu | R101: DrAs (26,674 turns) GnDu (26,748) DrAs (18,533)
    ULE: HeRa — OCG: DeMi
    currently speedrunning DrAs.

  4. #4
    Join Date
    Jan 2011
    Location
    Poland
    Posts
    1,757

    Default

    Quote Originally Posted by Grond View Post
    The first message is composed of two different strings: [You dip the uncursed potion of raw chaos] [into the uncursed potion of raw chaos.]
    You need something like:
    Code:
    You dip the.*potion of raw chaos|Dip PoRC
    into the.*potion of raw chaos|into PoRC.
    Thanks Grond, this worked.
    Now I can handle some of the other similarly complex messages.
    "Hell is empty and all the devils are here."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •