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

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