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

[Solved] Randomizing an attatchment when a unit is trained?

Status
Not open for further replies.
Level 1
Joined
May 6, 2011
Messages
3
I'm wondering if there is anyway to make it so that my unit will have a weapon randomized between two attatchments. Like it has 50/50 chance of have a sword or a mace in my case. Thank you in advance if anyone helps.
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Random integer number between 1 and 2) Equal to 1
    • Then - Actions
      • Special Effect - Create a special effect attached to the weapon of {Unit} using {Effect 1}
    • Else - Actions
      • Special Effect - Create a special effect attached to the weapon of {Unit} using {Effect 2}
 
Status
Not open for further replies.
Top