HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help please

03-02-2007, 07:31 PM#1
Dil999
In GUI, im trying to make an ability that has a % chance when the hero with the ability is attacked to cast an ability on the attacking unit. The only thing im not sure of his how to make the % chance. Would doing (Random Number between 1-100) is greater than (100-(% chance)) work?
03-02-2007, 07:50 PM#2
grim001
yes, that method would work

although you probably are basing this off of "unit attacks" which is completely exploitable...

try looking up the AttackDetect system if you are at least a little familiar with JASS
03-02-2007, 08:00 PM#3
WNxCryptic
When Grim says that its exploitable, he's referencing about the fact that you can select a unit and right click on a target enemy REALLY fast, and even though the unit will only attack once per second or two seconds, Warcraft will register an "attack" command everytime you right-click on the target.
03-02-2007, 08:35 PM#4
Dil999
The only jass I can do is making spells with Vexorians spell system -.-
Anyways, to stop exploits wouldnt it be possible to give every unit that will be used on the map a passive ability with no icon that applies a buff, and use a trigger to check if a unit has a buff then run my trigger?

And dont say i should just use his AntiOrb template, im trying to make some good spells on my own. (Just incase you were going to)
03-02-2007, 11:27 PM#5
The)TideHunter(
I seriously doubt anybody will expliot it.
Why would they want to expliot an ability that will be used against them.
Anyway, if you wanted it to be perfect, and not use that event, you would need to use an attack detection system, which (I think it was PitzerMike) made, it is really just Jass, as it needs to be clean because it registers every unit that enters the map.
You have two choices, one, go for spliotable way, but in GUI, or go for Unxsploitable way, but with alot of Jass.