jcyui Posted April 25, 2021 Share Posted April 25, 2021 Scriptname HentaiMilkSquirtEffect extends ActiveMagicEffect;PC self milking spell, npcs uses HentaiP.NpcMilking()Spell Property Hmilkspell Auto if Caster.GetFactionRank(HentaiP.HentaiLactatingFaction) > 0 Hmilkspell(Caster) int howmuchtomilk = 1 Compiling "HentaiMilkSquirtEffect"...E:\SteamLibrary\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\temp\HentaiMilkSquirtEffect.psc(26,3): Hmilkspell is not a function or does not existNo output generated for HentaiMilkSquirtEffect, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on HentaiMilkSquirtEffect Link to comment Share on other sites More sharing options...
jcyui Posted April 25, 2021 Author Share Posted April 25, 2021 Scriptname HentaiMilkSquirtEffect extends ActiveMagicEffect ;PC self milking spell, npcs uses HentaiP.NpcMilking() Spell Property Hmilkspell Auto Event OnEffectStart(Actor Target, Actor Caster) HentaiPregnancy HentaiP = Quest.GetQuest("HentaiPregnancyQuest") as HentaiPregnancy If (!Caster.IsInCombat() && !Caster.IsOnMount() && !Caster.IsInFaction(HentaiP.SexLab.AnimatingFaction)) if (Caster.IsWeaponDrawn()) Caster.SheatheWeapon() endIf If HentaiP.PlayerREF == Caster Game.DisablePlayerControls() Else ;disable npc moving Caster.Setunconscious(true) EndIf ;prevent other mods form interrupting milking HentaiP.SexLab.ForbidActor(Caster) Caster.AddToFaction(HentaiP.SexLab.AnimatingFaction) Debug.SendAnimationEvent(Caster,"hentaipregnancyZaZAPCHorFC") if Caster.GetFactionRank(HentaiP.HentaiLactatingFaction) > 0 Hmilkspell(Caster) int howmuchtomilk = 1 if HentaiP.config.MilkAllPC howmuchtomilk = Caster.GetFactionRank(HentaiP.HentaiLactatingFaction) endif Caster.ModFactionRank(HentaiP.HentaiLactatingFaction, -howmuchtomilk) if self.GetBaseObject() != HentaiP.HentaiMilkSquirtSpellEffect && Game.GetModbyName("HearthFires.esm") != 255 If HentaiP.PlayerREF == Caster if HentaiP.config.EnableMessages Debug.Notification(HentaiP.Strings.ShowHentaiMilkSquirtEffectStrings(0)) EndIf EndIf Caster.AddItem(Game.GetFormFromFile(0x3534, "HearthFires.esm"), howmuchtomilk) else If HentaiP.PlayerREF == Caster if HentaiP.config.EnableMessages Debug.Notification(HentaiP.Strings.ShowHentaiMilkSquirtEffectStrings(1)) EndIf EndIf endif else If HentaiP.PlayerREF == Caster if HentaiP.config.EnableMessages Debug.Notification(HentaiP.Strings.ShowHentaiMilkSquirtEffectStrings(2)) EndIf EndIf HentaiP.playNoMilkEffect(Caster) endIf if Caster.GetFactionRank(HentaiP.HentaiLactatingFaction) > 0 if HentaiP.PlayerREF == Caster && HentaiP.config.EnableMessages Debug.Notification(HentaiP.Strings.ShowHentaiMilkSquirtEffectStrings(3)) EndIf EndIf int i = 0 while i < HentaiP.PregnantActors.Length if HentaiP.PregnantActors.GetActorRef() == Caster HentaiP.PregnantActors.setMilk(HentaiP.PregnantActors.getMilk()) i = HentaiP.PregnantActors.Length endIf i += 1 endWhile Debug.SendAnimationEvent(Caster, "IdleForceDefaultState") ;allow other mods to animate actor HentaiP.SexLab.ClearMFG(Caster) HentaiP.SexLab.AllowActor(Caster) Caster.RemoveFromFaction(HentaiP.SexLab.AnimatingFaction) If HentaiP.PlayerREF == Caster Game.EnablePlayerControls() Else ;enable npc moving Caster.Setunconscious(false) EndIf EndIf endEvent Link to comment Share on other sites More sharing options...
xkkmEl Posted May 1, 2021 Share Posted May 1, 2021 Hmilkspell(Caster) That won't work... afaik.. Try this instead: Hmilkspell.Cast( Caster, Caster) Link to comment Share on other sites More sharing options...
Recommended Posts