HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger help please

09-04-2004, 02:05 AM#1
TheFirstSword
I am having trouble finding the integer (If it is an integer) so the attacked unit has a % to attack back I can't finish this, so if anyone will help Thanks alot for your time and help.


-TFS
09-04-2004, 02:11 AM#2
fugly
are you looking for how much damage a unit does? sorry but i don't think that its possible with the WE
09-04-2004, 02:12 AM#3
TheFirstSword
Quote:
Originally Posted by fugly
are you looking for how much damage a unit does? sorry but i don't think that its possible with the WE
It's a counter attack, its like critical strike it has a % chance to attack back.
09-04-2004, 02:25 AM#4
HexenLordX
Well, say you want him to have a 1% chance to attack back.

For event, do unit is attacked.

Set a variable to random integer between 1 and 100.

Then do an If/Then/Else

Under if, do an integer comparison, If Variable = 1

For Then, do attacked attacking unit.

For else, do nothing.
09-04-2004, 02:26 AM#5
TheFirstSword
Quote:
Originally Posted by HexenLordX
Well, say you want him to have a 1% chance to attack back.

For event, do unit is attacked.

Set a variable to random integer between 1 and 100.

Then do an If/Then/Else

Under if, do an integer comparison, If Variable = 1

For Then, do attacked attacking unit.

For else, do nothing.
Ok, Thanx man!
09-04-2004, 04:25 PM#6
BuRnInSpartan
use integers... do random integer between 20 and 100

then do like if then do multiple acitons

if integer equal to 20 then do fire back or w/e

(also check out the spell dl section) i think shiggity shwa made a return fire spell very much the way i explained it)