Daxtreme Posted July 15, 2019 Share Posted July 15, 2019 Hey guys, I made this simple script to rename 3 cre files // Rune Mage rename ACTION_FOR_EACH cre IN ~TANWIZ02~ ~TANWIZ03~ ~TANWIZ04~ BEGIN ACTION_IF FILE_EXISTS_IN_GAME ~%cre%~ BEGIN COPY_EXISTING ~%cre%~ ~override~ LPF SANITIZE_CRE RET ok = ok END PATCH_IF ok BEGIN SAY NAME1 @1004 SAY NAME2 @1004 END BUT_ONLY END END Problem is... it doesn't work. The names never get changed. Is it because SAY cannot be nested like this? I use it frequently after COPY and it always works. @1004 in tra file is @1004 = ~Rune Mage~ Or is there a better and faster way to do it? Thanks! Quote Link to comment
Daxtreme Posted July 15, 2019 Author Share Posted July 15, 2019 Oh I definitely didn't catch that thanks! Quote Link to comment
Jarno Mikkola Posted July 15, 2019 Share Posted July 15, 2019 Erhm, .cre$ ... cause you could run to ij#1cre.sto .. and you don't want to patch that, but just the .cre -files. Quote Link to comment
Daxtreme Posted July 15, 2019 Author Share Posted July 15, 2019 I fixed it by stating cre right from the getgo (first line) ACTION_FOR_EACH cre IN ~TANWIZ02.cre~ ~TANWIZ03.cre~ ~TANWIZ04.cre~ BEGIN ACTION_IF FILE_EXISTS_IN_GAME ~%cre%~ BEGIN COPY_EXISTING ~%cre%~ ~override~ LPF SANITIZE_CRE RET ok = ok END PATCH_IF ok BEGIN SAY NAME1 @1004 SAY NAME2 @1004 END BUT_ONLY END END Quote Link to comment
DavidW Posted July 15, 2019 Share Posted July 15, 2019 It’s not a regexp, Jarno. Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.