Miloch Posted February 3, 2012 Share Posted February 3, 2012 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
Ardanis Posted February 3, 2012 Share Posted February 3, 2012 Decompile the D or patch the raw DLG? Link to comment
Miloch Posted February 3, 2012 Author Share Posted February 3, 2012 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
plainab Posted February 3, 2012 Share Posted February 3, 2012 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.