HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

% Triggers Help Required (GUI)

11-09-2006, 12:55 AM#1
Hydrolisk
I think I made a thread like this elsewhere but I couldn't find it so please excuse me for this thread.
Lately, I've been trying to make percent triggers to help my moves out. Apparently, nothing I try works. I'm a GUI user. Anyways, can you help me? I'm trying to learn something new here but I just don't get it!
11-09-2006, 01:48 AM#2
Naakaloh
Percent triggers? Do you mean "Percent chance to do..."? Use a random number. This, for example, would give a 50% chance.

Trigger:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Random real number between 0.00 and 1.00) Less than 0.50
Then - Actions
Else - Actions
11-09-2006, 10:57 AM#3
Hydrolisk
Ahhh, I see. Your first example confused me. Thanks.
11-09-2006, 04:01 PM#4
Zachary_Shadow
Trigger:
Collapse If - Conditions
Golden_Skin Equal to 1
Collapse Then - Actions
Set Golden_Skin_Random = (Random integer number between 0 and 100)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Golden_Skin_Random Less than or equal to 2
Collapse Then - Actions
Item - Create Gold dust at (Position of (Attacked unit))
Collapse Else - Actions
Do nothing

One of my random percentage triggers I use... I guess it's just as good, it works for me anyways ;)