Jump to content

gitsas

Members
  • Posts

    7
  • Joined

  • Last visited

Nexus Mods Profile

About gitsas

gitsas's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Figured it out its: debug.SendAnimationEvent(Player,"IdleForceDefaultState")
  2. Thank you so much! it works! I also tried to add an animation: elseif Player.HasSpell(HolyLight) && PlayerLevel >= 1 Game.ForceThirdPerson() Debug.SendAnimationEvent(Player, "IdlePray") Utility.Wait(4.0) Debug.Messagebox("You now know Holy Light.") Everything works great, but the animation never stops. Do you by any chance know how I can stop it? I tried: Debug.SendAnimationEvent(Player, "ActionIdleStop") But it doesn't work. Thanks again for the help!!
  3. For some reason this script runs BOTH If statements?? Scriptname AAAGiveSpells extends activemagiceffect SPELL Property HolyLight Auto BOOL Property HolyLightKnown = False Auto Event OnEffectStart(Actor akTarget, Actor akCaster) Actor Player = Game.GetPlayer() INT PlayerLevel = Player.GetLevel() ;HOLY LIGHT If PlayerLevel >= 1 && HolyLightKnown == false Player.addspell(HolyLight) Debug.Messagebox("Holy Light Added") HolyLightKnown = true EndIf If PlayerLevel >= 1 && HolyLightKnown == true Debug.Messagebox("You already know this spell.") EndIf EndEvent
  4. I've created an AoE "Fear" Spell that is used as a Power instead of a spell. https://imgur.com/Tylqb3K You're supposed to cast it and enemies below 50% Health should run in fear. The problem is that the effect procs only when MY health drops 50% of Health instead of theirs. Here's the condition I've used: https://imgur.com/5mkKeBX How do I make it that it procs when THEIR health drops below 50% and not mine? It seems like the Condition is monitoring my health instead of theirs, and when my health drops to 50% it applies fear to them, but I don't know how to get around this. Thanks for the help in advance!
  5. Hi everyone, I'm new to scripting and for the love of God I just cant figure out how to solve this one. I'd really appreciate your help! I've created a togglable Heal (Lesser Power, Voice). It Heals the Caster for 10p per Second while draining 10p Magicka per second. I want the spell to Dispel when Magicka drops below a certain number or when the user runs out of Magicka. So far the spell works perfectly, It's toggleable, it Heals, and it Drains Magicka as planned. I've used this script: Scriptname toggleability extends activemagiceffect Spell Property AbilityToBeToggled Auto Event OnEffectStart(Actor akTarget, Actor akCaster) If akTarget.HasSpell(AbilityToBeToggled) akTarget.DispelSpell(AbilityToBeToggled) akTarget.RemoveSpell(AbilityToBeToggled) Else akTarget.AddSpell(AbilityToBeToggled, False) EndIf EndEventThe problem is this: When Magicka depletes, the spell is still active. It keeps draining Magicka instead of ending. I've tried adding an additional script: Scriptname AAAOutOfMagicka extends activemagiceffect Event OnEffectStart(Actor akTarget, Actor akCaster) akTarget.GetActorValue("Magicka") If akTarget.GetActorValue("Magicka") < 10 akTarget.DispelAllSpells() EndIf EndEventThe Script compiles, but it doesn't work, the spell is still active. I was thinking maybe a While Loop would be the answer but I don't know how to go about it. I'd appreciate your help!
×
×
  • Create New...