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

need help to make an duel system

Status
Not open for further replies.
Level 2
Joined
Nov 16, 2005
Messages
12
i need help to make an duel system in my arena.

im thinking to make an system that teleport all player heros to the arena ... i make it
but i dont know how determine the end of the duel.

its my first post if something is wrong please tell me
 
Level 3
Joined
Aug 19, 2005
Messages
37
Generic unit event -> unit dies.

If player can have more players, store their amount on beginnig of the duel into an array and then control, if there are still some alive.

TRIGGER1 - Beginning of the duel

Actions:
Pick every player in all players and do action
---HeroesStillAlive[Player number(picked player)]=Count units in unit group - units owned by picked player


TRIGGER2 - Unit Dies

Actions:
HeroesStillAlive[Player nuber(Owner of dying unit)]=HeroesStillAlive[Player nuber(Owner of dying unit)]-1
If HeroesStillAlive[Player nuber(Owner of dying unit)]=0 then do {actions after the end of the duel}
 
Level 2
Joined
Nov 16, 2005
Messages
12
sorry but im buged to edit post ever time i get an 404 eror. sorry for the double post...

I maked u unterstand wrong :p
i need to send more than 1 player from each aliance to de duel arena
EX: teleport blue and red , orange and ... heroes

how i said i know how teleport than but i dont know how make the duel stop :p or in other words the players of an team die and the other players stay at the duel arena

sorry for my english and for the long text :(






--------------------------------------
Aded on 19/november


No one can help me ? :(
 
Status
Not open for further replies.
Top