• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Making Water Hero

Status
Not open for further replies.
Level 7
Joined
Apr 25, 2004
Messages
241
I need to know how to do the following:

1. How to make a unit go invisible while on water but not while attacking on water.

2. How to make a 3-level aura work only on the water.

3. How to make a Shockwave=like ability to more damage while on water.
 
Level 9
Joined
Sep 8, 2004
Messages
633
i.m.p.o.s.s.i.b.l.e.

it could work, if the water would be a certain rect, then you could make triggers like, only enable aura when unit is in rect (water)

if an ability is cast, if casting unit is in rect (water), do X damage to unit being cast upon and such.

The invisibility.. same as aura?
 
Level 2
Joined
Aug 26, 2004
Messages
29
i.m.p.o.s.s.i.b.l.e.
Nah!

First you need a method to efficiently determine if a unit is in the water

Make a bunch of regions marking the water areas, and set them to an array, something like this during initialization:

set variable r_waterRegions[1] = Water Region 1 <gen>
set variable r_waterRegions[2] = Water Region 2 <gen>
set variable r_waterRegions[3] = Water Region 3 <gen>
....


Now, make a trigger that executes periodically do this:
Unit Group - Pick all units in (PUT SOMETHING HERE TO SINGLE OUT HEROS) and perform multiple actions
. set variable b_heroIsInWater = false
. For each Integer A from 1 to NUMBER OF WATER REGIONS GOES HERE
. . if Boolean Comparison (Unit - Unit in region (Picked Unit, r_waterRegions[Integer A]) is true)
. . . set variable b_heroIsInWater = true
. if Boolean Comparison (b_heroIsInWater is true)
. . STUFF TO DO IF HERO IS IN THE WATER GOES HERE
. else
. . STUFF TO DO IF HERO IS NOT IN THE WATER GOES HERE

I believe one thing you can do is use customized Engineering Upgrades that'll modify the weaker abilities to stronger ones.

So what do you do when the hero is in the water?
- Add Permanent Invisibility
- Add a modified EU to upgrade the aura to be actually functional
- Add a modified EU to upgrade the shockwave ability to a more damaging version

What do you do when the hero is not in the water?
Remove those abilities!

If the hero doesn't have it, it's harmless anyway.

If you need some things on non-heros, just single out some of the effects with conditions (as in, If actions)
 
Status
Not open for further replies.
Top