Healing fixes

Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside :)
Post Reply
mikel123
UOX3 Neophyte
Posts: 27
Joined: Thu Aug 18, 2011 4:28 pm
Has thanked: 0
Been thanked: 0

Healing fixes

Post by mikel123 »

Below is my code for Healing.

There are a couple things remaining that I'd like to fix:

1) healing should be unrelated to the skill timer; I don't want it to reset the timer, and I don't want to be prevented from healing because my skilltimer isn't ready

2) if I start a bandage while I'm currently doing a bandage, I'd like the first bandage (the timer, the healing that it does, etc.) to be wiped away and this new bandage to begin, as though it was on its own

3) I'd like the success or failure of the bandage to only be shown at the END of the healTimer.

4) I want to display a message upon being hit that says, "Your fingers slip!"

5) I want to count the finger slips, and use this variable to impact the success rate and amount of damage healed by the bandage.

Below is my code - anyone have any ideas? I've spent a ton of time on (1), (2), and (3), but haven't gotten anywhere.

Thanks for any help you can offer!

Code: Select all

pastebin~dot~com/DfDgqYV1
(apologies for not pasting the code directly; for some reason, it is not pasting in here as it appears in my healing.js file).
Post Reply