Jump to content


Photo

REPLACE_ACTION_TEXT regexp issue


3 replies to this topic

#1 Miloch

Miloch

    Barbarian

  • Modders
  • 4715 posts
  • Gender:Male
  • Location:At Large

Posted 03 February 2012 - 06:09 AM

Can't seem to get REPLACE_ACTION_TEXT or any variants to work with any sort of multi-line syntax.

<<<<<<<< t-amnise.d
REPLACE_ACTION_TEXT amnise
~TakePartyGold(200)[%WNL%%MNL%%LNL%%TAB% ]+EscapeArea()~
~TakePartyGold(200) Shout(1) EscapeArea()~
>>>>>>>>
COMPILE ~t-amnise.d~

<<<<<<<< t-amnise.d
REPLACE_ACTION_TEXT amnise
~TakePartyGold(200)
EscapeArea()~
~TakePartyGold(200)
Shout(1)
EscapeArea()~
>>>>>>>>
COMPILE ~t-amnise.d~

Neither of those works. Only this does:

<<<<<<<< t-amnise.d
REPLACE_ACTION_TEXT amnise
~TakePartyGold(200)~
~TakePartyGold(200) Shout(1)~
>>>>>>>>
COMPILE ~t-amnise.d~

Which I guess is actually sufficient for current purposes, but a whole lot of other stuff isn't going to work if either the regexp or the hard linebreak isn't getting picked up. Any clues? FWIW, the same regexp works in REPLACE_TEXTUALLY in scripts etc.
Mod Contributions
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon

#2 Ardanis

Ardanis

    A very GAR character

  • Members
  • 2249 posts
  • Gender:Male
  • Location:Saint-Petersburg, Russia

Posted 03 February 2012 - 10:00 AM

Decompile the D or patch the raw DLG?
"Uguu~ Boku Ayu."

Before you start breaking wall tiles with your bare fists, ask yourself first - do you truly need it?

#3 Miloch

Miloch

    Barbarian

  • Modders
  • 4715 posts
  • Gender:Male
  • Location:At Large

Posted 03 February 2012 - 11:20 AM

Was trying to avoid DECOMPILE but it's an option. Problem is, there's a whole mess of code in the mod (not my code) that uses that sort of syntax, so I could've sworn it was working at some point. I don't see why it wouldn't work the same way it would in a DECOMPILE.
Mod Contributions
Aurora (new release!) * BG1 NPC * Gnomes * Haiass * Level 1 NPCs * Lost Items * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * In Progress: Adjusted Portraits * DSotSC (Tutu)
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * PSPad Highlighters * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Wherefore do ye toil; is it not that ye may live and be happy? And if ye toil only that ye may toil more,
when shall happiness find you?" -H.P. Lovecraft, The Quest of Iranon

#4 plainab

plainab

    Sasha al'Therin

  • Members
  • 1717 posts
  • Gender:Male
  • Location:Lost on the Sword Coast

Posted 03 February 2012 - 12:17 PM

the problem lies in using two existing lines. No matter what order you put them in. I think REPLACE_ACTION_TEXT expects you to be changing the first original line but was designed to allow adding of a new line since there is no INSERT_ACTION_TEXT command...
My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altheri...s.com/index.htm



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users