• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

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