Recreate Siege Engine Availability?

Status
Not open for further replies.
Level 12
Joined
May 20, 2009
Messages
821
I'm wondering how to recreate how the Siege Engine gets upgraded. I know it is under the Upgrade, Change Unit Availability. But how do I make the upgraded unit disabled at first?

Edit: If you say triggers, I will reject it. Triggers are absolutely last resort. I could easily make this with Triggers, but I'm trying to make as much of it as possible actually use the Data Editor. =p
 
I was thinking that myself, but it couldn't be or else that Enabled / Disable thing in upgrades would be almost useless.

Than again, Blizzard is known to do that...

On another note, I'm having issues with this trigger.

  • Part 1
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Player - Disable Harvest (Ghouls Lumber) (Faster) for Player 1 (Red)
It doesn't disable it. Would it have to do with this trigger?

  • Part 2
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Graveyard
          • (Researched tech-type) Equal to Caviated Forearm
    • Actions
      • Player - Disable Harvest (Ghouls Lumber) for Player 1 (Red)
      • Player - Enable Harvest (Ghouls Lumber) (Faster) for Player 1 (Red)
 
I'm not sure why disable won't work on any harvest ability no matter what. It appears to work on all the other spells I tried.

The below triggers should work as an alternative though. Let me know how it works out.

  • Existing
    • Events
      • Unit - A unit Finishes research
    • Conditions
      • (Researched tech-type) Equal to Caviated Forearm
    • Actions
      • Unit Group - Pick every unit in (Units owned by (Owner of (Researching unit)) of type Ghoul) and do (Actions)
        • Loop - Actions
          • Unit - Remove Harvest (Ghouls Lumber) from (Picked unit)
          • Unit - Add Harvest (Ghouls Lumber) (Faster) to (Picked unit)
      • Trigger - Turn off (This trigger)
  • Trained
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Trained unit)) Equal to Ghoul
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Current research level of Caviated Forearm for (Owner of (Trained unit))) Equal to 1
        • Then - Actions
          • Unit - Add Harvest (Ghouls Lumber) (Faster) to (Trained unit)
        • Else - Actions
          • Unit - Add Harvest (Ghouls Lumber) to (Trained unit)
 
Status
Not open for further replies.
Back
Top