Lol... First try ever at a custom spell and I'm close to hitting the computer screen with a sledgehammer.
I'm making a spell that when activated, the casting unit will have a longer sight range in a so-and-so radious from them.I scrolled up and down the abilities section and trigger actions but I couldn't find ANYTHING that would increase a units sightrange.
Is there a solution to this!?!?
To those who reply, thank you!!!
Make a custom ability based on whatever ability that goblin passive sight range increaser thing uses.
Make a trigger called SightIncrease
Make an ability based off War Stomp that does 0 damage, has no targets, etc, with the tooltip, etc, for your ability
Now, make SightIncrease do this
Events
Unit - A Unit Casts An Ability
Conditions
Ability Being Cast Equal to Increase Sight (your warstomp ability)
Actions
Unit - Add (your sight range increase ability) to Triggering Unit
Unit - Set level of (your sight range increase ability) for Triggering Unit to Level of (warstop ability) for Triggering Unit
Berserk would be better, cause it applies a buff on the caster, that can be checked in the trigger, and when the buf is gone, remove the dummy ability.
The only thing is that I've gone through the 'Goblin NIghtscope' Ability and Buff and Item and I can't find a way to increase sight range customly- like, exact digits. I would also need to increase it over a range of levels (Level 1, 2, 3)
Would I use 'Area of Effect' for this? Kind of still clueless, but exceedingly grateful.
Ah... I get it now.
The spells up and running now, thank you!
The only thing is is that I tried making another spell as practise and it hasn't worked! :evil:
What the spell does is deal out a certain amount of damage to enemy targets in area around the casting unit AND heal allied units in that same area for the same amount of damage being done.
Anyway, I based the spell off Fan of Knives for the damage and for the healing part, made a dummy unit and a healing ability and set the healing part to work in a trigger. It didn't work... and here's the trigger.
AT Energy Slam Healer
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Energy Slam
Actions
Unit Group - Pick every unit in (Units within ((300.00 + (50.00 x (Real(((Level of Energy Slam for (Casting unit)) + 1))))) + 1.00) of (Position of (Triggering unit)) matching ((((Picked unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True) or ((Owner of (Picked unit)) E and do (Actions)
Loop - Actions
Unit - Create 1 Dummy for Player 1 (Red) at (Position of (Picked unit)) facing Default building facing degrees
Unit - Add Energy Slam Heal to (Last created unit)
Unit - Set level of Energy Slam Heal for (Last created unit) to (Level of Energy Slam for (Triggering unit))
Unit - Order (Last created unit) to Human Priest - Heal (Picked unit)
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
-
The damage part is fine, but NOT the healing/trigger part. I'm quite sure I did MOST of it right... Anyone?