• 🏆 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!

Mining From a Unit NOT structure...

Status
Not open for further replies.
Level 3
Joined
Aug 17, 2007
Messages
51
Ok, here is my problem... I want to use a spell OR triggers to get this done, i cant figure out how to make it work so ill see if someone can help me here.
I want to make it so when i use a spell on a unit, i can get resources. like in below, i just cant find the action... Either way, Ill still be searching for it.

Unit Casts spell
Spell equal too Bloodfeast

Gain 10 Lumber and 10 gold over 2 seconds for as long as the spell lasts.

The person who helps out DOSE get rep o_0

Also, if there isnt a way to do that, is there a way to make items give you lumber and gold? (both) (or seperate) when picked up i mean...
 
Just two triggers, but note that this is not MUI.

  • AbilityCast
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability Being Cast) Equal to Bloodfeast
    • Actions
      • Set Caster = (Triggering Unit)
      • Trigger - Turn on GainResources <gen>
  • GainResources
    • Events
      • Time - Every <# Of Seconds> of game time
    • Conditions
    • Actions
      • Player - Add X gold to (Owner of (Caster))
      • Player - Add X lumber to (Owner of (Caster))
Simple. =)

Also, for items, just use the gold and lumber items that increase your gold and lumber.
 
Level 3
Joined
Aug 17, 2007
Messages
51
Just two triggers, but note that this is not MUI.

  • AbilityCast
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability Being Cast) Equal to Bloodfeast
    • Actions
      • Set Caster = (Triggering Unit)
      • Trigger - Turn on GainResources <gen>
  • GainResources
    • Events
      • Time - Every <# Of Seconds> of game time
    • Conditions
    • Actions
      • Player - Add X gold to (Owner of (Caster))
      • Player - Add X lumber to (Owner of (Caster))
Simple. =)

Also, for items, just use the gold and lumber items that increase your gold and lumber.

It worked :D +Rep for u.
 
Status
Not open for further replies.
Top