Hummm, so like eatch unit type would have some attack roll probabilities, say between 1 and 20 and a defense roll everytimes it is attacked...
I think it could be done through a couple of effects and short duration behaviors. Not sure exacly how, but I think it could be possible. Having like a % chance of getting x y or z behavior and then have a bunch behavior of comparisons between the caster and the target...
I'm sure someone can come up with a decent solution. It's just too late for me to investigate further tonight. Best luck !
What kind of ability are you refering? If it's the "Attack" ability of a unit, then doing this in triggers would definitly cause lag. If it's just an ability that will be used say not more than once or twice per sec max, it could be fine. But all this depends on what is your goal.
What do you mean by attack roll code, is that like heartstone with HP and Attack points?
"If the attack lands" so if the ability hit the target (unit), then the caster will attack the target (once?)
So for what is this going to be used? What should happend other than Unit A cast ability, if it hit Unit B then attack, if not deal no damage? Is the ability you want to create a missile that targets a point on the ground and when it lands it does a search to see if a unit is near-by and does its stuff..?
Hummm, so like eatch unit type would have some attack roll probabilities, say between 1 and 20 and a defense roll everytimes it is attacked...
I think it could be done through a couple of effects and short duration behaviors. Not sure exacly how, but I think it could be possible. Having like a % chance of getting x y or z behavior and then have a bunch behavior of comparisons between the caster and the target...
I'm sure someone can come up with a decent solution. It's just too late for me to investigate further tonight. Best luck !
Working on projects:
Alright few questions to start the discussion:
What kind of ability are you refering? If it's the "Attack" ability of a unit, then doing this in triggers would definitly cause lag. If it's just an ability that will be used say not more than once or twice per sec max, it could be fine. But all this depends on what is your goal.
What do you mean by attack roll code, is that like heartstone with HP and Attack points?
"If the attack lands" so if the ability hit the target (unit), then the caster will attack the target (once?)
So for what is this going to be used? What should happend other than Unit A cast ability, if it hit Unit B then attack, if not deal no damage? Is the ability you want to create a missile that targets a point on the ground and when it lands it does a search to see if a unit is near-by and does its stuff..?
Working on projects: