well I made a thread about my map's problems, but no one replied, so I figured I would have the question in the title this time so people would know if they could help or not.
1: a unit is only selectable if I directly click on it, but if I drag a box over it, it wont select. how do I fix this?
2. how do I create a custom unit attribute? (mechanical, biological, etc)
3. how do I make an ability have its caster approach its target if out of range? I made an ability that targets an enemy unit, but if you try to cast it on an enemy that is out of its range, it gives an error. how do I make it attempt to move into range instead
1: Probably one of the many, many flags you can set on the unit itself. Maybe a Model issue, if you're using a model that wasn't intended for a unit try switching to one that was as a test.
2: I think those are hardcoded, though you can rename the existing ones. Simple things like a raw damage bonus you can simulate with Validators: Using a dummy buff as a custom "attribute" (not an Attribute behavior!), or a plain unit type whitelist on the bonus damage effect. Nothing will sync up with the UI though.
3: There's a flag on abilities, I think it was "Wait To Spend". Either cast the ability instantly in the direction of the target, or move within range of the actual target position first. If you have additional Validators on the effect immediately produced by the ability those could also be messing you up (LocationRange and EnumerateArea being obvious culprits, anything else is probably hard to mess up specifically for long ranges)
well I made a thread about my map's problems, but no one replied, so I figured I would have the question in the title this time so people would know if they could help or not.
1: a unit is only selectable if I directly click on it, but if I drag a box over it, it wont select. how do I fix this?
2. how do I create a custom unit attribute? (mechanical, biological, etc)
3. how do I make an ability have its caster approach its target if out of range? I made an ability that targets an enemy unit, but if you try to cast it on an enemy that is out of its range, it gives an error. how do I make it attempt to move into range instead
1: Probably one of the many, many flags you can set on the unit itself. Maybe a Model issue, if you're using a model that wasn't intended for a unit try switching to one that was as a test.
2: I think those are hardcoded, though you can rename the existing ones. Simple things like a raw damage bonus you can simulate with Validators: Using a dummy buff as a custom "attribute" (not an Attribute behavior!), or a plain unit type whitelist on the bonus damage effect. Nothing will sync up with the UI though.
3: There's a flag on abilities, I think it was "Wait To Spend". Either cast the ability instantly in the direction of the target, or move within range of the actual target position first. If you have additional Validators on the effect immediately produced by the ability those could also be messing you up (LocationRange and EnumerateArea being obvious culprits, anything else is probably hard to mess up specifically for long ranges)
thanks- for 1 it was the model. for 2, I just renamed, and for 3 the flag is "no deceleration"