• 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.

Map Help, Trans ideas + Hero Abils

Status
Not open for further replies.
Level 4
Joined
Nov 17, 2005
Messages
81
For my map, Campaign of Champions, i use hero transformations when a hero gains a certain level. I have had a problem, though, with a couple of tiers. Here is what i have for the help-needed tiers.
1.Demolitionist

1. X-Villian
2. Lost Dwarf

I also need help on healer hero abils. I want to make their moves do dmg or heal (like holy light, but hurts enemy or heals ally) but i don't want it all to be holy light. I would like a chain heal/ lightning, Heal Spray, Poison spray...

Lastly i need help on allowing my healer to revive a hero that is "dead" but in a diff area of the map. ty and all hlp is appreciated
 
Level 13
Joined
Jun 22, 2004
Messages
783
First question is unclear, don't know exactly what you mean and what we can do to fix it without telling us the exact problem.

About the holy light, just adjust the model file in the object editor, and possible other stats as well to your liking.

You want your healer to revive other hero's or your own hero, and is the healer a unit type, a hero, or is an ability that units can wear, you really have to try to be as detailed and as clear as you can, else it's very hard for me (and the rest) to possibly help you out with your problems.
 
Level 4
Joined
Nov 17, 2005
Messages
81
I am sry
The healer is a hero, and i want him to be able to revive other heroes that are located in a different section of the map because they were killed, and it is a hero ability at lvl 6
 
Level 13
Joined
Jun 22, 2004
Messages
783
Should he be able to ressurect all hero's that are fallen, or just one specific hero?
And should he be able to ressurect friendly hero's or only hero's from him/herself?

It's all about giving as much detail as you possibly can, in order to let us help you better.
 
Level 6
Joined
Dec 28, 2006
Messages
102
You should use triggers or Jass

I think I know how you could do it by triggers
1. You must use AOE ability like Blizzard

2. Make a trigger which sets unit variable array to dying hero, and his position to point variable array:

Events:
Event Response - Unit Dies

Conditions:
Boolean Comparison - Unit Classification check - (Dying Unit) Is (Hero)

Actions:
For loop of integer A ( 1 to (insert here max number of friendly heroes))
If
Unit Comparison - (dead_hero[for loop of integer A]) = (No Unit)
Then
set dead_hero[for loop of integer A] = (Dying Unit)
set dead_hero_pos[for loop of integer A] = Position of (Dying Unit)
Skip Remaining Actions
Else
(Do Nothing)

3. You should create variables:
unit - ressurect_caster
point - ressurect_point
point - ressurect_caster_pos

4. Create trigger for casting spell:
Events:
Event - Generic Unit Event (unit finish casting an ability)

Conditions:
Condition - Ability Comparison (ability beeing cast = Ressurect)

Actions
set ressurect_caster = Casting Unit
set ressurect_point = Target point of ability beeing cast
set ressurect_caster_pos = Position of Unit (ressurect_caster)
For loop of integer A (1 to (insert here max number of friendly heroes))
If
Conditions
Real Comparison - Distance Between Points (ressurect_point) (dead_hero_pos[for loop of integer A]) <= (Insert here range of spell)
Unit Comparison - (dead_hero[for loop of integer A]) Is not (No Unit)
Then
Hero - Ressurect Instantly at (ressurect_caster_pos)
set dead_hero[for loop of integer A] = No Unit
Else
(Nothing)

And it should be all. :thumbs_up:
 
Status
Not open for further replies.
Top