is there any thing wrong with this trigger?

Discussion in 'World Editor Help' started by sunshinex3, Aug 16, 2018.

  1. sunshinex3

    sunshinex3 You can change this now in User CP.

    Ratings:
    +4 / 0 / -0
    Trigger:
    • TimeOutDialog
      • Gold Mining
        • Events
          • Time - Every 20.00 seconds of game time
        • Conditions
        • Actions
          • Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
            • Loop - Actions
              • Unit Group - Pick every unit in (Units owned by (Picked player) of type Gold Mine) and do (Actions)
                • Loop - Actions
                  • Player - Add 125 to (Owner of (Picked unit)) Current gold



    just making sure no mem leaks, trying to figure out why game is crashing all the sudden.
     
  2. sunshinex3

    sunshinex3 You can change this now in User CP.

    Ratings:
    +4 / 0 / -0
    also could it be because of patch 1.30???? these crashes
     
  3. sunshinex3

    sunshinex3 You can change this now in User CP.

    Ratings:
    +4 / 0 / -0
    hrm its actually this trigger

    Trigger:
    • Temple Change in Onwnership
      • Events
        • Unit - Lever (temple) 0105 <gen> Dies
      • Conditions
      • Actions
        • Unit - Change ownership of Temple 0106 <gen> to (Owner of (Killing unit)) and Change color
        • Unit Group - Pick every unit in (Units of type dummy (sight)) and do (Unit - Change ownership of (Picked unit) to (Owner of (Killing unit)) and Retain color)
        • Wait 6.00 seconds
        • Unit - Order dummy (lever) 0107 <gen> to Human Paladin - Resurrection



    Trigger:
    • lever revive for sure
      • Events
        • Time - Every 120.00 seconds of game time
      • Conditions
        • (Lever (temple) 0105 <gen> is dead) Equal to True
      • Actions
        • Unit - Order Lever (temple) 0105 <gen> to Human Paladin - Resurrection



    Trigger:
    • lever revive for sure Trigger 2
      • Events
        • Unit - A unit Dies
      • Conditions
        • (Unit-type of (Dying unit)) Equal to Lever (temple)
      • Actions
        • Hero - Instantly revive (Dying unit) at (Position of (Dying unit)), Hide revival graphics



    Trigger:
    • auto cast temple
      • Events
        • Time - Every 10.00 seconds of game time
      • Conditions
        • ((Owner of Temple 0106 <gen>) Not equal to Neutral Passive) and ((Owner of Temple 0106 <gen>) Not equal to Neutral Hostile)
      • Actions
        • Unit - Order Temple 0106 <gen> to Human Priest - Inner Fire dummy (lever) 0107 <gen>



    Trigger:
    • Gold and Lumber Temple
      • Events
        • Unit - Temple 0106 <gen> Begins casting an ability
      • Conditions
        • ((Owner of Temple 0106 <gen>) Not equal to Neutral Passive) and ((Owner of Temple 0106 <gen>) Not equal to Neutral Hostile)
      • Actions
        • Player - Add 10 to (Owner of (Triggering unit)) Current gold
        • Player - Add 10 to (Owner of (Triggering unit)) Current lumber


    is their a memory leak in any of these or is does it have to do with the revive i will test out revive now
     

Share This Page