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

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