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

-Drop command is glitched, very strangely, also, -give?

Status
Not open for further replies.
Ok, i'll just jump to it, i have a drop command, it's basically:
  • drop
    • Events
      • Player - Player 1 (Red) types a chat message containing -drop as An exact match
      • Player - Player 2 (Blue) types a chat message containing -drop as An exact match
      • Player - Player 3 (Teal) types a chat message containing -drop as An exact match
      • Player - Player 4 (Purple) types a chat message containing -drop as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -drop as An exact match
      • Player - Player 6 (Orange) types a chat message containing -drop as An exact match
      • Player - Player 7 (Green) types a chat message containing -drop as An exact match
      • Player - Player 8 (Pink) types a chat message containing -drop as An exact match
      • Player - Player 9 (Gray) types a chat message containing -drop as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -drop as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -drop as An exact match
      • Player - Player 12 (Brown) types a chat message containing -drop as An exact match
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
        • Loop - Actions
          • For each (Integer Integer) from 1 to 6, do (Actions)
            • Loop - Actions
              • Hero - Drop (Item carried by (Picked unit) in slot Integer) from (Picked unit)
Now, this drops everything, but every once in a while, it freezes a random player's hero, making it so they have to select another widget then select their hero again, this is annoying, as this -drop command is used alot. I'm just wondering, what causes this, and is there a way to make it stop?

Also, i have a -give command, it works, but only for player 1, here it is
  • give
    • Events
      • Player - Player 1 (Red) types a chat message containing -Give as An exact match
      • Player - Player 2 (Blue) types a chat message containing -Give as An exact match
      • Player - Player 3 (Teal) types a chat message containing -Give as An exact match
      • Player - Player 4 (Purple) types a chat message containing -Give as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -Give as An exact match
      • Player - Player 6 (Orange) types a chat message containing -Give as An exact match
      • Player - Player 7 (Green) types a chat message containing -Give as An exact match
      • Player - Player 8 (Pink) types a chat message containing -Give as An exact match
      • Player - Player 9 (Gray) types a chat message containing -Give as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -Give as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -Give as An exact match
      • Player - Player 12 (Brown) types a chat message containing -Give as An exact match
    • Conditions
    • Actions
      • Dialog - Change the title of GiveDialog to Give units to:
      • Dialog - Create a dialog button for GiveDialog labelled Red
      • Set GiveDialogButton[0] = (Last created dialog Button)
      • Dialog - Create a dialog button for GiveDialog labelled Blue
      • Set GiveDialogButton[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for GiveDialog labelled Teal
      • Set GiveDialogButton[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for GiveDialog labelled Purple
      • Set GiveDialogButton[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for GiveDialog labelled Yellow
      • Set GiveDialogButton[4] = (Last created dialog Button)
      • Dialog - Create a dialog button for GiveDialog labelled Orange
      • Set GiveDialogButton[5] = (Last created dialog Button)
      • Dialog - Create a dialog button for GiveDialog labelled Green
      • Set GiveDialogButton[6] = (Last created dialog Button)
      • Dialog - Create a dialog button for GiveDialog labelled Pink
      • Set GiveDialogButton[7] = (Last created dialog Button)
      • Dialog - Create a dialog button for GiveDialog labelled Grey
      • Set GiveDialogButton[8] = (Last created dialog Button)
      • Dialog - Create a dialog button for GiveDialog labelled Light blue
      • Set GiveDialogButton[9] = (Last created dialog Button)
      • Dialog - Create a dialog button for GiveDialog labelled Dark green
      • Set GiveDialogButton[10] = (Last created dialog Button)
      • Dialog - Create a dialog button for GiveDialog labelled Brown
      • Set GiveDialogButton[11] = (Last created dialog Button)
      • Dialog - Create a dialog button for GiveDialog labelled Cancel
      • Set GiveDialogButton[12] = (Last created dialog Button)
      • Dialog - Show GiveDialog for (Triggering player)
  • GiveDialog
    • Events
      • Dialog - A dialog button is clicked for GiveDialog
    • Conditions
    • Actions
      • For each (Integer A) from 0 to 11, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to GiveDialogButton[(Integer A)]
            • Then - Actions
              • Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
                • Loop - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • ((Picked unit) is A Hero) Equal to False
                      • (Owner of (Picked unit)) Equal to (Triggering player)
                    • Then - Actions
                      • Unit - Change ownership of (Picked unit) to (Player(((Integer A) + 1))) and Change color
                    • Else - Actions
            • Else - Actions
Thanks for reading this.
 
I know how to do that with the jass interface, i'm just too lazy to do it, considering this map has over 5100 doodads, it takes a while to save for 1 little syntax error, so i stay with the gui for a while, and does that actually fix any problems?

by "Freeze" i mean it doesn't stop, if you've ordered it to move, it just keeps going and ignores all orders given to it, as in, you can press the button, then press the place, or whatever, but it just doesn't respond

it's like infinite delay.
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
That won't fix problems, no, it will just make it easier for you to change the text that is filtered. But again, what do you mean by:

ikillforeyou said:
it freezes a random player's hero

Also, do you have any events that respond when a unit drops/acquires an item?
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
I posted before you edited your post.

Can you upload your map? The only thing that could be interrupting orders is this line "Hero - Drop (Item carried by (Picked unit) in slot Integer) from (Picked unit)"; it orders the hero to drop an item at the owner's location.
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
Actually if you had any problems with other events then your WarCraft III would simply be crashing immediately. I really need to see whats going on though to be able to help you I really don't know of any known issues that could be causing this to function improperly.
 
Status
Not open for further replies.
Top