Jump to content

Replacing area items in a patch


Recommended Posts

I want to go through all areas and replace all items there - with the same resource names, but with a flag set now. If I only wanted to patch one concrete area and specific items there, I could use the REPLACE_AREA_ITEM function, but this one's doesn't seem to understand regular expressions, although the Weidu readme says otherwise. When I give it LPF REPLACE_AREA_ITEM STR_VAR old_item = ~\(.+\)~ new_item = ~\1~ flags = ~STOLEN~ END, I end up with \1.ITM items everywhere. I do use COPY_EXISTING_REGEXP GLOB.
 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...