Guest Posted January 25, 2019 Posted January 25, 2019 I'm trying to apply a simple Calm spell to a list of actors however I can't get the spell itself to stop the actors from attacking me. I'm currently testing with a hostile Giant. I know the spell is being applied to the actors. I checked this using the in-game console and the hasspell command. I've been analyzing other mods such as Submit and how they do their Calm spells but see no obvious faults. The spell is being added to actors through a quest script. I'd imagine this part is working because the spell is confirmed to have been added to the actors. While actorId < actors.length actor this = actors[actorId] ; Add calm spell to everyone except the player If (this != PlayerRef) this.AddSpell(RzCalmSpell) EndIf ; Increment actor id actorId += 1 EndWhile I attached screenshots of the relevant forms in Creation Kit here: Spoiler
Guest Posted January 26, 2019 Posted January 26, 2019 Got it to work now. The Calm spell in Random Sex is different than the other examples I looked at. New code and forms below: While actorId < actors.length actor this = actors[actorId] ; Add calm spell to everyone except the player If (this != PlayerRef && this.is3DLoaded()) ;this.AddSpell(RzCalmSpell) RzCalmSpell.cast(this, this) EndIf ; Increment actor id actorId += 1 EndWhile Spoiler
Recommended Posts
Archived
This topic is now archived and is closed to further replies.