• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Limitation Trigger not working

Status
Not open for further replies.
Level 4
Joined
May 12, 2008
Messages
49
Hi, I'm working on a little map, where I have several types of builders.
And alot of different resources (crops, rocks, trees, fishes etc.)
and I want only a specific builder to be able to harvest a specific type of resource

Farmer - Crops

Miner - rocks

Lumberjack - Trees

Fisherman - Fish

etc..


I have a test trigger that didn't work, so could one of take a look at it for me?

  • Harvesting System 2
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to Harvest (Gold and Lumber)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Destructible-type of (Target destructible of ability being cast)) Equal to Iron Deposit
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Casting unit)) Equal to Man
            • Then - Actions
              • Do nothing
              • Game - Display to (All players) the text: If you used MAN, so...
            • Else - Actions
              • Unit - Order (Casting unit) to Stop
              • Game - Display to (All players) the text: Not possible
        • Else - Actions
 
Level 5
Joined
Apr 26, 2009
Messages
92
Just some thoughts: try using triggering unit and not casting unit.
Get rid of the do nothing thats pointless
other than that idk i woulda used starts the effect of, seems odd that wouldn't trigger with right click

EDIT:
this trigger worked for me--i guess editor doesnt register gather/harvest being cast

  • Untitled Trigger 001
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Destructible-type of (Target destructible of issued order)) Equal to Summer Tree Wall
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Triggering unit)) Equal to Wisp
            • Then - Actions
            • Else - Actions
              • Wait 0.10 seconds
              • Unit - Order (Triggering unit) to Stop
              • Game - Display to (All players) the text: Not Possible
        • Else - Actions
 
Last edited:
Status
Not open for further replies.
Top