Lauriel Posted February 7, 2020 Share Posted February 7, 2020 (edited) I'm running into an issue with a door that is named the same as a travel trigger region. I am unable to close or lock it. When I go into NI and change its name, everything works fine. When I use its original name, nothing happens. So I need to change the name of the door, or the travel trigger region. I can clone regions now (thank you @Gwendolyne!) and so could put in one with a different name but I don't know how to delete the original. So I guess I need either a rename_door, rename_region, delete_door, or delete_region function. Does anyone have such a critter? Edited February 7, 2020 by Lauriel Fixed typos Quote Link to comment
Lauriel Posted February 7, 2020 Author Share Posted February 7, 2020 (edited) Ok, I'm trying to write my own based on the function that clones regions that @Gwendolyne wrote. So I can find the region. Awesome! But when I try to update the name, it puts in the name of the variable instead of its value. The line of code is: WRITE_ASCII ("%region_off%" + 0x00 + (0xC4 * i)) ~%new_name%~ It puts in %new_name% for the name of the region. At least it sort of works. LOL I've tried just new_name, I've tried just %new_name%, I even tried EVAL ~%new_name%~ (it didn't like that at all). I've run out of things to try. Help? What's the magic syntax to put in the variable's value versus its name? EDIT: Found it! (WRITE_EVALUATED_ASCII for those in the future that will also bash their heads against this) Edited February 7, 2020 by Lauriel Quote Link to comment
Gwendolyne Posted February 7, 2020 Share Posted February 7, 2020 Too fast for me. I wrote a function that did that. You should use WRITE_ASCIIE to save your time. Quote Link to comment
Lauriel Posted February 7, 2020 Author Share Posted February 7, 2020 1 minute ago, Gwendolyne said: You should use WRITE_ASCIIE to save your time. Good point! 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.