Yet another item trigger problem

tonton302

Member
Reaction score
0
Can anyone give me a trigger that wuld make it able for a unit to only use 1 type of each weapon?

Ex. A unit can only hold 1 weapon, shield, gloves, helm, ring, and armor.

so if the unit tries to pick up 2 weapons it drps the second 1 tht is tried to be picked up?

I hope u can help:)
 

tooltiperror

Super Moderator
Reaction score
231
The solution lies with Item Classes, this trigger should explain it. (leaks) Just make all shields artifacts, for example, and all swords some other type. Or you could loop through an array and check the rawcode of each item and do a comparison.

Trigger:
  • Types
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • 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 Tome of Artifact
              • (Item-class of (Item being manipulated)) Equal to Artifact
            • Then - Actions
              • Unit - Order (Triggering unit) to drop (Item being manipulated) at (Position of Unit(Triggering unit))
            • Else - Actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top