1. Head to the 33rd Modeling Contest Poll and drink to your heart's desire.
    Dismiss Notice
  2. Choose your means of doom in the 17th Mini Mapping Contest Poll.
    Dismiss Notice
  3. A slave to two rhythms, the 22nd Terraining Contest is here.
    Dismiss Notice
  4. The heavens smile on the old faithful. The 16th Techtree Contest has begun.
    Dismiss Notice
  5. The die is cast - the 6th Melee Mapping Contest results have been announced. Onward to the Hive Cup!
    Dismiss Notice
  6. The glory of the 20th Icon Contest is yours for the taking!
    Dismiss Notice
  7. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Resource Generator

Discussion in 'StarCraft I & II' started by Dreadnought[dA], May 3, 2010.

  1. Dreadnought[dA]

    Dreadnought[dA]

    Joined:
    Feb 23, 2007
    Messages:
    810
    Resources:
    0
    Resources:
    0
    I was wondering how I could make a unit generate like 10 minerals per second using the data editor.
     
  2. mrzwach

    mrzwach

    Joined:
    Aug 1, 2009
    Messages:
    929
    Resources:
    3
    Tutorials:
    3
    Resources:
    3
    1. Create a behavior of type buff.
    2. Set the field "Period" to 1.0 seconds, so that it will activate every second.
    3. Create an effect of type modify player.
    4. Change the field "Resources" in your custom effect to whatever resources you want it to give.
    5. Go back to your behavior. In the field "Effects - Periodic", add your effect.
    6. Add behavior to units.
     
  3. Dreadnought[dA]

    Dreadnought[dA]

    Joined:
    Feb 23, 2007
    Messages:
    810
    Resources:
    0
    Resources:
    0
    Thanks, didn't see the modify player field. I was looking at the Salvage Bunker ability for clues since that's the only ability that gives resources.