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

[Trigger] Need help with MUI

Status
Not open for further replies.
Level 9
Joined
Aug 27, 2009
Messages
473
Ok, so the problem looks simple and stuff.. But when i try this alone, it works perfect. But when i play with more people, it still works perfect for me, but ONLY for me. Ive looked over the Trigger a billion times, and cant see any problems... :S

So, the Dialog only shows for Player 1 (Red), and not for ANY other players!
This should work for 10 players. Please help me D:

  • Move boat
    • Events
      • Unit - A unit Is loaded into a transport
    • Conditions
      • (Unit-type of (Transporting unit)) Equal to Ship
    • Actions
      • For each (Integer vk_loop) from 1 to 10, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Loading unit)) Equal to (Player(vk_loop))
            • Then - Actions
              • Dialog - Change the title of where_to_go[vk_loop] to Where do you want t...
              • Dialog - Clear where_to_go[vk_loop]
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Dock 1 <gen> contains (Transporting unit)) Equal to True
                • Then - Actions
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Stay here
                  • Set dialogB_boat[(vk_loop + 10)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Unknown I...
                  • Set dialogB_boat[(vk_loop + 20)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Zombie Is...
                  • Set dialogB_boat[(vk_loop + 30)] = (Last created dialog Button)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Dock 2 <gen> contains (Transporting unit)) Equal to True
                • Then - Actions
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Stay here
                  • Set dialogB_boat[(vk_loop + 10)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Unknown I...
                  • Set dialogB_boat[(vk_loop + 20)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Home Isla...
                  • Set dialogB_boat[(vk_loop + 30)] = (Last created dialog Button)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Dock 3 <gen> contains (Transporting unit)) Equal to True
                • Then - Actions
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Stay here
                  • Set dialogB_boat[(vk_loop + 10)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Zombie Is...
                  • Set dialogB_boat[(vk_loop + 20)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Home Isla...
                  • Set dialogB_boat[(vk_loop + 30)] = (Last created dialog Button)
                • Else - Actions
              • Dialog - Show where_to_go[vk_loop] for (Owner of (Loading unit))
            • Else - Actions
      • Unit - Change ownership of (Transporting unit) to Neutral Passive and Change color
+REP WILL BE GIVEN TO ALL CORRECT ANSWERS
 
Level 9
Joined
Aug 27, 2009
Messages
473
Ive made a few changes, but still it does not work.. >.<

  • Move boat
    • Events
      • Unit - A unit Is loaded into a transport
    • Conditions
      • (Unit-type of (Transporting unit)) Equal to Ship
    • Actions
      • For each (Integer vk_loop) from 1 to 10, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Owner of (Loading unit)) Equal to (Player(vk_loop))
            • Then - Actions
              • Dialog - Clear where_to_go[vk_loop]
              • Dialog - Change the title of where_to_go[vk_loop] to Where do you want t...
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Dock 1 <gen> contains (Transporting unit)) Equal to True
                • Then - Actions
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Stay here
                  • Set dialogB_boat[(vk_loop + 10)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Unknown I...
                  • Set dialogB_boat[(vk_loop + 20)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Zombie Is...
                  • Set dialogB_boat[(vk_loop + 30)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Turtle Is...
                  • Set dialogB_boat[(vk_loop + 40)] = (Last created dialog Button)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Dock 2 <gen> contains (Transporting unit)) Equal to True
                • Then - Actions
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Stay here
                  • Set dialogB_boat[(vk_loop + 10)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Unknown I...
                  • Set dialogB_boat[(vk_loop + 20)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Home Isla...
                  • Set dialogB_boat[(vk_loop + 30)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Turtle Is...
                  • Set dialogB_boat[(vk_loop + 40)] = (Last created dialog Button)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Dock 3 <gen> contains (Transporting unit)) Equal to True
                • Then - Actions
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Stay here
                  • Set dialogB_boat[(vk_loop + 10)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Zombie Is...
                  • Set dialogB_boat[(vk_loop + 20)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Home Isla...
                  • Set dialogB_boat[(vk_loop + 30)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Turtle Is...
                  • Set dialogB_boat[(vk_loop + 40)] = (Last created dialog Button)
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Dock 4 <gen> contains (Transporting unit)) Equal to True
                • Then - Actions
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Stay here
                  • Set dialogB_boat[(vk_loop + 10)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Zombie Is...
                  • Set dialogB_boat[(vk_loop + 20)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Home Isla...
                  • Set dialogB_boat[(vk_loop + 30)] = (Last created dialog Button)
                  • Dialog - Create a dialog button for where_to_go[vk_loop] labelled Travel to Unknown I...
                  • Set dialogB_boat[(vk_loop + 40)] = (Last created dialog Button)
                • Else - Actions
                • Dialog - Show where_to_go[vk_loop] for (Player(vk_loop))
            • Else - Actions
      • Unit - Change ownership of (Transporting unit) to Neutral Passive and Change color
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Transporting unit) Equal to Ship 0015 <gen>
        • Then - Actions
          • Unit - Set sailer[1] movement speed to (Default movement speed of sailer[1])
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Transporting unit) Equal to Ship 0016 <gen>
        • Then - Actions
          • Unit - Set sailer[2] movement speed to (Default movement speed of sailer[2])
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Transporting unit) Equal to Ship 0014 <gen>
        • Then - Actions
          • Unit - Set sailer[3] movement speed to (Default movement speed of sailer[3])
        • Else - Actions
 
Status
Not open for further replies.
Top