Eeveemk Posted July 20, 2021 Posted July 20, 2021 I'm trying to get my first mod off the ground just a very basic one where you sleep with conjured creatures for various buffs and bonuses. I've been trying to mostly model my code off of anything I can find however I seem to be having trouble getting an animation to start.  My code so far: Quote Scriptname sexlabCummoner extends ActiveMagicEffect   SexLabFramework property SexLab auto  event OnEffectStart(Actor akCaster, Actor akTarget)    actor[] sexActors = new actor[2]    sexActors[0] = akCaster    sexActors[1] = akTarget    sslBaseAnimation[] anims    SexLab.StartSex(sexActors, anims) EndEvent   I'm not sure what's going wrong but no animation will start. The spell casts in game and does effect the npc I'm casting it on, but only the basic spell effects, nothing from the script. Do I have to do anything to make the spell pass the target actor and player into the script I'm trying to write or does the magic effect by default do that? It's the only thing I can think of for why the animation won't trigger after casting the spell on the npc.  EDIT: Solution found. The issue was caused by manually typing the SexLabFramework property SexLab auto in the script instead of adding it through the properties menu, editing with the properties menu fixed.
Guest Posted July 20, 2021 Posted July 20, 2021 The magic effect does it by default, but you have to use the correct type of magic spell. Fire, hit and forget, etc. (I do not remember all correct names, but only some magic effects have both caster and target) Â You are not passing any animation here. I think SexLab will figure out on its own an anim. Â But better if you check your papyrus log in case of errors. Â P.S. have you filled the property SexLab in the script?
Scrab Posted July 20, 2021 Posted July 20, 2021 22 minutes ago, CPU said: The magic effect does it by default, but you have to use the correct type of magic spell. All Delivery Types send this Event when the Effect is first applied What is more important is that the Spells Target Actor is something other than "Self" in this case, otherwise akTarget & akCaster are the same Actor. Ideally Target Actor Id guess  Looking into the Papyrus Log here usually gives a few hints of whats going on
Eeveemk Posted July 20, 2021 Author Posted July 20, 2021 8 minutes ago, CPU said: The magic effect does it by default, but you have to use the correct type of magic spell. Fire, hit and forget, etc. (I do not remember all correct names, but only some magic effects have both caster and target)  You are not passing any animation here. I think SexLab will figure out on its own an anim.  But better if you check your papyrus log in case of errors.  P.S. have you filled the property SexLab in the script?  I'm pretty sure I have the Sexlab property filled isn't that the sexlabFramework Property Saxlab auto  and I'll see if I can't figure it out from there, I was using a script type spell fire and forget.  the last lines of my logs are Quote [07/20/2021 - 04:48:51PM] Error: Cannot call StartSex() on a None object, aborting function call stack:    [None].sexlabCummoner.OnEffectStart() - "sexlabCummoner.psc" Line ? [07/20/2021 - 04:48:51PM] warning: Assigning None to a non-object variable named "::temp2" stack:    [None].sexlabCummoner.OnEffectStart() - "sexlabCummoner.psc" Line ? [07/20/2021 - 04:48:54PM] Error: Cannot call StartSex() on a None object, aborting function call stack:    [None].sexlabCummoner.OnEffectStart() - "sexlabCummoner.psc" Line ? [07/20/2021 - 04:48:54PM] warning: Assigning None to a non-object variable named "::temp2" stack:    [None].sexlabCummoner.OnEffectStart() - "sexlabCummoner.psc" Line ? [07/20/2021 - 04:48:56PM] VM is freezing... [07/20/2021 - 04:48:56PM] VM is frozen [07/20/2021 - 04:48:57PM] Log closed   Â
Eeveemk Posted July 20, 2021 Author Posted July 20, 2021 So would the NONE Object be my spell? I'm very lost still as to what is going wrong?
Eeveemk Posted July 20, 2021 Author Posted July 20, 2021 Figured out the issue will edit the first post with the solution.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.