Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Unit Life with EUD Conditions?
Unit Life with EUD Conditions?
Jul 12 2024, 4:29 am
By: kerryball  

Jul 12 2024, 4:29 am kerryball Post #1



Building a map where you can swap weapons during battle.



None.

Jul 12 2024, 8:26 am TheHappy115 Post #2



I'd recommend using "EUD Editor 3" which has ways to easily change units max life (give units shields) and change weapons when needed.

How I do it in EUD Editor 3:
Condition: "Whatever condition you want"

Action: (SetUnitsDat) "ID:0 Terran Marine | GroundWeapon | 2 | SetTo" (There are korean letters inbetween but these can be ignored)

This action can be read as "Set Terran Marine's Groundweapon to 'Weapon ID: 2'" which is C-10 Canister (Terran Ghost's Weapon). As a result,
the Marine's ground weapon will be a terran ghost, but the air weapon will still by Gauss Rifle. You can switch this too be just having GroundWeapon be AirWeapon instead.
To find out the actual ID and the name of said thing being changed, you will want the DatEditor open as the left panel gives ID number and hovering cursor over the modifiable content disables a tooltip stating the parameter name

I.E. The "Armor" value displays the ID of the type of armor, with "0" being "Terran Infantry Armor" and "1" being "Terran Vehicle Plating." However, in the trigger for modifying UnitDat, it will be listed as "Armor Upgrade" instead.
Similarly, Armor Strength displays the unit's actual armor (Terran Marine has 0 starting Armor, while a BC will have 3 starting Armor), but in the trigger to modify UnitDat, it is listed just as "Armor." So try to ensure you are correctly changing the correct thing.

Beware, triggers made in the EUD 3 Editor also default to "Perserve Trigger" and you must uncheck the box in the topright corner of the window labeled "Perserved Trigger" to prevent it.

In this way, you can also have special effects such as having timers that automatically "upgrade" enemy AI armor and attack throughout the game and other things.

Trigger location is located under the "Lua" tab and then under the >DatFile tab. (Note: Use "SetUnitsDat." You'll notice you can modify a lot of other stuff (however, Set applies the effect).
Hope any of this helps.



None.

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.
[2026-6-22. : 8: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: Moose