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.
[03:29 am]
DarkenedFantasies -- Probably just didn't care. For example, at some point before release, they've updated the graphics of some of the Protoss buildings (Forge, CyberCore, Citadel, Observatory, Arbiter Tribunal), but instead of properly re-rendering them with edited 3D models, they did crappy copy-paste jobs on the rendered graphics.
[08:35 pm]
Ultraviolet -- :wob:
[2026-6-21. : 11:38 pm]
Symmetry -- :wob:
[2026-6-21. : 4:56 am]
Ultraviolet -- I suppose we'll likely never know, but my guess would be that they already saw it operating successfully and there was no monetary incentive to finish the original work. And the dev cycle in old school Blizzard was so hectic, it's possible it just got forgotten about after the original game got released. Plus there's an element of existing MPQ files that were packaged with the original discs becoming outdated if they updated it. And it's not like they remade the original MPQs, they just made new ones for BW specifically
[2026-6-21. : 4:26 am]
Oh_Man -- so that makes me think maybe the theory they are unfinished is not true and its a deliberate design decision, coz why not finish them wen ur making brood war?
[2026-6-21. : 4:25 am]
Oh_Man -- the thing is thos buildings are from classic. that means they went ahead and made brood war without ever finishing the 'unfinished' buildings
[2026-6-20. : 6:15 pm]
Ultraviolet -- Yeah he's talked about a lot of that stuff in his casts before. It seems plausible. Especially knowing how Blizzard of yesteryear operated.
[2026-6-20. : 3:47 pm]
NudeRaider -- to clarify: couldn't recall the behavior for every single Protoss building but I was aware the disparity exists.
[2026-6-20. : 3:43 pm]
NudeRaider -- Contained nothing new for me. Didn't know all building's behavior, but very much all unit's. Also Terran balance whine - also nothing new :lol:
[2026-6-19. : 9:57 am]
Oh_Man -- makes me wonder if SEN knows anything about the topic
Please log in to shout.


Members Online: Roy