Jump to content

REPLACE_ACTION_TEXT regexp issue


Miloch

Recommended Posts

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.

Link to comment

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.

Link to comment

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...

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...