• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Modifying Damage Engine Not Working

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,765
Thats probably a bad word for it, but whatever

  • Damage Engine Fix
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Game - Display to (All players) the text: fdasfasdf
          • Trigger - Add to Damage Engine <gen> the event (Unit - (Picked unit) Takes damage)
This returns a ton of fdefiasdfsauidf but still the pre-placed units aren't affected by the damage engine. (the problem ive been having with the system is that pre-placed units arent getting registered by the damage event) Why arent they being affected?

Alternatively, why does this fatal error

  • FFFFFFFFFFFFFFFFF
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • Custom script: set udg_TempInt = GetUnitTypeId(GetEnumUnit())
          • Set TempLoc = (Position of (Picked unit))
          • Set Temp_Integer = (Player number of (Owner of (Picked unit)))
          • Set TempReal = (Facing of (Picked unit))
          • Unit - Remove (Picked unit) from the game
          • Custom script: call CreateNUnitsAtLoc( 1, udg_TempInt, Player(udg_Temp_Integer), udg_TempLoc, udg_TempReal )
          • Custom script: call RemoveLocation(udg_TempLoc)
e/ just eralized i forgot bj_wantdestroygroup in both those
 
Last edited:
Status
Not open for further replies.
Top