• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[General] Wisp - Detonate & Ghater

Status
Not open for further replies.
Level 11
Joined
Sep 11, 2013
Messages
324
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 28
Joined
Feb 18, 2014
Messages
3,579
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 11
Joined
Sep 11, 2013
Messages
324
  • 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