Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Killing detectoin with vHP
Killing detectoin with vHP
Aug 15 2008, 1:05 am
By: Dungeon-Master  

Aug 15 2008, 1:05 am Dungeon-Master Post #1



Hey, I need a trick to detect killing a unit that has vHP... I use flying units as projectiles that are shot by a player to hit another. The flying units are detected using a give, center location, and give back system. Wat i need is to detect who killed who. There are up to 6 players warring at the same time. The perfect example would be Galactic Gunnerz (yea, this map again!) in wich you get money by destroying units this way.



None.

Aug 15 2008, 1:08 am Falkoner Post #2



How are the projectiles in your map fired?



None.

Aug 15 2008, 1:23 am Dungeon-Master Post #3



You got a tank wich has a loc centered on it, you got an observer wich also got one, and you create zealots at a gateway to shoot bullets
Trigger
Players

  • Player 1
  • Conditions

  • Current player commands at elast one Protoss Zealot
  • Current player commands at least one Tank
  • Actions

  • Create one Terran Wraith at 'Red Tank'
  • Order to all Terran Wraith to move from 'Tank' to 'Red Observer'
  • Preserve Trigger


  • Trigger
    Players

  • Player 2
  • Conditions

  • Foes brings at least 1 Terran Wraith at 'Blue Tank'
  • Actions

  • Kill 1 Terran Wraith for Player 1 at 'Blue Tank'
  • Set Death Counts for HP(%) substract 1
  • Preserve Trigger


  • Why does it writes it in code form???



    None.

    Aug 15 2008, 1:25 am Falkoner Post #4



    Wait, doesn't that second trigger basically solves your problem? You just need to do a trigger for each player, and award them, rather than detecting when Foes bring a wraith there.



    None.

    Aug 15 2008, 1:28 am Dungeon-Master Post #5



    Yea, it works when hitting the player, but when the tank vHP currently gets to 0 %, won't it be difficult to detect?



    None.

    Aug 15 2008, 2:46 am Falkoner Post #6



    Not really, if you separate it to detect different player's wraiths hitting it when it has 1% left, you can tell who got the kill.



    None.

    Aug 15 2008, 3:07 am NudeRaider Post #7

    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

    Your triggers already detect it. (being hit)
    Whatever actions you want for the shooter execute them there for current player. For example set a dc or custom score.

    EDIT: sry wrote the above 2h ago.

    Yeah make a copy of the being hit trigger and and add a condition "foes brings at most 0/1 vHP to blue tank"
    The first of those copies will run where there's a kill, stopping the 2nd from running, as the wraith got killed already.




    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [07:00 pm]
    Symmetry -- poo poo papa
    [02:46 pm]
    lil-Inferno -- pee pee child
    [2026-6-27. : 6:10 pm]
    Ultraviolet -- sweet summer child
    [2026-6-26. : 10:31 am]
    NudeRaider -- blessed innocent soul knows nothing of the strife we had before EUDs were discovered :teehee:
    [2026-6-23. : 3: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
    Please log in to shout.


    Members Online: Symmetry