Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Script Spell


lonedeltaforce
 Share

Recommended Posts

figure out if target(of player) is greater than 0
if so then target = getplayertarget(index) otherwise target = getplayertargetnpc(index)

for both cases get target hp and set it to a variable.
then subract your desired damage from the hp.
then set the player or npcs health to the new hp.
then update player or npc.

If you take your time, what i just gave you will make your script.
you can then look into adding an animation.
You really need to learn how to script.
I hope this helps.
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
 Share

×
×
  • Create New...