• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

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