Jump to content

LCountach

Members
  • Posts

    17
  • Joined

  • Last visited

Nexus Mods Profile

About LCountach

Profile Fields

  • Country
    None

Recent Profile Visitors

4658 profile views

LCountach's Achievements

Apprentice

Apprentice (3/14)

0

Reputation

  1. It Worked!!! It Worked!!! Thank you so much! It Worked!!! I've put over 2000hrs in Skyrim's CK and faced 3 big showstopper challenges along the way. #1 Getting the Creation Kit itself to simply run with Skyrim VR. #2 Writing the scripts to get the city population continually refreshing. And #3 This one! Getting a Radiant Quest to Dynamically choose a Marker and spawn enemy NPCs on it. Thank you so much! I don't think I would have solved this one on my own.
  2. The Scripts.zip was a problem I ran into in the past but, I've had it installed for a while now. I tested several more times. I think I figured out why the "Extends ReferenceAlias" script would not compile. Like I said, I can't read code very well. The line: (GetOwningQuest() as DefaultCounterQuestA).DeathCount() Seems like it points to the second script literally named "DefaultCounterQuestA"? That script needed to exist first. Before the first script would see it and pass the compile checks. I think? Anyway... I'm a noob with scripting. Thanks again for trying to help! I'll report back tonight or tomorrow night. If it works or not. Also, thanks for the warning about SKSE breaking. It's ok though. My install of Creation Kit lives by itself in an empty Skyrim SE folder. With the resource files from Skyrim VR copied over so it will run. Skyrim VR installs itself in a different VR named folder that CK refuses to run from.
  3. Unfortunately I was unable to test run these scripts. In the first script "Extends ReferenceAlias". The compiler didn't know what DefaultCounterQuestA was and threw an error. (GetOwningQuest() as DefaultCounterQuestA).DeathCount() I only understand at best 50% of the scripts myself and was unable to trouble shoot.
  4. THANKS! I think I can follow this. Will try it as soon as I have time later today. Will report back the result.
  5. Sorry to Necro this thread but I am having a similar problem. After watching many tutorials. I made my first ever quest. A simple Radiant Quest to kill 3 baddies. I placed a large number of XMarkers with a specific RefType. All around my city map. The Location Alias using "Find Matching Location" and condition looking for my specific RefType. A Reference Alias using "Location Alias Reference" pointing to the XMarker the Location Alias dynamically selected. Then the baddies are Dynamically Generated by their Aliases using "Create Reference to Object" and placed on the randomly selected XMarker. Complicated I know and possibly the wrong way to do it. However the chain of steps to this point does work. The baddies are randomly placed at a marker in the city. Unfortunately, I could only find the same tutorial ArmsSamedi did on Kill Counters Here by Seddon4494. It's for Fallout 4 using DefaultCounter scripts made for Quests. Skyrim doesn't have them that I can see. The snag with these wonderful instructions from maxarturo for me is. The NPCs in my quest spawn in. They are not placed anywhere in the world until the quest creates them. Therefore I can't select them as objects in the Render Window and point their "Link Ref" to the needed XMarker with the counter script as maxarturo describes. I have been banging my head against this wall for days. I took a peek at the Destroy Dark Brotherhood Quest. I saw they use the condition "GetDeadCount" combined with a custom script written for that specific quest. Something that is over my head. Can anyone help? I am soooo close.
  6. Progress Update: I am sad to report xkkmEl that your suggested script only partially worked. It worked fine like my other attempts when I stayed near the exterior cell door. It would even sometimes work when I left and went inside an interior cell. However, after one or two passes through the door. The NPC would stop moving and just stand on the other side of the door. Never to return again. I eventually got frustrated and teleported with "coc" into the special spawn cell I created specifically for the NPCs to spawn in and have doors to use. Sure enough the NPCs were just standing there. After a second or two. When the game registered my presence there. They woke up and started on their rout again. Unfortunately, asking the player to periodically enter the spawn room to wake up the city. Just isn't acceptable. Thanks very much for the suggestion though!!! However... GOOD NEWS!!! I was able to come up with two scripts that do seem to work. My brain would not let me sleep last night and just kept churning on the problem and eventually came up with something. The two scripts both fire and debug report while I am inside and outside. New NPCs do seem to be spawning and randomizing. The old also seem to be deleting. I let several dozen cycles go. Checked the three test zones. No big pile of bodies. I do fear they may pile up on the other side of the door. I did teleport into the spawn room to see if I could catch the game deleting them as I spawned in. The room is very simple and teleport is almost instantaneous and I didn't see anything. I wish I had the know how to check the Save Game files to see if garbage is showing up in there. But fingers crossed. It seems to working properly. Door Script: Event OnActivate(ObjectReference akActionRef) (akActionRef as Actor).Kill() (akActionRef as Actor).Delete() Debug.MessageBox("Kill Triggered") EndEvent NPC Script: Actorbase Property MyActor Auto ObjectReference Property MyObject Auto Event OnDeath(Actor akKiller) Debug.MessageBox("NPC Died") Utility.wait(10) MyObject.PlaceActorAtMe(MyActor) self.delete() EndEvent I suspected the door was the culprit not working while the player was in a different cell than the door. So I shifted the bulk of the work to the NPC. Also I included the Kill command and there are Delete commands on both. I dont know if what I did was good practice. But It Worked!!! Hopefully I don't run into anymore unforeseen issues. Thanks again for the help xkkmEl
  7. Event OnActivate(ObjectReference akActionRef) If akActionRef && akActionRef.getParentCell() && akActionRef.getParentCell().isAttached() akActionRef.Delete() PlaceActorAtMe(MyActor) EndIf EndEvent Apologies. I can not fully read and understand your suggested script. It seems to be checking if that the actor that touched the door is in the same cell with the door? If Yes, perform those commands. If not, do nothing? I also am not aware of how to make a NPC stand at the door and try it over and over. OR are you suggesting that I simply attach your suggested script to the door. Then when the player is away in another cell and the NPC reaches the door. If it can not verify those conditions it will just end the event. Go around for another loop on it's patrol rout. Check again. Until at some point where the player is in the cell and the script can verify the conditions? I hope I have understood this correctly and that the solution is that simple. I will be trying this later today hopefully. Thankyou!
  8. Thank you very much for responding!!! I am very new to scripting so please bear with me. "In the code sample provided, "import game" is not required." You were correct. It compiled without error. "From what you posted, I note that the door's OnActivate contains the possibility of increasing the population, since the delete is conditional but the placeAtMe is not." The conditional part of the script was there because the example I followed had it. I did not know if it would work without it. I does indeed function without the condition. It however still does not seem to function without me being in the cell with the door. If I move to another cell. The delete part seems to stop working yet it still spawns NPCs. Will do more testing tomorrow. "Similarly, your OnUpdateGameTime add three new actors every 30mn game time. That's two actors per minute on the default time scale. You have not discussed how this gets balanced." The fast spawn rate was for testing. I normally would have it at one or two Skyrim hours. The fast rate unfortunately just showed another error. The NPC's AI does not activate until I enter the city at least once. I found that when I loaded a save from before I was in the city and took a while to get there. There was a pile of dormant NPCs that activated upon my arrival. I have no idea how to address this new issue. "I could suggest that the door does not need to add new actors, if you are using OnUpdateGameTime to do it. This will give you an easy way to control the population." You are correct. Sorry I wasn't clear enough. The Door Spawning and Time Based Spawning were two alternative methods I have tried to get a functioning population cycle. They were not running together at the same time. The Door Spawning works if I am in the cell. But does not delete any NPCs spawned when I am not there. The Time Based Spawning also seemed to work at first. Unfortunately, it too doesn't delete the NPCs if I am not in the cell. I now also found the second bug I mentioned above where it slowly spawns a pile of dormant NPCs if I haven't entered the city before. Sigh... Honestly this is quite frustrating. There are hundreds of games that have random generated populations in cities. I wish there was a tried and true method for Skyrim. I feel it is the single most important feature for my city to feel alive. If you or anyone knows of a better/functional way. Please let me know.
  9. Progress update. I have run into a serious problem/bug!?!?! Those two scripts seem to function just fine while I am in the exterior cell part of the city. HOWEVER, when I spend any lengthy time in an interior cell. The AI continue to walk their rout and activate the door script that only half functions if the player is not in the cell with it when triggered. The "Self.PlaceActorAtMe(MyActor)" part works BUT "(akActionRef as Actor).Delete()" does not. This results in NPCs being created but NOT deleted. Creating an exponential run away effect of NPCs flooding the city. The effect is made even worse when the player uses the wait function to pass time quickly. The script can fire off many times while the player is waiting. I tried going another rout with a script I finally got functioning that spawns in NPCs every hour. But the same pitfalls plague that approach too. It's actually where I first noticed the cascading run away effect. Any help getting these scripts to work would be much appreciated. Or is there a better approach to making a continually refreshing NPC population? The guards in the Skyrim cities must have a refresh/respawn system right? Or are they too on the basic 10/30 day Skyrim reset cycle. I have never actually in my 1000+ hours in Skyrim wiped out a city. I always play a good guy. If the guards do have a faster refresh cycle. Is there a guide out there on setting one of those systems up? I was sooo close to releasing my next update to Underworld City when I noticed this game breaking issue. Sooo disappointing. Test script to Spawn On UpdateGameTime. I modified it then attached it to a quest with "Run Once and Start Game Enabled checked" as guided by the Tutorial. Import Game Actorbase Property MyNPC03 Auto Actorbase Property MyNPC04 Auto Actorbase Property MyNPC05 Auto ObjectReference Property MyObject03 Auto ObjectReference Property MyObject04 Auto ObjectReference Property MyObject05 Auto Event OnInit() RegisterForSingleUpdateGameTime(0.5) EndEvent Event OnUpdateGameTime() MyObject03.PlaceActorAtMe(MyNPC03) MyObject04.PlaceActorAtMe(MyNPC04) MyObject05.PlaceActorAtMe(MyNPC05) RegisterForSingleUpdateGameTime(0.5) Debug.MessageBox("Pop Cycle Triggered") EndEvent Not sure if "Import Game" was needed. It was in the example script I sourced.
  10. EDIT: Updated 5/22/24 with bug fixed scripts. You can read about how I got there in the posts further down. I have been working hard on getting a randomized population cycle working on my map mod Underworld City. My other thread here: Link I think I may have have finally cracked it. With great pain I made two scripts. One that fires from the Actor OnDeath and spawns in a randomized (Level Listed) actor and. The other on a door that deletes the one who touched it. I am still very new to scripting and worry I may break something. If you wonderful scripters out there could check my work. It would be much appreciated. Door Script: Event OnActivate(ObjectReference akActionRef) (akActionRef as Actor).Kill() (akActionRef as Actor).Delete() Debug.MessageBox("Kill Triggered") EndEvent NPC Script: Actorbase Property MyActor Auto ObjectReference Property MyObject Auto Event OnDeath(Actor akKiller) Debug.MessageBox("NPC Died") Utility.wait(10) MyObject.PlaceActorAtMe(MyActor) self.delete() EndEvent These two scripts do seem to function HOWEVER I am uncertain if the Actor that gets deleted is truly gone. Other example scripts I referenced used "Disable, Delete, and DeleteWhenAble" in three lines of code. Was that overkill? Are my scripts safe in terms of memory filling up or save files being filled with garbage? It was mentioned in the other thread. That NPCs may pick up dropped items and the items get deleted when the NPCs do. I am not too worried about that at the moment. As stated above. If you wonderful scripters out there could check my work. It would be much appreciated.
  11. I am getting a little closer. I was able to create a Trigger Box and attach a simple script that kills any Actor on contact. Event OnTriggerEnter(ObjectReference akActionRef) If akActionRef (akActionRef as Actor).kill() EndIf EndEvent However, I am really struggling with the re-spawn script. I am trying to adapt this script. ActorBase Property ActorBaseProperty Auto Event OnDeath(Actor akKiller) Debug.MessageBox("Killed NPC") Utility.wait(60) Self.PlaceActorAtMe(ActorBaseProperty) Utility.wait(10) self.disable() self.delete() Self.DeleteWhenAble() EndEvent EDIT: I am so happy I got it partially working! Now I need to somehow make another Property that can be set with the drop down menu in CK. Similar to how ActorBaseProperty was. So I can chose where the NPC re-spawns. Like on a marker or something? Instead of popping up where the NPC died with PlaceActorAtMe. As it is, it doesn't look good and also causes a Death Loop when the citizens reach the Trigger Box at the end of their rout. A script that simply spawns another one in every Skyrim hour at the original spawn point would also solve the problem and there would be more citizens roaming around. Then the re-spawn script could be trimmed back into a simple cleanup script again. Any help would be appreciated.
  12. I wasn't even aware of that kind of potential mishap. Thankyou for the comment.
  13. As the title says. I could really use some help creating two scripts for my Underworld City mod map. Being a noob to scripting. I have been banging my head against the wall for hours with little results. Basically I am guessing what I need are two simple scripts for the Population NPC refresh cycle to be functional. First script applied would be applied to the LeveledCharacters/Actors placed throughout the city. It would spawn in an additional one every Shyrim Hour. Second script applied to a Door/Trigger that deletes an Actor when it interacts with the Door/Trigger. This would delete/despawn the NPCs when they finish their walk/route through the city. Thus keeping a constant flow of fresh randomized NPC wandering around the city. AND continuous random hostile encounters since I have a few baddies mixed into the level list. If possible, I am guessing these scripts would be simple to write but... I'm a noob. I was able to get a simple on death cleanup script working. Without it the city quickly becomes... well... messy. Event OnDeath(Actor akKiller) Utility.wait(60) self.disable() self.delete() Self.DeleteWhenAble() EndEvent Is the script above safe? I would imagine a very similar script could be written for the Door/Trigger. Any help would be greatly appreciated
  14. In the posts section for this tool. https://www.nexusmods.com/skyrimspecialedition/mods/67096 They have come up with a way to manually rollback to the pre-update version. Hope that helps anyone who was stricken again by this update plague.
  15. I don't know what happened but my CK was working fine yesterday and today. Nothing! Won't even try to launch. No error. Nothing! In Steam the green "Launch" button turns blue for a split second. Then turns back to green "Launch" again. I tried installing CK on an secondary old computer that never had Skyrim or CK on it. Same behavior. Nothing! The steam forum for CK has a few people saying there may have been an update. I don't know how to check if I got it but I would guess so. Anyone here know anything? If so, how to fix it? I am honestly PANICKING! I have been working on a map every day for the past year straight! Steam says I have logged 1000hrs on it. I was 99.9% done and hoping to release for Christmas. Now... Nothing?!? Feels like having my lungs ripped out.
×
×
  • Create New...