| 01-15-2004, 12:14 AM | #1 |
Hey. I'm having a bit of difficuly involving adding damage to a unit. I'm trying to add the 'item damage bonus' ability to a unit, but it will only work one time. I know it's possible to do it multiple times, because all those RP maps let you. Is there any way to make it stackable? Thanks in advance, Bhav_88 |
| 01-15-2004, 01:12 AM | #2 |
Short Answer: No Long Answer: Yes, bonus mod does get around this. I'm not sure of a thread which just features it however you can look at DT4:A which uses bonus mod. You can probably just stealt he code from there. The solution is you make bonuses have different values to give. They will stack if there different abilities. Ofcourse thats sloppy so I use a system of bit flagging to use as few abilities as possible to give a very large range of benefit. 10 abilites for 1023 points of additional stat. |
| 01-15-2004, 02:01 AM | #3 |
I know there's a simpler way. In all those RPs, you can just add the damage bonus ability multiple times and the green "+#" will just update with new, higher damage... |
| 01-15-2004, 02:05 AM | #4 |
as of 1.13 stacking abilities does not work. So you are wrong. They may use different bonuses for each item or they use proprietary methods simmilar to bonus mod. |
| 01-15-2004, 02:08 AM | #5 |
Ahh, so it's a new patch thing, then. I shall have to resort to the harder, more intricate way of doing it, by using If/Then statements... |
| 01-15-2004, 02:24 AM | #6 |
I'm telling you bonusMod is the best way as it handles the complex if then elses and can allow you to add damage between 0-1023 with ease. (any higher and you can extend the arrays it uses) |
