Jump to content

[Help plz] Death on hit script and Activation


x2ash

Recommended Posts

Hi i hope someone can please help me with either pointing me in the right direction or helping me directly with my small quest sequence.

 

I am trying to create a small scene for a quest and i need some help with some of the scripting.

 

I can do basic scripting i just need some ideas on what scripts i should use and the best way to implement them.

 

I want my quest to be basically the same as the boethiah quest but im having trouble trying to read and understand how theyve gone about that, as there is a lot of other things happening at the same time.

 

My Quest:

 

Lead a Follower to a specific room

 

tell them or force them to lay on the alter

 

then use a special knife to kill the actor with 1 hit.

 

Gain a reward for doing so.

 

 

So i can lead a follower to a specific room easily of course

 

I can get them to lay on the alter by just telling them to, but thats not the best option

 

But i cant get the scripting right for Killing them once whilst on that specific alter with that specific knife

 

So far ive found a script which i think will kill them on hit, but i dont know what to reference it to or how to implement it fully

 

Im guesssing i need to make Alias' for the knife, the alter, but im not sure what sort of alias' to make or if they need scripts in them etc.

 

this is the script i was gonna steal from the Boethiah quest.

 

 

Scriptname DA02Script extends ReferenceAlias

 

 

 

Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)

 

actor SelfActor = GetActorReference()

 

(GetOwningQuest() as DA02Script).PillarKill(SelfActor)

 

EndEvent

 

so id have to edit that a little to refer to my quest, but im not sure exactly how to do that.

 

 

 

If any1 knows of a similar quest that i can reverse engineer so to speak,

or can give me a good direction to go in that would be great.

 

thank in advance

X2ash

Link to comment
Share on other sites

  • Recently Browsing   0 members

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