Item Charge Miscellaneous

ryerye1996

Cool Member
Reaction score
5
Is there a way to increase the charges of a Miscellaneous item? Because
for some reason, this trigger doesnt work.....
Charges
Events
Unit - A unit Acquires an item
Conditions
(Item-class of (Item being manipulated)) Equal to Miscellaneous
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
(Charges remaining in (Item carried by (Triggering unit) of type (Item-type of (Item being manipulated)))) Greater than or equal to 1
(Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to (Item-type of (Item being manipulated))
(Item carried by (Triggering unit) in slot (Integer A)) Not equal to (Item being manipulated)
Then - Actions
Item - Set charges remaining in (Item carried by (Triggering unit) in slot (Integer A)) to ((Charges remaining in (Item carried by (Triggering unit) in slot (Integer A))) + (Charges remaining in (Item being manipulated)))
Item - Remove (Item being manipulated)
Else - Actions
 

RangerX

I am justice!
Reaction score
69
i haven't tesed but this is something flufy :))

Code:
(Item-type of (Item carried by (Triggering unit) in slot (Integer A))) [B]Equal to[/B] (Item-type of (Item being manipulated))
(Item carried by (Triggering unit) in slot (Integer A)) [B]Not equal to[/B] (Item being manipulated)

edit:
sorry my bad now i see what it must do :| ..
 

ryerye1996

Cool Member
Reaction score
5
Here Is the new trigger but it still doesn't work?!?!?!?!?

Trigger:
  • Charges
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to Miscellaneous
    • 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
              • (Charges remaining in (Item carried by (Triggering unit) of type (Item-type of (Item being manipulated)))) Greater than or equal to 1
              • (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to (Item-type of (Item being manipulated))
              • (Item carried by (Triggering unit) in slot (Integer A)) Not equal to (Item being manipulated)
            • Then - Actions
              • Item - Set charges remaining in (Item carried by (Triggering unit) in slot (Integer A)) to ((Charges remaining in (Item carried by (Triggering unit) in slot (Integer A))) + (Charges remaining in (Item being manipulated)))
              • Item - Remove (Item being manipulated)
            • Else - Actions
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
Trigger:
  • Untitled Trigger 006
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • Set charges = (Charges remaining in (Item being manipulated))
      • 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-type of (Item being manipulated)) Equal to (Item-type of (Item carried by (Triggering unit) in slot (Integer A)))
              • (Item being manipulated) Not equal to (Item carried by (Triggering unit) in slot (Integer A))
            • Then - Actions
              • Item - Set charges remaining in (Item carried by (Triggering unit) in slot (Integer A)) to ((Charges remaining in (Item carried by (Triggering unit) in slot (Integer A))) + charges)
              • Item - Remove (Item being manipulated)
            • Else - Actions

Works... Basically the same trigger. Sure you pick up an item that matches the condition of yours (a miscellaneous item)?

Also; the first condition of those 3 within the if-then-else... Remove it? :)
 
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