• 🏆 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!
  • ✅ HD Level Design Contest #1 POLL is now OPEN! Check out the stunning visuals of the final entries. 🔗Click here to cast your vote!

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