Warcraft III resources & community, 2003–2006 · archived

Spell Help! Increasing A Unit's Sight Range

11 posts
#1

Spell Help! Increasing A Unit's Sight Range

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!!!
#2
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
#3
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.
#4
On the other hand, having to apply a wait to check that buff defeats the whole purpose :?
#5
Wow, thanks to both of you! :D

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.
#6
hmm, seems wc3s cut of the second part of my trigger

Wait x seconds
Remove (ability) from Triggering Unit


Anyways, mine aleready sets the level of the abil that increases your sight to the level of the ability you casted, so it should be fine
#7
PurplePoothmm, seems wc3s cut of the second part of my trigger

That's because of your terrible, horrible, disgustingly enormous "error message" in all your posts... :D:D:D
#8
Hahaha lol >.>

I may change it soon, if I can think of something new

Error Aura:

Decreases the Maximum Text Length of nearby units posts by 100/200/300 words :P
#9
i like his error message, it explains dota, and i always get them playing dota
#10
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?
#11
Just set life = life + whatever, instead of using the dummy.