Jump to content

HELP: A spell that makes a MessageBox appear when hitting an NPC?


Cristobot

Recommended Posts

I want the spell to show some information about any NPC that it hits.

 

I've created a Magic Effect that is Fire and Forget

I've created a spell with that Magic Effect

When I fire the spell, I see that it hits the NPC due to the hit effect art

 

Where I NEED HELP PLEASE:

For the Magic Effect, I've tried scripting an onHIt() Event to show a MessageBox("Hello World") when the spell hits something...

but nothing ever happens! (My script compiles, btw)

 

1) Can someone tell me if I am doing something wrong?

2) Is there an easier way to do this?

 

Here is my script:

 

Scriptname crbtGetNPCData extends ObjectReference
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
debug.messagebox("Hello World")
EndEvent
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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