1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. 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.

Idea for capturing bases

Discussion in 'Triggers & Scripts' started by Saishy, Oct 28, 2009.

  1. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    I'm doing a kind of "base wars" map, each team starts with one base, and each time a team destroy the main building the base resets belonging to that team.

    But, I'm kind of lost... If a random building from the base its still there, I can always set it to max hp and change owner, but if there is something missing? (A destroyed tower) How can I rebuild it at the same location?

    (Also, I'm looking for a tree revival and creep revival system, like a normal AoS)

    Thanks in advance ^^
     
  2. reason 3

    reason 3

    Joined:
    Aug 11, 2009
    Messages:
    1,549
    Resources:
    2
    Maps:
    1
    Spells:
    1
    Resources:
    2
    Here you go with a Tree Revival system...
    • Revive Dead Trees Setup
      • Events
        • Time - Elapsed game time is 1.00 seconds
      • Conditions
      • Actions
        • Destructible - Pick every destructible in (Entire map) and do (Actions)
          • Loop - Actions
            • Trigger - Add to Revive Dead Trees <gen> the event (Destructible - (Picked destructible) dies)
        • Custom script: call DestroyTrigger(GetTriggeringTrigger())

    • Revive Dead Trees
      • Events
      • Conditions
        • Or - Any (Conditions) are true
          • Conditions
            • (Destructible-type of (Dying destructible)) Equal to Felwood Tree Wall
      • Actions
        • Wait 10.00 game-time seconds
        • Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Show birth animation


    Just change the line with the "desctructible-type equal to XX tree".

    And what do you exactly mean by a creep revival system like AoS?
     
  3. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    Sorry... but that trigger is very bad, and if two trees die just one respawn o.o

    The creep revival is like dota or any AoS, when you clean a creep camp another kind of creep takes it and spawn.

    both system already exists, I'm just looking for them, but I need ideas (not done triggers) to the base system. D:
     
  4. Coolty44

    Coolty44

    Joined:
    Dec 10, 2008
    Messages:
    576
    Resources:
    1
    Spells:
    1
    Resources:
    1
    You could make all buildings exept towers invulnerable, and force palyers to build their own towers, unless they have a few stronger, pre-placed ones, in which case make them invulnerable too. Since base war maps are normally really large army intensive, it wouldn't hurt for a few invulnerable towers.
     
  5. Saishy

    Saishy

    Joined:
    Mar 23, 2008
    Messages:
    947
    Resources:
    0
    Resources:
    0
    Its a mix of AoS and base wars, the player just control one hero, so he can't build, also destroying the buildings is vital as the player get exp/gold from it.

    Also, I'm missing the tutorial to make creeps waves walk in the road.