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

X% chance then Action [Trigger]

Status
Not open for further replies.
Level 4
Joined
May 8, 2007
Messages
70
Hello

I have a question and i try to explain it:
The plan is simple: I want create a trigger with a sound.
I have Unit may "Snake"
I have Sound may "Snakecry"

  • Snakeattack
    • Events:
      • Unit - Snake (the Unit) is attacked
    • Conditions:
    • Actions:
      • Chance of 20% play sound "Snakecry"
Know i need help, how to create the "20% action"
I hope someone understand me and can help :confused:
 
Level 8
Joined
Jun 25, 2007
Messages
165
  • Unit
    • Events
      • Unit - A unit is attacked
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Snake
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less or equal to 20
        • Then - Actions
          • Sound - Play Snakery
        • Else - Actions
          • Do nothing
This is the trigger
 
Level 4
Joined
May 8, 2007
Messages
70
jehea it works fine =)
TY you 2 ;)

I have one more low question
There is one sound something with "HornofCenarius"
I search it soooo long time but dont found it! I have the WEU <-- the sound exist there?
 
Status
Not open for further replies.
Top