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.
[2026-10-11. : 6:02 am]
Donald -- Samase
[2026-10-09. : 2:53 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: I'll check it out this weekend!
Thanks
[2026-10-09. : 2:47 am]
Symmetry -- I'll check it out this weekend!
[2026-10-09. : 2:40 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: Another map maker? Damn we really ARE back
I invite you to try out the map I modified. I don't have the creativity to create maps from scratch, but I do have the know-how to modify existing ones; my project is to tweak community campaigns (specifically those with errors—to make them playable.
[2026-10-09. : 2:27 am]
Symmetry -- Another map maker? Damn we really ARE back
[2026-10-09. : 1:51 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Now that I wanted to change my avatar, the error image is showing up, haha.
[2026-10-09. : 1:34 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
I invite you to try out a mission I'm modifying from *StarCraft Reversed*; I'm trying to make it more playable and challenging.
[2026-10-09. : 1:33 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
[2026-10-09. : 1:31 am]
Ultraviolet -- Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Is it forbidden to have a large avatar?
actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Please log in to shout.


Members Online: Milestone