Jump to content

Are they friendly?


MadMike710

Recommended Posts

Ok I've tried and failed. Now I realise that I'm bad at scripting. :P

 

What I want is a mod that makes a spell/enchantment that checks if the target is an enemy. I was thinking "if (GetDisposition Ref < 10) kill".

So anyone with disposition 10 or below towards the player dies.

If their disposition is above, nothing happens.

 

I'm a total newbie at scripting btw so my guess is very wrong. :P

 

Anyone want to make it?

A staff or spell?

Or even a sword/mace/dagger/hammer/axe?

Link to comment
Share on other sites

You can try this script:

 

scn scriptname

Ref Self

Begin ScriptEffectStart

Set Self to GetSelf

If (Self.GetDisposition Player <= 10)
Self.kill
ElseIf (Self.GetDispostion Player > 10)
Return
Endif
end

 

I believe that would work.

 

Yep. Worked great, thanks.

I almost lost it when it said "GetDisposition" not recognized as a function but then I realized the spelling error, in your script it said "Dispostion" (not that it matters). :)

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...