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

[General] Wisp - Detonate & Ghater

Status
Not open for further replies.
Level 13
Joined
Sep 11, 2013
Messages
467
Hello again!

1.How can i make Detone from the Wisp to NOT dispel the blight terrain?

2.I want to use Wisp gather ability to collect gold and lumber from the same tree, Not just lumber.
It is possible?

The help will be appreciated!
 
2.I want to use Wisp gather ability to collect gold and lumber from the same tree, Not just lumber.
It is possible?
Whenever the wisp starts to gather you add it to a unit group. Then you have a periodic trigger that runs every X seconds. Count all the units in the unit group (pick all the units in the unit group and set an integer to Integer+1 for every picked unit) and add gold accordingly. Whenever the wisp stops gathering or dies you remove it from the unit group.
 
Level 30
Joined
Feb 18, 2014
Messages
3,623
1.How can i make Detone from the Wisp to NOT dispel the blight terrain?
  • Prevent Blight Dispel
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Detonate
    • Actions
      • Set Temp_Point = (Target point of ability being cast)
      • Wait 0.10 seconds
      • Environment - Create Blight for Joueur 1 (Red) from Temp_Point to a radius of 300.00
      • Custom script: call RemoveLocation (udg_Temp_Point)
2.I want to use Wisp gather ability to collect gold and lumber from the same tree, Not just lumber
  • Harvest Gold Lumber
    • Events
      • Player - Player 1 (Red)'s Current lumber becomes Greater or equal to 1.00
    • Conditions
    • Actions
      • Player - Add 5 to Player 1 (Red) Current gold
However, this trigger also take consideration of the gold recieved from neutral hostiles or gold coins, so you may wanna try a different method like the one FeelsGoodMan described.
 
Level 13
Joined
Sep 11, 2013
Messages
467
  • Prevent Blight Dispel
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Detonate
    • Actions
      • Set Temp_Point = (Target point of ability being cast)
      • Wait 0.10 seconds
      • Environment - Create Blight for Joueur 1 (Red) from Temp_Point to a radius of 300.00
      • Custom script: call RemoveLocation (udg_Temp_Point)
  • Harvest Gold Lumber
    • Events
      • Player - Player 1 (Red)'s Current lumber becomes Greater or equal to 1.00
    • Conditions
    • Actions
      • Player - Add 5 to Player 1 (Red) Current gold
However, this trigger also take consideration of the gold recieved from neutral hostiles or gold coins, so you may wanna try a different method like the one FeelsGoodMan described.

I forget to mention.. I don't have blight on the entire map.. i have only in the middle of the map.
How can i trigger that?
 
Status
Not open for further replies.
Top