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

Pvp

Status
Not open for further replies.
Level 7
Joined
Jul 29, 2007
Messages
172
When you type the message, pop up a dialog showing players name.

When the triggering player click the button, set them to treat each other as enemy.

Finally when one's hero was killed, set them both back to ally.

Is that what you meant oziris.
 
Level 8
Joined
Aug 11, 2007
Messages
272
The Trigger

yes:
Trigger 1
  • Player enters string -pvp as an exact match
  • "Battle Begin" = False
  • Create dialog button for "PVP Message" label player name of red player
  • Set "Dialog button 1" = last created dialog button
  • Do the same of any player
  • Show "PVP Message"
Trigger 2
  • A player clicks a dialog button
  • Clicked dialog button = "Dialog button 1" (That's for the red one)
  • Make triggering player treat player 1 as an enemy.
  • Set triggering player = "Challanger"
  • Set player 1 = "Challanged"
  • Make player 1 treat triggering player as an enemy.
  • Set "Battle begin" = true
Do the same for the other players

Trigger 3
  • A generic unit dies
  • "Challanger" = owner of dying unit
  • "Challanged" = owner of dying unit
  • Make "Challanger" treat "Challanged" as an ally
  • Make "Challanged" treat "Challanger" as an ally
  • Set "Battle Begin" = False
  • set "challanger" = no player
  • set "challanged" = no player
That should do it. If there are any bugs, sorry, my WE isn't opened.
 
Status
Not open for further replies.
Top