(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > Triggers & Scripts

Triggers & Scripts Discussions regarding GUI triggers & JASS/AI scripts may be found here. Please review the » JASS Tutorials » Trigger Tutorials

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 12-11-2006, 08:34 AM   #1 (permalink)

User
 
Join Date: Oct 2005
Posts: 8

Spirit_Wolf is an unknown quantity at this point (0)


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!!!
Spirit_Wolf is offline  
Old 12-11-2006, 01:13 PM   #2 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,900

PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)

Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

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
PurplePoot is offline  
Old 12-11-2006, 02:08 PM   #3 (permalink)
 
paskovich's Avatar

I am ghost
 
Join Date: Jul 2005
Posts: 942

paskovich has a spectacular aura about (125)paskovich has a spectacular aura about (125)paskovich has a spectacular aura about (125)paskovich has a spectacular aura about (125)


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.
__________________
Jimmy Eat World - Let It Happen
"I'm the evil one who said.
Gonna let everything just happen
like my chest, my ears are proud
The collision is such an ugly sound."
Vote for the Hive without mercy!
paskovich is offline  
Old 12-11-2006, 02:54 PM   #4 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,900

PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)

Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

On the other hand, having to apply a wait to check that buff defeats the whole purpose :?
PurplePoot is offline  
Old 12-13-2006, 12:55 AM   #5 (permalink)

User
 
Join Date: Oct 2005
Posts: 8

Spirit_Wolf is an unknown quantity at this point (0)


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.
Spirit_Wolf is offline  
Old 12-13-2006, 01:06 PM   #6 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,900

PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)

Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

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
PurplePoot is offline  
Old 12-13-2006, 04:31 PM   #7 (permalink)
 
paskovich's Avatar

I am ghost
 
Join Date: Jul 2005
Posts: 942

paskovich has a spectacular aura about (125)paskovich has a spectacular aura about (125)paskovich has a spectacular aura about (125)paskovich has a spectacular aura about (125)


Quote:
Originally Posted by PurplePoot
hmm, 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
__________________
Jimmy Eat World - Let It Happen
"I'm the evil one who said.
Gonna let everything just happen
like my chest, my ears are proud
The collision is such an ugly sound."
Vote for the Hive without mercy!
paskovich is offline  
Old 12-13-2006, 11:52 PM   #8 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,900

PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)

Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

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
PurplePoot is offline  
Old 12-14-2006, 02:57 AM   #9 (permalink)

User
 
Join Date: Jul 2005
Posts: 14

FrAnCiS is an unknown quantity at this point (0)


i like his error message, it explains dota, and i always get them playing dota
FrAnCiS is offline  
Old 12-15-2006, 10:49 PM   #10 (permalink)

User
 
Join Date: Oct 2005
Posts: 8

Spirit_Wolf is an unknown quantity at this point (0)


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?
Spirit_Wolf is offline  
Old 12-15-2006, 11:01 PM   #11 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,900

PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)PurplePoot is a name known to all (732)

Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

Just set life = life + whatever, instead of using the dummy.
PurplePoot is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Increasing Sight Radius past 1800 Beau World Editor Help Zone 3 04-17-2008 07:26 AM
Increasing Range with triggers Lord_of_sausage Triggers & Scripts 23 03-23-2008 04:48 PM
[Trigger] Unit Sight Range Change jarryd1171 Triggers & Scripts 11 02-12-2008 02:56 PM
Range increasing runeseeker World Editor Help Zone 5 08-26-2007 09:52 PM
Increasing a unit's max hp Trashbite Triggers & Scripts 15 10-20-2006 02:46 PM

All times are GMT. The time now is 10:32 PM.






Your link here 
Car Credit | Buy Anything On eBay | Montana Music | Daily Horoscopes | Credit Counseling
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle