regrowing trees

ajzdfd

New Member
Reaction score
5
im simply looking for a way to make previously destroyed trees come back to life from a spell.

its basically the exact same concept as the builder in Heroes and Empires for those of you who have played that.

a unit casts an ability and the trees in the AoE of the spell should be resurrected
 

BlueMirage

Trust, but doubt.
Reaction score
39
Would it not be possible to pick every destructible within X range of the casting point and ressurect them?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Ok then, try this:
Trigger:
  • Resurrect Trees Event
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Destructible - Pick every destructible in (Playable map area) and do (Actions)
        • Loop - Actions
          • Trigger - Add to Resurrect Trees <gen> the event (Destructible - (Picked destructible) dies)


Trigger:
  • Resurrect Trees
    • Events
    • Conditions
    • Actions
      • Wait 5.00 seconds
      • Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Show birth animation


Oh, should it be an ability ? XD

Then try this:
Trigger:
  • Ressurect Trees
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Ability 1
    • Actions
      • Set TempPoint = (Target point of ability being cast)
      • Destructible - Pick every destructible within 450.00 of TempPoint and do (Actions)
        • Loop - Actions
          • Destructible - Resurrect (Picked destructible) with (Max life of (Last created destructible)) life and Show birth animation
      • Custom script: call RemoveLocation(udg_TempPoint)
 

HydraRancher

Truth begins in lies
Reaction score
197
You don't need to know JASS to use JASS. Besides, the majority of GUI users will have to use JASS (Custom Scripts).

As far as I know, its very complicated in GUI.

Ok then, try this:
Trigger:
  • Resurrect Trees Event
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Destructible - Pick every destructible in (Playable map area) and do (Actions)
        • Loop - Actions
          • Trigger - Add to Resurrect Trees <gen> the event (Destructible - (Picked destructible) dies)


Trigger:
  • Resurrect Trees
    • Events
    • Conditions
    • Actions
      • Wait 5.00 seconds
      • Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Show birth animation

MUI? Also, if somebody harvests or attacks the tree while its showing its animation, it shoots up and plays its "attacked" animation.
 

ajzdfd

New Member
Reaction score
5
well i realized the reason my trigger wasnt working by myself. But +rep for you two anyways. thanks;)
 

Komaqtion

You can change this now in User CP.
Reaction score
469
I just tested it with 10 seconds (Yesterday actually XD) and it worked...

Why would Acehart need to write up a whole system anyway?

Good question :S
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top