• 🏆 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!

One Player Item Pickup

Status
Not open for further replies.
Level 5
Joined
Jan 15, 2018
Messages
128
Is it possible for only one player to pickup an item? The same as the monster fragments in LTA. Where only cult can pick them up.
 
You could prevent performing given "smart" orders onto items not owned by the player. With the event Object Target Order.
could look like this:
  • Prevent Pick Order
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Target item of issued order) Not equal to No item
      • (Issued order) Equal to (Order(smart))
      • (Owner of (Target item of issued order)) Not equal to (Triggering player)
    • Actions
      • Unit - Pause (Triggering unit)
      • Unit - Order (Triggering unit) to Stop
      • Unit - Unpause (Triggering unit)
 
Level 5
Joined
Jan 15, 2018
Messages
128
tem ownership
  • joinminus.gif
    events.gif
    Events
    • line.gif
      joinbottom.gif
      unit.gif
      Unit - A unit Acquires an item
  • join.gif
    cond.gif
    Conditions
  • joinbottomminus.gif
    actions.gif
    Actions
    • empty.gif
      joinbottomminus.gif
      if.gif
      If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • empty.gif
        empty.gif
        joinminus.gif
        cond.gif
        If - Conditions
        • empty.gif
          empty.gif
          line.gif
          joinbottomminus.gif
          if.gif
          And - All (Conditions) are true
          • empty.gif
            empty.gif
            line.gif
            empty.gif
            joinbottomminus.gif
            cond.gif
            Conditions
            • empty.gif
              empty.gif
              line.gif
              empty.gif
              empty.gif
              join.gif
              if.gif
              (Owner of (Item being manipulated)) Not equal to Player 1 (Red)
            • empty.gif
              empty.gif
              line.gif
              empty.gif
              empty.gif
              join.gif
              if.gif
              (Owner of (Item being manipulated)) Not equal to Player 2 (Blue)
            • empty.gif
              empty.gif
              line.gif
              empty.gif
              empty.gif
              join.gif
              if.gif
              (Owner of (Item being manipulated)) Not equal to Player 3 (Teal)
            • empty.gif
              empty.gif
              line.gif
              empty.gif
              empty.gif
              join.gif
              if.gif
              (Owner of (Item being manipulated)) Not equal to Player 4 (Purple)
            • empty.gif
              empty.gif
              line.gif
              empty.gif
              empty.gif
              join.gif
              if.gif
              (Owner of (Item being manipulated)) Not equal to Player 5 (Yellow)
            • empty.gif
              empty.gif
              line.gif
              empty.gif
              empty.gif
              join.gif
              if.gif
              (Owner of (Item being manipulated)) Not equal to Player 6 (Orange)
            • empty.gif
              empty.gif
              line.gif
              empty.gif
              empty.gif
              join.gif
              if.gif
              (Owner of (Item being manipulated)) Not equal to Player 7 (Green)
            • empty.gif
              empty.gif
              line.gif
              empty.gif
              empty.gif
              join.gif
              if.gif
              (Owner of (Item being manipulated)) Not equal to Player 8 (Pink)
            • empty.gif
              empty.gif
              line.gif
              empty.gif
              empty.gif
              join.gif
              if.gif
              (Owner of (Item being manipulated)) Not equal to Player 9 (Gray)
            • empty.gif
              empty.gif
              line.gif
              empty.gif
              empty.gif
              join.gif
              if.gif
              (Owner of (Item being manipulated)) Not equal to Player 10 (Light Blue)
            • empty.gif
              empty.gif
              line.gif
              empty.gif
              empty.gif
              join.gif
              if.gif
              (Owner of (Item being manipulated)) Not equal to Player 11 (Dark Green)
            • empty.gif
              empty.gif
              line.gif
              empty.gif
              empty.gif
              joinbottom.gif
              if.gif
              (Owner of (Item being manipulated)) Not equal to Player 12 (Brown)
      • empty.gif
        empty.gif
        joinminus.gif
        actions.gif
        Then - Actions
        • empty.gif
          empty.gif
          line.gif
          joinbottom.gif
          item.gif
          Item - Change ownership of (Item being manipulated) to (Owner of (Hero manipulating item)) and Change color
      • empty.gif
        empty.gif
        joinbottomminus.gif
        actions.gif
        Else - Actions
        • empty.gif
          empty.gif
          empty.gif
          joinbottomminus.gif
          if.gif
          If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • empty.gif
            empty.gif
            empty.gif
            empty.gif
            joinminus.gif
            cond.gif
            If - Conditions
            • empty.gif
              empty.gif
              empty.gif
              empty.gif
              line.gif
              joinbottom.gif
              if.gif
              (Owner of (Item being manipulated)) Not equal to (Owner of (Hero manipulating item))
          • empty.gif
            empty.gif
            empty.gif
            empty.gif
            joinminus.gif
            actions.gif
            Then - Actions
            • empty.gif
              empty.gif
              empty.gif
              empty.gif
              line.gif
              joinbottom.gif
              hero.gif
              Hero - Drop (Item being manipulated) from (Hero manipulating item)
          • empty.gif
            empty.gif
            empty.gif
            empty.gif
            joinbottom.gif
            actions.gif
            Else - Actions

so i found this, but i get stuck after the first line...

how can i make conditions like that? and so many of them?
 
Status
Not open for further replies.
Top