So Im currently piecing together a very traditional MMO style targeting system, in that the hero controlled by the player moves around the world, can target enemies or allies, and cast abilities on them once selected.
The problem I'm running into, is some abilities have requirements as to having a target, some are buffs and such, and auto cast to the caster or an area of effect, and some, like a nuke strike are dropped on a point on the ground. The problem i have found is dealing with the traditional SC2 system of targeting, and translating it to an MMO style of target and use ability (the typical system has you target your character, then have it attack a target. What i would like to know is, to implement a system of using abilities on a targeted unit via a single button click or mouse click, how do i issue the order to the hero unit, and have him target the ability to a unit stored in a unit group (or just to the selected target).
Also finding it very hard to implement a system that creates an attack order for the hero being controlled by a simple right click on the enemy unit. Seems to me like these problems could be related in some way.
I'm sure I'm not the only one putting ideas like this to code, i would be interested in seeing how to make something like this happen.
So Im currently piecing together a very traditional MMO style targeting system, in that the hero controlled by the player moves around the world, can target enemies or allies, and cast abilities on them once selected.
The problem I'm running into, is some abilities have requirements as to having a target, some are buffs and such, and auto cast to the caster or an area of effect, and some, like a nuke strike are dropped on a point on the ground. The problem i have found is dealing with the traditional SC2 system of targeting, and translating it to an MMO style of target and use ability (the typical system has you target your character, then have it attack a target. What i would like to know is, to implement a system of using abilities on a targeted unit via a single button click or mouse click, how do i issue the order to the hero unit, and have him target the ability to a unit stored in a unit group (or just to the selected target).
Also finding it very hard to implement a system that creates an attack order for the hero being controlled by a simple right click on the enemy unit. Seems to me like these problems could be related in some way.
I'm sure I'm not the only one putting ideas like this to code, i would be interested in seeing how to make something like this happen.
One thing i have heard around is the utilization of SMART commands to make the abilities work easier. Anyone know if something like this applys?