qwertypol012 Posted February 23, 2019 Share Posted February 23, 2019 (edited) Hello, thanks for taking a look :smile: I'm currently tweaking a mod to add more kinds of enemy, and some enemies have their own region specific areas in which they'll spawn there. I'm still stuck on how to make certain enemies spawn in their correct region/area. I know there are region records and location keywords. There are also tons of location records, but i think it will be too much to check these locations one by one. So, what is the best way to check it? Edit: To clarify, the method to check will mostly be done via scripting, so my question is about what papyrus codes which are usable for such functionality. And of course, i'll prefer to use something lightweight than something which requires too much resources to handle. Edited February 23, 2019 by qwertypol012 Link to comment Share on other sites More sharing options...
xWilburCobbx Posted February 23, 2019 Share Posted February 23, 2019 I am not sure it is possible to do this any other way, normally you would just place the creatures through out a region like Bethesda... I can understand though, this might not be an option for you. I have never tried something like this before, but perhaps you could use super sized triggers to determine what region to begin spawning the specific enemies around you. Either way, as far as I know, this all you can do. If someone has more experience with this, please share, I am interested as well. Link to comment Share on other sites More sharing options...
qwertypol012 Posted February 23, 2019 Author Share Posted February 23, 2019 @smashballsx88Thanks for the reply. I'm currently still looking for ways to implement it. The method will be done via scripting, so if anyone could give me a vast references for the codes, i'll be really grateful. I'll give an update if i find a workable method. :smile: Link to comment Share on other sites More sharing options...
Evangela Posted February 23, 2019 Share Posted February 23, 2019 It will be difficult. Regions are set in the region section of the CK, and there isn't a convenient way of obtaining what region you're in at run time for references other than the player. However it might still be some use to you: https://www.creationkit.com/index.php?title=IsPlayerInRegion Link to comment Share on other sites More sharing options...
qwertypol012 Posted February 23, 2019 Author Share Posted February 23, 2019 Thanks Rasikko :smile: Indeed it seems impossible to check region via papyrus script. That condition function you posted could work, but unfortunately it couldn't work for me because of the way the script spawns the enemy types (99% done in the script, no enemy checks done using records in the plugin). That said, i already found another way to check the proper location for each enemy type. Instead of using region (which i actually wanted to use because i need some way to check snowy areas, forests, marshs, coasts, etc), i use location records and location keywords check instead. While they probably lack several things compared with regions, they actually could cover what i need for the most part. So i guess i've solved this issue for the time being. Hopefully no more problems arise regarding with this issue. :smile: Link to comment Share on other sites More sharing options...
Recommended Posts