need help about victory triggers

RibljaCorba

TH.net Regular
Reaction score
5
Hello all,

Can some1 make trigger i mean victory trigger where heroes fights alll agaings all and only one hero who survive get win.....
 

kaboo

New Member
Reaction score
45
its just free hand but u should get the idea:
events - a unit dies
conditions - number of units in playable map matching condition (life of matching unit greater than 0) equal to 1
actions
- pick every unit in playable map matching condition (life of matching unit greater than 0)
> game - victory player(owner of picked unit)
 

SyrisX

New Member
Reaction score
3
If there are any other units on the map you will want to specify conditions to limit the picked units to only those fighting in your arena
 

SyrisX

New Member
Reaction score
3
Does each player have the same type of unit?
Do they control more than one unit?
Do they have lives, where they respawn a certain amount of times.. or just one life and its over?

A little more information would make helping a lot easier :)

other than that.. kaboo pretty much wrote out what you need to do.
 

Crusher

You can change this now in User CP.
Reaction score
121
You're not allowed to bump threads in less than 24 hours.

As for the Victory Trigger, simply go by this way (It's writen by me, don't have Jass NewGen opened)

JASS:
Events: A unit dies

Condition: Dying unit equal to (your unit)

Action:

Victory (your player), show dialoges and scores.


Simply as that.
 

SyrisX

New Member
Reaction score
3
You might want to keep in mind that you can only bump after 24 hours..according to the forum rules


Have you written any triggers so far? Have you tried to create the trigger that kaboo wrote for you?


events - a unit dies
conditions - number of units in playable map matching condition (life of matching unit greater than 0) equal to 1
actions
- pick every unit in playable map matching condition (life of matching unit greater than 0)
> game - victory player(owner of picked unit)
 

SyrisX

New Member
Reaction score
3
You're not allowed to bump threads in less than 24 hours.

As for the Victory Trigger, simply go by this way (It's writen by me, don't have Jass NewGen opened)

JASS:
Events: A unit dies

Condition: Dying unit equal to (your unit)

Action:

Victory (your player), show dialoges and scores.


Simply as that.

He doesn't want the owner of the unit that dies to win.. On the contrary actually, the last man standing needs the victory.
 

kaboo

New Member
Reaction score
45
no problem, thats why are u here
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Number of units in (Units in (Playable map area) matching ((Life of (Matching unit)) Greater than 0.00))) Equal to 1 {first is integer comparision, and second is real comparision}
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Life of (Matching unit)) Greater than 0.00)) and do (Actions) {same as in conditions}
        • Loop - Actions
          • Game - Victory (Owner of (Picked unit)) (Show dialogs, Show scores)


this is what u should select to get the condition, its sorted from first to last:
integer comparision
unit - count units in unit group
units in region matching condition - region is playable map
condition is real comparision
 

RibljaCorba

TH.net Regular
Reaction score
5
hmmm...and can u say me how to do this trigger where to find etc...

(Number of units in (Units in (Playable map area) matching ((Life of (Matching unit)) Greater than 0.00))) Equal to 1 {first is integer comparision, and second is real comparision}
 

kaboo

New Member
Reaction score
45
i wrote it already :p
this is what u should select to get the condition, its sorted from first to last:
integer comparision
unit - count units in unit group
units in region matching condition - region is playable map
condition is real comparision
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top