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.
[06:04 pm]
NudeRaider -- ihjel
ihjel shouted: "Use Display Text Message or the in-game Leaderboard to output the live values of critical Death Counters." that would be so convenient wouldn't it.
ihjel
ihjel shouted: "Use Display Text Message or the in-game Leaderboard to output the live values of critical Death Counters." that would be so convenient wouldn't it.
it's rather inconvenient actually, as it requires you to transfer it to Custom Score which might even interfere with what you're measuring. But IIRC you can also use EUDs to display it which by now could actually be somewhat convenient.
[2026-11-11. : 9:25 pm]
ihjel -- "Use Display Text Message or the in-game Leaderboard to output the live values of critical Death Counters." that would be so convenient wouldn't it.
[2026-11-11. : 6:59 pm]
Symmetry -- I just pasted what google ai told me to try to form a feedback loop
[2026-11-11. : 1:24 pm]
NudeRaider -- UndeadStar
UndeadStar shouted: https://staredit.net/topic/18961/ <= wow, if there wasn't a capital letter on almost every word in the title, and a link in the signature, I may not have guesses it's an AI bot. I don't know much about map editing, but the content may even be relevant enough to be kept.
Yeah, I've noticed it, but it raised a couple of relevant questions and kept the ad to the signature so if someone were to engage with the topic it could be a net positive which is why I kept it. We're not necessarily anti-bot, just anti-spam. Thanks to Symmetry who realized my hope. :)
[2026-11-11. : 8:09 am]
Zycorax -- Greed
[2026-11-11. : 3:25 am]
Symmetry -- why do the oligarchs want our mapping strategies???
[2026-11-11. : 3:24 am]
Symmetry -- the question is why though
[2026-11-11. : 1:10 am]
Butch -- made me feel really sad and stupid and fat
[2026-11-11. : 1:10 am]
Butch -- I got duped by one and replied and then realized after
[2026-11-10. : 11:26 pm]
Sie_Sayoka -- the turings have tested
Please log in to shout.


Members Online: ihjel, YfkeDriessen031, Ultraviolet, QueraltBonet372, MihaZupanc171