• 🏆 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!

how to show mesages on killing?

Status
Not open for further replies.
Level 6
Joined
Jul 26, 2010
Messages
167
somebody pls tell me how to make to show mesages each time my unit kills...
I know killing unit is returning null but I srsly dont know what to do

  • trig1
  • Acontecimientos
  • Tiempo - Every 5.00 seconds of game time
  • Condiciones
  • Acciones
  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • Si: Condiciones
  • MovingUnit Igual a (==) (Killing unit)
  • Entonces: Acciones
  • Partida - Display to (All players) the text: 10
  • Otros: Acciones
  • Partida - Display to (All players) the text: ...
wc3 in spanish sorry :/
 
Level 23
Joined
Oct 20, 2012
Messages
3,075
  • Event
    • a Unit Dies
  • Condition
  • Actions
  • If then ELse..
    • Condition:
      • killing unit equal to moving unit
    • Then
      • Display to (All players) the text: 10
    • Else
      • Display to (All players) the text: ...
If I understood correctly, that should do the job..

(BTW, I think I've seen another thread like this.. With a lot of good answers)
 
Level 16
Joined
Mar 27, 2011
Messages
1,349
Edit: I was typing this up when Juno answered :/

  • trigger1
  • Events
    • Time - Every 5.00 seconds of game time
  • Conditions
  • Actions
    • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • MovingUnit Equal to (Killing unit)
    • Then - Actions
      • Game - Display to (All players) the text: 10
    • Else - Actions
      • Game - Display to (All players) the text: ...
Here, I semi converted the trigger if that helps anybody. No I dont speak Spanish lol.
 
Status
Not open for further replies.
Top