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



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



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.
[2026-9-14. : 3:21 pm]
Oh_Man -- Racoon City Remastered*
[2026-9-14. : 3:21 pm]
Oh_Man -- Join the front line SEN, DEFEND MANKIND. 2030 is just a number! https://scmscx.com/map/2fHHj96p
[2026-9-14. : 3:21 pm]
Oh_Man -- from the maker of the legendary Architect RPG, the peerless Racoon City, the capitvating One Piercing Note, comes another creation minutes in the making
[2026-9-14. : 11:15 am]
Oh_Man -- heh heh thanks for the minerals suckers, now it's time to quit while i'm ahead
[2026-9-14. : 1:01 am]
Oh_Man -- Heroes of the Storm literally died and was revived before we got next SC game. Wb Loveless, u cooking any UMS for us?
[2026-9-13. : 11:35 pm]
LoveLess -- getting diablo 5 and wow 4 before starcraft ghost
[2026-9-13. : 9:22 pm]
RIVE -- To be fair, I used to post custom emotes back when I still used the forums.
[2026-9-13. : 12:54 pm]
l)ark_ssj9kevin -- RIVE
RIVE shouted: 💯
holy shit did you just use an emoji on SEN that feels illegal 🍆
[2026-9-13. : 10:24 am]
Moose -- Heinermann
Heinermann shouted: new era of SC and it's just some shooter they're gonna cancel before 2030
StarCraft 2: Ghost 2, The Reghostening
[2026-9-13. : 3:38 am]
Symmetry -- :wob:
Please log in to shout.


Members Online: lil-Inferno, Zoan, City