Alsark
09-06-2008, 08:51 PM
Alright, so I have this damage calculator: http://www.runescapehall.net/alsark/PoxNora/Damage%20Calculator.html ((Feel free to look at the source code, in fact, I guess you'd have to to help))
Now I have three problems. I need radio buttons with the following options: Normal (100%), 110%, 120%, 125%, 130%, 135%, 140%, 145%, and 150%. This field is "Damage Amplification", and will modify the damage field (not the result field, which has the button next to it)
Second, I need another field (Resistances/Vulnerability) of radio buttons which also modifies the damage field (not the result field), but after Amplification has already modified it. The options would be Normal (100%), 80%, 65%, 50%, and 140%.
For both of these, changing the radio button should not modify what has already been modified, it should modify the original (or for Resistance and Vulnerability, it should always be modifying after Amplification, but it should not be modifying values after other radio buttons have changed the damage field). So I would need it so that switching a radio button would restore the damage field to what it was prior to clicking whatever radio button was clicked (I don't know if this would happen by default in coding, so I just wanted to make sure). So I guess maybe there would be three damage variables, one prior to any modifications, one after amplification, and one after resistances/vulnerabilities (but I'd have no idea how this would work), and each of the two latter steps would always modify from only the step before it.
Last, I need to make it so that the attack field can modify the damage field (after amplification and resistances/vulnerabilites have been applied, so it would modify the last of the three damage step variables) by no more than +40% to get the result field and I need to make it so the defense field can modify the damage field by no more than -80% to get the result field. So in other words, 999999 defense should reduce the damage no more than, say, 200 defense would in most circumstances (they'd both reduce it by 80%).
Even if you can only help me with one of these three parts, any amount of help would be greatly appreciated and you will be credited in both the source and the damage calculator site (assuming you want to be, let me know if you don't). If you have any questions regarding anything, let me know.
Also, as payment (if you can help me with all parts of this topic), if you want, and if you join PoxNora (the game in which this code is based upon), then I will give you one exotic card, two rare cards, seven uncommon cards, and ten common cards, which would give you enough runes to make a deck (a deck is 20 cards). Since it costs real money to buy the cards, I'm more or less offering money for help. (Important note: You can only trade with people if you have at least one card. You can buy a random common for 50 cents in the online store and trade with me that way).
Now I have three problems. I need radio buttons with the following options: Normal (100%), 110%, 120%, 125%, 130%, 135%, 140%, 145%, and 150%. This field is "Damage Amplification", and will modify the damage field (not the result field, which has the button next to it)
Second, I need another field (Resistances/Vulnerability) of radio buttons which also modifies the damage field (not the result field), but after Amplification has already modified it. The options would be Normal (100%), 80%, 65%, 50%, and 140%.
For both of these, changing the radio button should not modify what has already been modified, it should modify the original (or for Resistance and Vulnerability, it should always be modifying after Amplification, but it should not be modifying values after other radio buttons have changed the damage field). So I would need it so that switching a radio button would restore the damage field to what it was prior to clicking whatever radio button was clicked (I don't know if this would happen by default in coding, so I just wanted to make sure). So I guess maybe there would be three damage variables, one prior to any modifications, one after amplification, and one after resistances/vulnerabilities (but I'd have no idea how this would work), and each of the two latter steps would always modify from only the step before it.
Last, I need to make it so that the attack field can modify the damage field (after amplification and resistances/vulnerabilites have been applied, so it would modify the last of the three damage step variables) by no more than +40% to get the result field and I need to make it so the defense field can modify the damage field by no more than -80% to get the result field. So in other words, 999999 defense should reduce the damage no more than, say, 200 defense would in most circumstances (they'd both reduce it by 80%).
Even if you can only help me with one of these three parts, any amount of help would be greatly appreciated and you will be credited in both the source and the damage calculator site (assuming you want to be, let me know if you don't). If you have any questions regarding anything, let me know.
Also, as payment (if you can help me with all parts of this topic), if you want, and if you join PoxNora (the game in which this code is based upon), then I will give you one exotic card, two rare cards, seven uncommon cards, and ten common cards, which would give you enough runes to make a deck (a deck is 20 cards). Since it costs real money to buy the cards, I'm more or less offering money for help. (Important note: You can only trade with people if you have at least one card. You can buy a random common for 50 cents in the online store and trade with me that way).