View Full Version : Question for dedicated Map Makers
switch.xp
07-28-2005, 1:50 PM
Is there a way to create an ability that causes certain units (enemy for instance) within it's radius to miss on x% of their attacks?
RedRagToAnOrc
07-28-2005, 3:57 PM
I'm not a dedicated Map-Maker, but what I could suggest is going into the abilities section of the Object Editor (or spells, or whatever it's called), then perhaps copying one of the aura spells, paste it, rename it etc. and then add a Curse/Drunken Haze effect to the aura. But that's a bit sketchy, you'll have to experiment. A more experienced Map-Maker could probably shed some more light, but I hope this helps to some extent.
Morkeliph
07-30-2005, 4:10 PM
What it sounds like you are trying to do is make an Evasion Aura, essentially. Maybe you can turn evasion into such and aura but tampering with it's range/area of effect, and also playing with which units it effects in the OE.
Try it and see if that works.
a_p3rf3ct_circl3
08-01-2005, 3:46 PM
Is there a way to create an ability that causes certain units (enemy for instance) within it's radius to miss on x% of their attacks? it might work with a trigger like this:
Melee Initialization
Events
Unit - A unit Learns a skill
Conditions
(Level of (Ability) for (Learning Hero)) Equal to 1
Actions
Set randomintegervariable = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
randomintegervariable Less than or equal to 15
Then - Actions
Unit Group - Pick every unit in (Units within "X" of (Position of (Learning Hero)) matching (((Picked player) is an enemy of (Owner of (Learning Hero))) Equal to True)) and do (Actions)
Loop - Actions
Unit - Order (Learning Hero) to Undead Banshee - Activate Curse
Else - Actions
Do nothing
the randomintegervariable is just a variable under "integer" just set it to 0(default)
i havent tested it but it looks like it might work there was no "unit - order (blahblah) to NE demon hunter - evasion, or drunken thingy
edwinfong25
08-01-2005, 8:19 PM
Are you trying to make them miss on just the unit or any unit that the enemy tries to attack?
XZminX
08-04-2005, 5:29 PM
a_p3rf3ct_circl3 ...... thats of no use what you just wrote... the hero should have original banshee ability....(can be altered)...
I wont post the code but i will give you the idea. Yes you need to add curse buff to units in range..
make a trigger like this:
event - unit comes in range X of your hero....
conditions - And - unit is enemy of hero AND unit doesnt have curse buff
actions -
unit - create banshee for Player 12 at the position of unit comming in range
unit - hide last created unit
unit set property - set last created unit's mana to 100%
unit - issue order targeting a unit - make banshee cast curse upon unit comming in range
wait 1 second
unit - removi last created unit
offcourse you need to modify curse ability to your needs and rename the curse buff or create your own one and aply it to curse spell.
a_p3rf3ct_circl3
08-16-2005, 2:47 AM
alright i think i got it
Events
Unit - A unit Learns a skill
Conditions
(Learned Hero Skill) Equal to (your ability)
Actions
Unit Group - Pick every unit in (Units in (Region centered at (Position of (Triggering unit)) with size (500.00, 500.00)) matching (((Matching unit) belongs to an enemy of (Owner of (Learning Hero))) Equal to True)) and do (Actions)
Loop - Actions
Unit - Create 1 Banshee for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
Unit - Hide (Last created unit)
Unit - Set mana of (Last created unit) to 100.00%
Wait 1.00 seconds
Unit - Order (Last created unit) to Undead Banshee - Curse (Matching unit)
Wait 1.00 seconds
Unit - Remove (Last created unit) from the game
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.