View Single Post
  #1  
Old 07-22-2010, 07:35 AM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Need help dealing with functions.

Okay, I didnt really know what to title this topic, but anywho..

I have a skill that reduces damage taken if the opposing player attempts to attack from a particular direction. However, the damage script is of course in a separate weapon. So heres where my problem comes in.. I need to know how to go about interrupting the function that normally processes damage, and instead check to see if they have the skill and if the conditions apply, then to go back to the function that was interrupted, process the results and finally adjust the final damage results accordingly.
Instead of, you know, just stamping the skill code into the damage code and checking to see if the player has obtained the skill by checking a flag.

Any tips?
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote