• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

HELP ME (Lumber Base)

Status
Not open for further replies.
Level 4
Joined
Aug 19, 2009
Messages
66
I wanted to know how to make a lumber base like in Vamp Zero that make lumber every seconds, please help

(SOLVED)

--------------------------------------------------------------------------> |O| <------------------------------------
 
Last edited:
Level 3
Joined
Apr 8, 2006
Messages
41
I haven't played Vamp Zero, but you could use a trigger to do it.
Events
----Time - Every 1 seconds of game time
Actions
----Custom Script: set bj_wantDestroyGroup = true
----Unit Group - Pick every unit in (Units of type LumberBase) and do (Actions)
--------Actions
------------Player - Add 1 to (Owner of (Picked Unit)) Current lumber

Hope that helps
 
Level 19
Joined
Feb 25, 2009
Messages
2,004
  • Events
    • Time - Every 30.00 seconds of game time
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 12, do (Actions)
      • Loop - Actions
        • Player - Add (5 x (Number of units in (Units owned by (Player((Integer A))) of type -UnitTypeHere-))) to (Player((Integer A))) Current lumber
Looping every 30 seconds, each unit of type 'Lumberbase" gives +5 lumber to the player.
 
Status
Not open for further replies.
Top