lonedeltaforce Posted September 6, 2008 Author Share Posted September 6, 2008 How do i script a spell that does damage and is not AoE?I want a spell that does 5 damage to an NPC or Player.I am new to scripting any piece of information would be greatly appreciated. Thanks Link to comment Share on other sites More sharing options...
shadowwulf Posted September 7, 2008 Share Posted September 7, 2008 figure out if target(of player) is greater than 0if 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 More sharing options...
monowolf00 Posted September 7, 2008 Share Posted September 7, 2008 Scripters are a dying race, thats why i'm trying to learn how to script. Link to comment Share on other sites More sharing options...
shadowwulf Posted September 7, 2008 Share Posted September 7, 2008 dont just learn… be one that learns to teach... dont learn it then give out scripts to everyone when they ask.thats why no one k now how to do it anymore Link to comment Share on other sites More sharing options...
lucifer1101 Posted September 7, 2008 Share Posted September 7, 2008 although i agree with you i believe that tutorials arent enough, i have used heaps of examples in my scripts just to form my own, and look im learning… Link to comment Share on other sites More sharing options...
DrNova Posted September 7, 2008 Share Posted September 7, 2008 For a scripted spell that simple, why not use the default sub hp type of spell, why make it scripted? Link to comment Share on other sites More sharing options...
shadowwulf Posted September 7, 2008 Share Posted September 7, 2008 1.a couple people are making their own spell systems.2.some people dont know there is a fixed exe for the spells bug.3.learning experience Link to comment Share on other sites More sharing options...
DrNova Posted September 7, 2008 Share Posted September 7, 2008 where is the fixed exe?And does it fix animation also?I have damage working(I dont know if it already damages in current announcments exe, or it was the code snippet from Scribbles I used) but not animation Link to comment Share on other sites More sharing options...
lonedeltaforce Posted September 7, 2008 Author Share Posted September 7, 2008 wheres the exe that fixes the spell bug? Link to comment Share on other sites More sharing options...
shadowwulf Posted September 7, 2008 Share Posted September 7, 2008 I beleive its at the bottom of the 2.7 thread. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now