[Help *-*] Item Stack (i think this is the name)

eclypt

New Member
Reaction score
4
Heya! i'm in a mini rush! :D i'm almost finish my game :D so let's take it on! :D

i'm looking for : "How to "Limit" the Hero's Iventory with only one Weapon-Item-Type"

i know it's possible :D how i do it ? :D
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Trigger:
  • Untitled Trigger 001
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to Purchasable
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-class of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Purchasable
            • Then - Actions
              • Set Item_Owner = (Owner of (Triggering unit))
              • Item - Create (Item-type of (Item being manipulated)) at (Position of (Triggering unit))
              • Item - Remove (Item being manipulated)
              • Game - Display to (Player group(Item_Owner)) the text: You can only carry ...
            • Else - Actions

This MIGHT work but its 50% freehand.
 

eclypt

New Member
Reaction score
4
no, i don't love edit (XD) this trigger won't work :/ or i'm doing something wrong
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Trigger:
  • Weapon Limit
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to Purchasable
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Purchasable
                  • Carried_Weapons[(Player number of (Owner of (Hero manipulating item)))] Equal to 2
            • Then - Actions
              • Item - Remove (Item being manipulated)
              • Set Message_Player = (Owner of (Hero manipulating item))
              • Quest - Display to (All players matching ((Matching player) Equal to (Owner of (Hero manipulating item)))) the Quest Update message: You cannot have more than 2 weapons!
            • Else - Actions
              • Set Carried_Weapons[(Player number of (Owner of (Hero manipulating item)))] = (Carried_Weapons[(Player number of (Owner of (Hero manipulating item)))] + 1)
 
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