HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Percents in Trigs, QUICK!

10-17-2006, 08:43 PM#1
Hydrolisk
I need help. Right now, I'm making a passive aura skill that makes it so that it slows enemy units down by 10% and every second, enemy Undead units have a 10% chance take 50 damage so naturally, I made a trigger. But I don't know how to make it work! I need someone to make a trigger that goes something along the lines of: Every second, enemy Undead units have 10% chance to take 50 damage. That's it! QUICKLY!
10-17-2006, 11:27 PM#2
Naakaloh
if ( GetRandomReal( 0., 1. ) <= .1 ) then
There's a GUI action that's something like:

Math - Random Real
10-17-2006, 11:27 PM#3
Naakaloh
if ( GetRandomReal( 0., 1. ) <= .1 ) then
There's a GUI action that's something like:

Math - Random Real
10-21-2006, 07:03 AM#4
Hydrolisk
Ty, I'm gonna try that! Don't expect me to post here again!