• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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