1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

One Player Item Pickup

Discussion in 'World Editor Help Zone' started by Ragnar9, Feb 4, 2019.

Tags:
  1. Ragnar9

    Ragnar9

    Joined:
    Jan 15, 2018
    Messages:
    88
    Resources:
    0
    Resources:
    0
    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.
     
  2. mogulkhan1Axe

    mogulkhan1Axe

    Joined:
    Nov 9, 2011
    Messages:
    280
    Resources:
    2
    Spells:
    2
    Resources:
    2
    Best way to do it is to change ownership of the item to that Specific player. And if other player picks it up you check if it belongs to that player. If it does> u do nothing, if it doesnt > drop it from the unit.
     
  3. Tasyen

    Tasyen

    Joined:
    Jul 18, 2010
    Messages:
    1,420
    Resources:
    18
    Tools:
    2
    Maps:
    3
    Spells:
    8
    Tutorials:
    4
    JASS:
    1
    Resources:
    18
    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)
     
  4. Ragnar9

    Ragnar9

    Joined:
    Jan 15, 2018
    Messages:
    88
    Resources:
    0
    Resources:
    0
    tem ownership
    • [​IMG][​IMG]Events
      • [​IMG][​IMG][​IMG]Unit - A unit Acquires an item
    • [​IMG][​IMG]Conditions
    • [​IMG][​IMG]Actions
      • [​IMG][​IMG][​IMG]If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • [​IMG][​IMG][​IMG][​IMG]If - Conditions
          • [​IMG][​IMG][​IMG][​IMG][​IMG]And - All (Conditions) are true
            • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG]Conditions
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG](Owner of (Item being manipulated)) Not equal to Player 1 (Red)
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG](Owner of (Item being manipulated)) Not equal to Player 2 (Blue)
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG](Owner of (Item being manipulated)) Not equal to Player 3 (Teal)
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG](Owner of (Item being manipulated)) Not equal to Player 4 (Purple)
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG](Owner of (Item being manipulated)) Not equal to Player 5 (Yellow)
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG](Owner of (Item being manipulated)) Not equal to Player 6 (Orange)
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG](Owner of (Item being manipulated)) Not equal to Player 7 (Green)
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG](Owner of (Item being manipulated)) Not equal to Player 8 (Pink)
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG](Owner of (Item being manipulated)) Not equal to Player 9 (Gray)
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG](Owner of (Item being manipulated)) Not equal to Player 10 (Light Blue)
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG](Owner of (Item being manipulated)) Not equal to Player 11 (Dark Green)
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG](Owner of (Item being manipulated)) Not equal to Player 12 (Brown)
        • [​IMG][​IMG][​IMG][​IMG]Then - Actions
          • [​IMG][​IMG][​IMG][​IMG][​IMG]Item - Change ownership of (Item being manipulated) to (Owner of (Hero manipulating item)) and Change color
        • [​IMG][​IMG][​IMG][​IMG]Else - Actions
          • [​IMG][​IMG][​IMG][​IMG][​IMG]If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG]If - Conditions
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG](Owner of (Item being manipulated)) Not equal to (Owner of (Hero manipulating item))
            • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG]Then - Actions
              • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG][​IMG]Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • [​IMG][​IMG][​IMG][​IMG][​IMG][​IMG]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?