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

Double training, thousand strikes and other

Status
Not open for further replies.
Level 4
Joined
May 29, 2008
Messages
92
I want to create some abilities that would give fo units onli if player have that tipe of hero. For example, if you have Palladin all knights will have double trainig ability(10% chanser of 2X critic). But if hero die theyu will lose it. I tried to create script but its faild. Its althought faild to give ability recueremants . Ability doesn't want to be given
 
Level 12
Joined
Mar 23, 2008
Messages
942
Give the ability to the units you want.

  • Aweosome Init Trigger
  • Events
    • Map Initialization
  • Conditions
  • Events
    • Player Group - Pick all players and do:
      • Player - Enable Double Training for (Picked Player)
  • Aweosome Ent Trigger
  • Events
    • Unit - unit enters (Playable map area)
  • Conditions
    • Unit-Type Comparison - Unit-Type of (Entering unit) is equal to Paladin
  • Events
    • Player - Enable Double Training for (Owner of (Entering unit))
  • Aweosome Leave Trigger
  • Events
    • Unit - unit leaves (Playable map area)
  • Conditions
    • Unit-Type Comparison - Unit-Type of (Leaving unit) is equal to Paladin
  • Events
    • Player - Disable Double Training for (Owner of (leaving unit))
 
Level 4
Joined
May 29, 2008
Messages
92
Thanks people and some more:

1)how to create spell that would heal undead and hurm living units but this spell should work on area and make enemy living unit burn.

2)I want to create building that has mana but to regenerate it you should pay gold. For example: 25mp=1000 g and 50 w(press some button)

3)I need to create unit that would boost its ability if he see frendly units of that type (For example Wolf (100 hp, 5% chanse crit 1.1X) see 4 another wolfs. And he boosted(200 hp, 10% chance crit 2X) but if this woolfs died or leave his vision field(HIS not Player!) he return to normal.

How to do that?
 
Last edited:
Level 24
Joined
May 9, 2007
Messages
3,563
Ok, for the first spell. Create one dummy. Add holy light with negative damage to dummy. Add units withi 500 of hero to unitgroup. Target random unit from unit group. Remove targeted unti from unit group. Loop for # of units in said unit group.

About the second spell just make a trigger so that when ability is cast. It adds 50Hp -25mp and sets current gold to current gold -1000.

The third one not sure how to define sight as region. Sorry not to be able to help you on this one.

Hope that the first two help.
 
Level 17
Joined
Apr 13, 2008
Messages
1,608
Eerm, there is already a "holy light with negative damage". It's called death coil. I wouldn't use a dummy here, though. I would rather pick the units around the target point and check if they are undead or organic and do the damage.

About the third skill, well I think I wouldn't try to do that in GUI.
 
Status
Not open for further replies.
Top