Need some help for a trigger

Status
Not open for further replies.
Level 3
Joined
May 6, 2007
Messages
37
Hi guys because im a noob, i want a trigger that do the specific: when i destroy 3 specifc monsters i want the game saying victory and finish the game and when my hero died by any monster i want the game write u lose and then again the game will finish. So if its not a big trouble i need help guys.
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
The latter;

  • Lose
  • Events
    • Unit - A Unit Dies
  • Conditions
    • ((Owner of (Triggering Unit)) controller) Equal to User
    • ((Triggering Unit) is A hero) Equal to True
  • Actions
    • Game - Defeat (Owner of (Triggering Unit)) with the message: (insert text here)
the former

  • Win
  • Events
    • Unit - A Unit Dies
  • Conditions
    • (Owner of (Triggering Unit)) Equal to Neutral Hostile
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Life of (your first monster)) Less than or Equal to 0
        • (Life of (your second monster)) Less than or Equal to 0
        • (Life of (your third monster)) Less than or Equal to 0
        • Then - Actions
          • Game - Victory (Owner of (Killing Unit)) ((Show/Hide) dialogs, (Show/Hide) scores)
        • Else - Actions
 
Level 3
Joined
May 6, 2007
Messages
37
The latter;

  • Win
  • Events
    • Unit - A Unit Dies
  • Conditions
    • (Owner of (Triggering Unit)) Equal to Neutral Hostile
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Life of (your first monster)) Less than or Equal to 0
        • (Life of (your second monster)) Less than or Equal to 0
        • (Life of (your third monster)) Less than or Equal to 0
        • Then - Actions
          • Game - Victory (Owner of (Killing Unit)) ((Show/Hide) dialogs, (Show/Hide) scores)
        • Else - Actions

I have a small problem i cant find this specific trigger (life of(your first monster)) Less than or Equal to 0 is this a variable? and something else if its not a trouble i need a trigger that can make hero skills beyond lvl3.
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
I have a small problem i cant find this specific trigger (life of(your first monster)) Less than or Equal to 0 is this a variable? and something else if its not a trouble i need a trigger that can make hero skills beyond lvl3.

in case you can't find such a condition in the trigger editor, add a condition
select 'Integer Comparison'
then 'unit : life of (specific unit) equals 0'
specific unit should be selected on the map (or also just take a variable that links to the unit, but apparently you're new to triggering so never mind about that)
 
Last edited:
Level 3
Joined
May 6, 2007
Messages
37
I did that now and it worked now i want to create a spell that it work for himself it will make him to reflect enemy spells and ranged attacks only (melee damage will work normal against him) back to its owner as a negate effect i want the unit of this spell cant move its like having root effect but it will lost but also gain 300 hp bonus and 3 extra armor.
The spell's cooldown will be 20 seconds and the effect will last 7 seconds it is possible to make that spells guys? need help!!!
 
Last edited:
Status
Not open for further replies.
Top