• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Lose Condition

Status
Not open for further replies.
Level 4
Joined
Mar 15, 2008
Messages
71
  • Win Conditions
  • Event
    • Unit - Unit dies
  • Conditions
    • ((Dying unit) is a Hero) equal to True
    • (Owner of (Dying unit)) not equal to (Owner of (Killing Unit))
    • (Killing unit) belongs to an enemy of (Owner of (Dying unit))
    • (Owner of (Dying unit)) equal to User
  • Actions
    • Set Hero_Kills[Number of (Owner of (Killing Unit))] = (Hero_Kills[Number of (Owner of (Killing Unit))] + 1)
    • *//you can insert various text triggers and effects for a hero's death//*
    • If (All Conditions are true) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Hero_Kills[Number of (Owner of (Killing Unit))] = 100
      • Then - Actions
        • Game - Victory (Owner of Killing Unit) (Show dialogs, Show scores)
      • Else - Actions
        • Do nothing
Hope this helps...
 
Last edited:
Level 11
Joined
Dec 11, 2007
Messages
888
  • Win Conditions
  • Event
    • Unit - Unit dies
  • Conditions
    • ((Dying unit) is a Hero) equal to True
    • (Owner of (Dying unit)) not equal to (Owner of (Killing Unit))
    • (Killing unit) belongs to an enemy of (Owner of (Dying unit))
    • (Owner of (Dying unit)) equal to User
  • Actions
    • Set Hero_Kills[Number of (Owner of (Killing Unit))] = (Hero_Kills[Number of (Owner of (Killing Unit))] + 1)
    • *//you can insert various text triggers and effects for a hero's death//*
    • If (All Conditions are true) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Hero_Kills[Number of (Owner of (Killing Unit))] = 100
      • Then - Actions
        • Game - Victory (Owner of Killing Unit) (Show dialogs, Show scores)
      • Else - Actions
        • Do nothing - this action is unnecesary

this is what he's talking about
 
Level 4
Joined
Mar 15, 2008
Messages
71
oh I thought that you meant...
That does nothing, it's useless :)
Cherol u cannot copy this text in the trigger u have to make it so it looks the same...that isn't hard even for a first-timer GUI
 
Level 4
Joined
Dec 16, 2007
Messages
134
i cant put: (Owner of (Dying unit)) not equal to (Owner of (Killing Unit))

Player Comparison

i cant put:Set Hero_Kills[Number of (Owner of (Killing Unit))] = (Hero_Kills[Number of (Owner of (Killing Unit))] + 1)
(Owner of (Dying unit)) equal to User

Hero_Kills[Number of (Owner of (Killing Unit))] = Variable
 
Level 11
Joined
Mar 30, 2008
Messages
666
i know how to put (Owner of (Dying unit)) not equal to (Owner of (Killing Unit)) ,but i dont know how to put: Set Hero_Kills[Number of (Owner of (Killing Unit))] = (Hero_Kills[Number of (Owner of (Killing Unit))] + 1)
(Owner of (Dying unit)) equal to User
If (All Conditions are true) then do (Then Actions) else do (Else Actions)
Hero_Kills[Number of (Owner of (Killing Unit))] = 100
 
Level 11
Joined
Dec 11, 2007
Messages
888
1. Set Hero_Kills (it's an array variable) [Number (Player number function) of (Owner of (Killing Unit))] = (Hero_Kills[Number of (Owner of (Killing Unit)) (Here you set the array using the Player Number function] + 1)
2. Somewhere at Player Conditions
3. Look for If\Then\Else multiple functions (is an action)
4. Integer Condition: Hero_Kills (integer array variable) [Number of (Owner of (Killing Unit)) (Here you set the array using the Player Number function) ] = 100
 
Status
Not open for further replies.
Top