HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

BonusMod trigger methods to modify unit stats.

02-12-2004, 10:24 PM#1
weaaddar
There are four main stats of a unit you can't modify directly them being Damage,Armor,Mp and HP.
Pre 1.13 you can just stack abilities to get the effect you wanted. pos 1.13 this feature an exploit was finally deprecated thus your only option was using lots of abilities to modify these stats.

I have created a system a long time ago called bonusmod. Since blizzard allows you to add abilities with the same base type but not mulitple copies of it I bit flag to allow the maximum range for the minimal amount of abilities. I felt 1023 for a stat max was a very acceptable range, and that is how the current form is. I use 10 abilities for each, and its expandable and dexpandable easily.

To get the same level of equivalancy to not using bonus mod you would of needed 4092 abilities. 40vs4092 this is a HUGE difference.

http://kattana.users.whitehat.dk/viewfunc.php?id=226

It is easy to use. Please help me optimize if possible.
This is the latest version as the last standalone ver I posted required a bit of finassing, and the only other up to dater one was in DT4a and that was quite frankly pretty poorly optimized.
03-16-2004, 07:23 PM#2
Vexorian
Just wanted you to see my modifications to the BonusMod, nothing big just that this version allows negative bonuses too.
04-10-2004, 10:04 PM#3
Joakim
Great, super. Both of you.
06-25-2004, 08:02 PM#4
Vexorian
hmnn, weaaddar, I 've been thinking and I think it would be a good idea to have a second bonus mod for attack speed, magic resist and that stuff that might be good to have modeable
06-25-2004, 11:38 PM#5
weaaddar
bonus mod is just the code engine, you can feed it other abilities that can be modified, I just showed it with those 4 as those are the four that are used in DT4a (its main user as far as I created it for).
06-26-2004, 09:29 AM#6
ZBMQAFDDC
weaaddar and Lord Vexorian thanks so much for the code and example

How would i go about adding to the Manual Entry Code a code to change the life,mana,armor, damage whatever unit you have selected? And to make it so you can only change the stats of your own units.

Sorry i know nothing about writing JASS.