-
Posts
489 -
Joined
-
Last visited
Nexus Mods Profile
About Sphered
.png.1845c9498389e9f82a8c1563d37a9c4c.png)
Profile Fields
-
Country
None
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Sphered's Achievements
Rising Star (9/14)
16
Reputation
-
placeAtMe - seems unreliable?
Sphered replied to dafydd99's topic in Skyrim's Creation Kit and Modders
PlaceAtMe works just fine. Here... save you some heartache. Tweak how you like, and I offer no warranty ObjectReference NazeemSpawn = Gate().PlaceAtMe(Game.GetForm(0x13BBF)); Or use the Nao call to skip immersive visual placement When3D(NazeemSpawn) WhateverYouWanted3DLoadedFirstToDo() Etc() ;================================================================= ObjectReference Function Gate(Float Dist = 300.0,Float Elev = 0.0,Float Bias = 0.0) Global ObjectReference PCO = Game.GetForm(0x14) as ObjectReference ObjectReference Here = PCO.PlaceAtMe(Game.GetForm(0x7CD55),1,False,True); 0xC9ED4 or 0x7CD55 Here.MoveTo(PCO,Dist * Math.Sin(PCO.GetAngleZ()),Dist * Math.Cos(PCO.GetAngleZ()),Elev) Here.SetAngle(0.0,0.0,Here.GetAngleZ() + Here.GetHeadingAngle(PCO) + Bias); Change Bias to 180.0 to make it face away from you instead Here.Enable() Utility.Wait(1.0); Skip if you want... I like a second here Return Here EndFunction ;================================================================= ObjectReference Function Nao(Form What,Float Dist = 300.0,Float Elev = 0.0,Float Bias = 0.0,Bool Insistent = False,Bool Hid = False) Global ObjectReference PCO = Game.GetForm(0x14) as ObjectReference Bool QuietPlacement = Hid || What.GetType() != 43 ObjectReference Here = PCO.PlaceAtMe(What,1,Insistent,QuietPlacement) Here.MoveTo(PCO,Dist * Math.Sin(PCO.GetAngleZ()),Dist * Math.Cos(PCO.GetAngleZ()),Elev) Here.SetAngle(0.0,0.0,Here.GetAngleZ() + Here.GetHeadingAngle(PCO) + Bias); Change Bias to 180.0 to make ref face away from you instead QuietPlacement && !Hid && Here.Enable() Return Here EndFunction ;================================================================= Bool Function When3D(ObjectReference Arriving,Float Delay = 0.1,Float Timeout = 10.0) Global While Arriving as Bool && !Arriving.Is3DLoaded() && Timeout as Bool Utility.Wait(0.1) Timeout -= 0.1 EndWhile Return Utility.Wait(Delay) as String && Arriving as Bool && Arriving.Is3DLoaded() EndFunction ;================================================================= Use properties instead of GetForm calls if you want. Just showing how to do it If placing something in another cell than what player is in, you can, just yeah assume it isn't rendered until you visit. Can always place at player then move them after. Play around with solutions -
No it simply makes the ActiveMagicEffect register that event, with no knowledge of caster/target, unless you do string chaining like it looks like you are playing with, which means you will need a resolve routine on the other end, etc... And TBH your approach looks more hectic than it needs to be, but you could make it work for sure Side opinion: ActiveMagicEffect tends to be a good relayer for sending mod events, not listening. It can do both but yeah. Like if you want the target to send a mod event: GetTargetActor().SendModEvent("WhateverItsCalled") Where above is listened for from a quest or alias etc and you know who called the event. Anyway, that sucks if your npc's aren't keeping their assigned outfits. Suppose you may be doing a dynamic thing PS: The OnLoad() Event will not perform as you hope in regards to loading the game. You need OnPlayerLoadGame() for reload routines, and it has to be a script running from the player. Usually an alias script
-
Walking speed versus other speeds
Sphered replied to dizietemblesssma's topic in Skyrim's Creation Kit and Modders
Since you left it ambiguous whether you were aware of package flags manipulating walk/run behavior, it is a flag called preferred speed -
Add Boss Music Using a Script
Sphered replied to TheCrowKnight's topic in Skyrim's Creation Kit and Modders
Could add a silent track when applicable. There is one called _None that you can invoke after removing yours (Game.GetForm(0x1BA72) as MusicType).Add() Or ofc attach the _None music record as a property. Might as well Alternatively, combat music in the game uses conditions. Could definitely play with that instead/also -
How to keep track of CombatTarget?
Sphered replied to staalo18's topic in Skyrim's Creation Kit and Modders
There's a magiceffect condition you could play with. In theory you could apply that effect to a cloak ability with no damage. A script or shader or whatever else would then apply, but only as long as IsCombatTarget is true Not tested... and could well be one of those dormant conditions that do not do as they sound like they would. Basically just try it out -
Likely won't be able to "port" the mod, but rather reproduce it as feasible If I was tackling this project today, first approach I would go with, is AI ObserveDead routine where the NPC using this routine, will approach lootable bodies and perhaps perform a search animation like they will when saying "What happened?" etc. Let scripts handle the actual looting, and also have the script apply some sort of tag to prevent NPCs from trying to repeat loot, etc I was curious so played with above for a little bit. ObserveDead override pack apparently is a dud or has quirks and too many hoops to jump through to be a viable approach. Aside, I found a mod you can use as a template for the concept you want. Haven't tried it myself but it can at least get you started, if not completely do what you are wanting https://www.nexusmods.com/skyrimspecialedition/mods/4744
-
How to make an NPC with a player's head?
Sphered replied to TheXXI's topic in Skyrim's Creation Kit and Modders
This is a lengthy to explain process which some searching will yield good results for Aside, I have a mod for LE called Blueprints which spawns a NPC with your appearance. You can use the facegen it generates for a CK follower. I made it a long time ago and offer no support for it -
[Skyrim SE] Camera viewpoint for a scene
Sphered replied to Tiziano74's topic in Skyrim's Creation Kit and Modders
Can be done by basically using a cameraman approach. Place someone wherever you want, angle them, etc, then use Game.SetCameraTarget(Whoever) Has to be an actor. Will not work on objects without using a SKSE-based mod Helpful: The actor does NOT have to be enabled to set camera onto them. Lets you set their elevation and other handy things that would be trickier to deal with if they have loaded 3D -
Attaching script to npc using reference alias
Sphered replied to Hector0818's topic in Skyrim's Creation Kit and Modders
You likely have to check the "Allow Dead" box for this to work Otherwise ReferenceAlias automatically releases NPCs from being aliased when they die, and I never tested if OnDeath script triggers happen before that Aside, there is OnDying() which you can mess with too. Just a reminder that exists too Unrelated but yeah: I would avoid naming a script the same as an event name. Maybe that's my coder-OCD triggering but I avoid syntax overlaps like that -
Can't shout if it doesn't HAVE any shouts. To make this problem go away you can have a routine in place to simply remove all their shouts for x time, then re-add them. I'd probably find another way if it was me, but that would def solve your issue for the time being. Can always tweak approaches later once you get something working at all, as you are wanting
-
How to make a Rotating Platform
Sphered replied to Skybroom's topic in Skyrim's Creation Kit and Modders
This is one of those things if you mess around with it enough you will start to figure out how things tick, and likely also learn some new things you didn't expect to find useful Def explore nif files and play with copy/pasting collisions and NIControllers to other nif models, and make new nifs too. CtrlC and CtrlV in skope is def your friend I'd have to give myself a refresher session with the creation side of things, to be more helpful. But do consider what I suggested. It's pretty enjoyable imo just experimenting with this stuff -
This type of project is incredibly more time-intensive than it may sound like it would be Amongst many other lengthy steps, you need copies of all the smoke and fire fx nifs you want to green-ify, since you are not wanting to replace regular fire. Several of these fire and smoke nifs, have a number assigned called BSValueNodes. These values have to be changed, to match whatever you assigned your green addonnodes in the CK to. Green gradient and decal textures will need also be needed in this project If any of above makes little to no sense to you... You would be highly advised to simply download a mod that already does most (or all) or what you want, and use that as a base for what you want