- Joined
- Nov 12, 2006
- Messages
- 35
OK, so Im creating a map with JASS for the first time. Im very inexperienced. I want an outline for how to code an ability type. The generic type is that a unit gets a numerical bonus to a stat based on the number of friendly units (of the same type) within a certain range of the unit.
For Example; The militia unit gets +1 damage for every other friendly militia unit within 300 range of it. 5 militia units are all within 300 range of one another. Each militia unit would gain +4 to its damage.
Any idea on how to code this in JASS. Also, would it take up to much memory? I mean if there are 40 militia units, would It severely slow down the computer?
Thanks for any help.
For Example; The militia unit gets +1 damage for every other friendly militia unit within 300 range of it. 5 militia units are all within 300 range of one another. Each militia unit would gain +4 to its damage.
Any idea on how to code this in JASS. Also, would it take up to much memory? I mean if there are 40 militia units, would It severely slow down the computer?
Thanks for any help.