Staredit Network > Forums > Modding Assistance > Topic: Question about attack criteria
Question about attack criteria
Feb 24 2013, 4:35 am
By: DuplexBeGreat  

Feb 24 2013, 4:35 am DuplexBeGreat Post #1



Hello, I am a noob trying to make a mod with specific ideas in mind, and while I've read enough tutorials that everything else seems to be working, there is one problem: I'm trying to get the Hero Marine unit to have an standard attack that only affects biological, non-building units (such as Zerg units, other marines, zealots, etc. No Zerg buildings.) This is not working. I've tried many different checking many different combinations of the little boxes in the bottom right corner of the Weapons DatEdit screen, but no matter what I do the attack affects all units, air and ground. Help, please?



None.

Feb 24 2013, 4:19 pm Biophysicist Post #2



The Attack order ignores targeting flags entirely. The only way to do it is to set his attack order to something other than Attack, in the AI Actions section of units.dat, then use iscript to make that other order into a normal attack. I think you can set up some unused order to work; I'll test it.

EDIT: Tests show that you cannot use an unused order. You're going to have to cannibalize some existing spell. You'll want to set its energy cost to 0 in techdata.dat, then set the hero Marine's Attack Unit order to the order for that spell, then change the spell's weapon to work like his normal weapon.

Post has been edited 1 time(s), last time on Feb 24 2013, 4:33 pm by Biophysicist.



None.

Feb 24 2013, 5:45 pm DuplexBeGreat Post #3



Ok, thanks. I'll do that.




Feb 25 2013, 5:50 pm pastelmind Post #4



One alternative is to change the weapon type to splash (air) and give it a very small inner splash radius (5 inner / 0 medium / 0 outer). Then the weapon damage would obey the biological / no-building flags.



None.

Mar 2 2013, 11:59 pm Sand Wraith Post #5

she/her

A splash of 1 inner would probably be better/safer, since flying air units can stack on each other very closely.




Mar 4 2013, 11:07 am pastelmind Post #6



Well that's what Splash (Air) is for. With Splash (Air), you only deal 100% damage to the main attack target. Since you have 0 medium / outer splash radius, no other units are harmed.

More info on splash damage.



None.

Mar 18 2013, 2:54 pm Sand Wraith Post #7

she/her

That's pretty cool. I never knew the exact behaviour of Splash Air.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[07:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[06:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[03:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
Please log in to shout.


Members Online: Roy