• 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.

how can i make this?

Status
Not open for further replies.
Level 11
Joined
Apr 5, 2009
Messages
728
how can i make a trigger like. . .

like player 1,2,3 are team 1 and player 4 5 6 is team 2
they are friends in any place and in any dungeon
but when they go to a dungeon called "PvP". . all player in each team will be enemy's and the teams will be enemy's too. .how can i make that? pls help me?
 
Level 31
Joined
Apr 17, 2009
Messages
3,572
You have to make a region over the whole pvp dungeon
And then I would make a trigger like that:

1. Possibility

Event: Every 0.1 seconds of game
Condition: -
Actions: Pick every unit in "PvP-Region"
and make owner of picked unit treat owner of picked unit
as an opponent

(or something like this)

Or you make:

2. Possibility

Event: A Unit enters "PvP-Region
Condition: -
Actions: Add Owner of Entering Unit to "PvP-Group" (A player group variable)

and this trigger:

Event: Every 1 seconds of game
Condition: -
Action: Pick every player in "PvP-Group" and make picked player treat picked player as an opponent

And if they leave the PvP area this trigger should work:

Event: A unit leaves "PvP-Region"
Action: Remove Owner of Leaving Unit from "PvP-Group"

I hope it works. :thumbs_up:
If not send me the map and I will make it for you.

Greets chilla_killa
 
Status
Not open for further replies.
Top