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

Chosing covertly a random player to make him evil

Status
Not open for further replies.
Level 5
Joined
Aug 23, 2008
Messages
116
Hi!

If you know the Map DARK DEEDS you know also that there a rondom player is chosen to be the evil one. How can I trigger something like this?
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
Make following global variables:
Evil Player: player variable, initial value: none
TempForce: player group variable

Make a trigger
  • Map Init
  • Events
    • Map Initialization
  • Actions
    • Set TempForce = All players matching: matching player "is playing" and matching player is "a user"
    • Set Evil Player = Random Player from TempForce
    • Custom script: call DestroyForce(udg_TempForce)
 
Last edited:
Status
Not open for further replies.
Top