HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A Passive/active ability?

01-27-2007, 05:30 PM#1
Tiku
Is there a way to make an Ability like war stomp, but its passive, and theres a like 15% chance it'll cast?

Ex: Stomp ability, 15% chance of cast when attacked, when casted theres a 10 sec. cooldown, and then itll be able to cast again, But you cannot click it to activate it.

Hopefully you understand, is there a way to do that?
01-27-2007, 08:37 PM#2
Av3n
Yes trigger it, Use integers as the chance, and get an dummy unit to cast it

-Av3n
01-27-2007, 11:03 PM#3
Anopob
And just turn the trigger off (or something of the kind) for 10 seconds.

EDIT: Something like this:
Trigger:
War Stomp
Collapse Events
Unit - A unit Is attacked
Collapse Conditions
(Unit-type of (Attacked unit)) Equal to [Your Unit]
b Equal to False
Collapse Actions
Set i = (Random integer number between 1 and 100)
Set p = (Position of (Attacked unit))
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
i Greater than or equal to 50
Collapse Then - Actions
Unit - Create 1 [Dummy] for [Your Player] at p facing Default building facing degrees
Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Set b = True
Wait 10.00 game-time seconds
Set b = False
Else - Actions
Custom script: call RemoveLocation (udg_p)
01-28-2007, 01:28 AM#4
iNfraNe
the boolean makes it not MUI, and that is totally not needed. You can just leave out the b and change the unit type check to a check to see if the unit has the passive ability.

Also, to get nice results you should give your dummy locust (ofcourse) and after creating him move him to the place he should be again, since when creating units they get positioned to the closest pathable place.
01-28-2007, 03:54 AM#5
Tiku
kk thanks alot guys! =] i really appreciate it! +rep =]
01-28-2007, 11:17 PM#6
Anopob
He never asked for MUI or I would of done it in JASS, which it seems he doesn't need it, so if he does he should post again.
01-29-2007, 09:47 AM#7
iNfraNe
You complicate the spell, doing nothing but making it not MUI, I see no reason for that.
01-29-2007, 10:27 AM#8
Toadcop
and some new question.
i need a abilty which give permanent buff on having this ability (like aura) but
auras have long cooldown so if i add a ability and immediately call SetUnitAbilityLevel() for this ability so the buff in status screen will have Level: 1 and only after some time (3 seconds.) it will be updated ! so some one knows such ability ? i have also tried to use phoenix fire but it can't attack it's caster (full shit...).
01-29-2007, 08:09 PM#9
Anopob
@Toadcop: Make a new topic, it's easier.
@iNfraNe: Again, if he has troubles, he will post and you can help him this time, okay?