Stupid WE

ShadowInTheD

Active Member
Reaction score
12
I'm baffled by this... It seems World Editor glitched or something...

Anyway, 2 problems.....

1) When I remove all items from a hero, (AKA Remove item 1, remove item 2, etc) it removes all but the first item, the first item gets dropped.

2) (completely unrelated to 1)) On red, this works fine (It removes all items), but on any other, it only removes 4 5 and 6. I use "Triggering Unit" for all of it... it's all 100% MUI, but it's doing retarded things...
 

ShadowInTheD

Active Member
Reaction score
12
Problem 1)

Trigger:
  • Item-Remove (Item carried by (Triggering unit) in slot 1)


Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Item-type of (Item being manipulated)) Equal to Equipment Page 1
    • Then - Actions
      • Item - Make (Item carried by (Triggering unit) in slot 1) Droppable
      • Set InventoryItemCount[(Player number of (Triggering player))] = (InventoryItemCount[(Player number of (Triggering player))] + 6)
      • Item - Remove (Item carried by (Triggering unit) in slot 1)
      • Item - Remove (Item carried by (Triggering unit) in slot 2)
      • Item - Remove (Item carried by (Triggering unit) in slot 3)
      • Item - Remove (Item carried by (Triggering unit) in slot 4)
      • Item - Remove (Item carried by (Triggering unit) in slot 5)
      • Item - Remove (Item carried by (Triggering unit) in slot 6)
      • Item - Create Equipment Page 2 at HeroLoc[(Player number of (Triggering player))]
      • Hero - Give (Last created item) to (Triggering unit)
      • Item - Make (Item carried by (Triggering unit) in slot 1) Undroppable
      • For each (Integer A) from 7 to 11, do (Actions)
        • Loop - Actions
          • Item - Create ItemSlotNumber[((Integer A) x (((Player number of (Triggering player)) - 1) x 22))] at HeroLoc[(Player number of (Triggering player))]
          • Hero - Give (Last created item) to (Triggering unit)
          • Item - Make (Item carried by (Triggering unit) in slot ((Integer A) - 5)) Undroppable
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Equipment Page 2
      • Then - Actions
        • Item - Make (Item carried by (Triggering unit) in slot 1) Droppable
        • Set InventoryItemCount[(Player number of (Triggering player))] = (InventoryItemCount[(Player number of (Triggering player))] + 6)
        • Item - Remove (Item carried by (Triggering unit) in slot 1)
        • Item - Remove (Item carried by (Triggering unit) in slot 2)
        • Item - Remove (Item carried by (Triggering unit) in slot 3)
        • Item - Remove (Item carried by (Triggering unit) in slot 4)
        • Item - Remove (Item carried by (Triggering unit) in slot 5)
        • Item - Remove (Item carried by (Triggering unit) in slot 6)
        • Item - Create Equipment Page 3 at HeroLoc[(Player number of (Triggering player))]
        • Hero - Give (Last created item) to (Triggering unit)
        • Item - Make (Item carried by (Triggering unit) in slot 1) Undroppable
        • For each (Integer A) from 12 to 16, do (Actions)
          • Loop - Actions
            • Item - Create ItemSlotNumber[((Integer A) x (((Player number of (Triggering player)) - 1) x 22))] at HeroLoc[(Player number of (Triggering player))]
            • Hero - Give (Last created item) to (Triggering unit)
            • Item - Make (Item carried by (Triggering unit) in slot ((Integer A) - 10)) Undroppable
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Equipment Page 3
      • Then - Actions
        • Item - Make (Item carried by (Triggering unit) in slot 1) Droppable
        • Set InventoryItemCount[(Player number of (Triggering player))] = (InventoryItemCount[(Player number of (Triggering player))] + 6)
        • Item - Remove (Item carried by (Triggering unit) in slot 1)
        • Item - Remove (Item carried by (Triggering unit) in slot 2)
        • Item - Remove (Item carried by (Triggering unit) in slot 3)
        • Item - Remove (Item carried by (Triggering unit) in slot 4)
        • Item - Remove (Item carried by (Triggering unit) in slot 5)
        • Item - Remove (Item carried by (Triggering unit) in slot 6)
        • Item - Create Equipment Page 1 at HeroLoc[(Player number of (Triggering player))]
        • Hero - Give (Last created item) to (Triggering unit)
        • Item - Make (Item carried by (Triggering unit) in slot 1) Undroppable
        • For each (Integer A) from 17 to 21, do (Actions)
          • Loop - Actions
            • Item - Create ItemSlotNumber[((Integer A) x (((Player number of (Triggering player)) - 1) x 22))] at HeroLoc[(Player number of (Triggering player))]
            • Hero - Give (Last created item) to (Triggering unit)
            • Item - Make (Item carried by (Triggering unit) in slot ((Integer A) - 15)) Undroppable
      • Else - Actions


Problem 2)

Only removing last 3 out of six for all colors but red, for which it removes 6 out of 6...

Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Ability being cast) Equal to Inventory
    • Then - Actions
      • Item - Make (Item carried by (Triggering unit) in slot 1) Droppable
      • Set InventoryItemCount[(Player number of (Triggering player))] = (InventoryItemCount[(Player number of (Triggering player))] + 6)
      • Item - Remove (Item carried by (Triggering unit) in slot 1)
      • Item - Remove (Item carried by (Triggering unit) in slot 2)
      • Item - Remove (Item carried by (Triggering unit) in slot 3)
      • Item - Remove (Item carried by (Triggering unit) in slot 4)
      • Item - Remove (Item carried by (Triggering unit) in slot 5)
      • Item - Remove (Item carried by (Triggering unit) in slot 6)
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Item - Create ItemSlotNumber[((Integer A) x (((Player number of (Triggering player)) - 1) x 22))] at HeroLoc[(Player number of (Triggering player))]
          • Hero - Give (Last created item) to (Triggering unit)
    • Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top