- Joined
- Jan 10, 2010
- Messages
- 29
Ok,
These are two 'systems' required for a Map that I am working on. They must be Leakless, MUI and NOT IN VJASS.
1: Adv Dodge
When a unit is attacked it has a chance (defined by a variable) to avoid all damage and move around to close to behind the attacking unit (Defined by the same variable). So if my 'dodge rating' is 100 then I have a 100% chance to dodge attacks and to move all the way around behind the enemy unit.
N.B. I cannot have instantly move to, I need the unit to 'slide' around the attacking unit.
2: Knock back
This is a two part system. Firstly It detects, that when a unit is attacked, and takes damage from the attack, the unit is then pushed back a distance defined by a variable. While the unit is being pushed back, and for 1.5 seconds after, the unit's damage is reduced by 50% and its armour is reduced to 0.
Any help would be appreciated. I Code in C++ and find the nuances of other languages strange.
These are two 'systems' required for a Map that I am working on. They must be Leakless, MUI and NOT IN VJASS.
1: Adv Dodge
When a unit is attacked it has a chance (defined by a variable) to avoid all damage and move around to close to behind the attacking unit (Defined by the same variable). So if my 'dodge rating' is 100 then I have a 100% chance to dodge attacks and to move all the way around behind the enemy unit.
N.B. I cannot have instantly move to, I need the unit to 'slide' around the attacking unit.
2: Knock back
This is a two part system. Firstly It detects, that when a unit is attacked, and takes damage from the attack, the unit is then pushed back a distance defined by a variable. While the unit is being pushed back, and for 1.5 seconds after, the unit's damage is reduced by 50% and its armour is reduced to 0.
Any help would be appreciated. I Code in C++ and find the nuances of other languages strange.