System Item Stacking

white_mouse

New Member
Reaction score
1
[SIZE="+2"][System] Item Stacking[/SIZE]
[SIZE="+1"]
by white_mouse
[/SIZE]

Pros:
- Allows stacking item within a unit's inventory or hero's inventory.
- Allows units to buy item even when inventory is full.
- Allows units to pick up item even when inventory is full.
- This system is available in GUI.
Cons:
- Can't split item.
How to use:
1) In map view, go to File > Preferences... and tick "Automatically create unknown variables while pasting trigger data" under the General tab.
2) Copy the triggers in the "Item Stacking" folder to your Trigger Editor.
3) In map view, go to Advanced > Game interface look for:
3.1. "Text - Message - 'Inventory is full.'" and put in a single space as its value.
3.2. "Sound - Inventory Full" change it to FliesLoop.
4) Go to the Gameplay Constants: tick the "use custom gameplay constants", find the Follow Range - Item and change it to 150
5) Go to the trigger: Item Stacking Init to register items
Trigger:
  • Events
    • Map initialization.
    • Conditions
    • Actions
      • Set RS_ChargeItemCount = 0
      • ------------ Scroll of Town Portal -------------
      • Set RS_ChargeItemCount = (RS_ChargeItemCount + 1)
      • Set RB_Charge_Item[RS_ChargeItemCount] = Scroll of Town Portal (fake)
      • Set RS_Charge_Item[RS_ChargeItemCount] = Scroll of Town Portal (real)
      • ------------ register finished ------------------

Fake item: remove all abilities, set Use Automatically When Acquired = True

If you find any bugs, please tell me. :)
Attached file below is the demo map.
 

Attachments

  • [System] Item Staking.w3x
    37.8 KB · Views: 370
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