Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How do I disable a unit's ability to attack?
How do I disable a unit's ability to attack?
Aug 2 2008, 9:06 am
By: KyleIs1337  

Aug 2 2008, 9:06 am KyleIs1337 Post #1



I am making a map where if you get a certain amount of damage then you lose a "laser bank" and you lose the ability to attack. How do I go about doing this?



None.

Aug 2 2008, 9:46 am NudeRaider Post #2

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Constantly ally yourself to your enemies, or make the enemies invincible, or replace your unit with a critter or a civ or some unit with 0 damage (heroes ftw) to simulate the loss of weapons.

To detect loss of hp you either need vHP or EUDs. EUD Health detection sample map

Post has been edited 1 time(s), last time on Aug 2 2008, 2:01 pm by NudeRaider.




Aug 2 2008, 1:57 pm Ahli Post #3

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from NudeRaider
Constantly ally yourself to your allies and enemies...
allieing with your enemies all the time -> enemies become your allies
allieing with your allies -> you cannot attack your allies & neutral with a+click (with most units)




Aug 2 2008, 4:42 pm Falkoner Post #4



The most effective method would be to constantly ally your unit to your opponents, with hypertriggers, that would make it so no matter how hard the player tries, they cannot shoot the other unit, detecting damage is a bit of a problem, but maybe you can use a method that Nude posted.



None.

Aug 3 2008, 12:29 am KyleIs1337 Post #5



Actually it's not the ship's actual health it's like an idea i saw about having burrowed units under it and it disables the weapons when 20 of the burrowed units are killed by the enemy. So I have no problem with detecting the health and I have just been given a solution to the not attacking thing. So, thanks ;)



None.

Aug 3 2008, 2:37 am Falkoner Post #6



Ah, so you already have a vHP set up :) Very good



None.

Aug 4 2008, 4:00 pm Dungeon-Master Post #7



Yes but if you use a ship, won't the burrowed units bug if it gets over unpassable terrain? it may fake the results a bit if, lets say, the ship is fleaing from ennemies and uses high ground to do so...



None.

Aug 4 2008, 10:42 pm KyleIs1337 Post #8



No because it's an arena type map and if the ship trys to move out of the arena it moves it back into it. And also there is no high ground (that's accessible by the ship, that is) in the map.



None.

Aug 6 2008, 6:03 pm Dungeon-Master Post #9



Well then just make the player unable to attack once he gets x number of units killed, it is as eazy as that...!



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[08:05 pm]
Symmetry -- 50% of strings in starcraft are references
[2026-6-07. : 1:59 am]
RIVE -- Lots of fun little nods to different works of others in the cheats too.
[2026-6-06. : 5:17 pm]
Oh_Man -- so i was today years old wen i learned rebel yell starcraft mission is named after a billy idol song. makes me wonder wat other missions are named after songs
[2026-6-04. : 3:42 am]
RIVE -- Hellooooo, Nurse
[2026-6-03. : 4:19 pm]
NudeRaider -- Hello World!
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
Please log in to shout.


Members Online: Roy, O)FaRTy1billion[MM], Ultraviolet