# Bugg Looting Trigger ?

Status
Not open for further replies.

#### SpirulinaN

Level 4
Problem looting items

Hi guys, yesterday I added a trigger to my map that should let me to stack items, but today I seen that the looting... don''t work anymore at all, even if I disable the trigger. Please help me tell what to do with it My future version of the map should go out yesterday.

Here is the link to the map:
http://www.2shared.com/file/3GfEORP5/Zombie_Simulator_59.html

#### SpirulinaN

Level 4
Aquire:
• Events
• Unit - A unit Acquires an item
• Conditions
• (Charges remaining in (Item being manipulated)) Not equal to 0
• 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-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item being manipulated))
• (Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))) Less than (Item level of (Item carried by (Hero manipulating item) in slot (Integer A)))
• (Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)
• Then - Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• ((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))) + (Charges remaining in (Item being manipulated))) Greater than (Item level of (Item being manipulated))
• Then - Actions
• Item - Set charges remaining in (Item being manipulated) to (((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))) + (Charges remaining in (Item being manipulated))) - (Item level of (Item being manipulated)))
• Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A)) to (Item level of (Item being manipulated))
• Else - Actions
• Item - Set charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A)) to ((Charges remaining in (Item carried by (Hero manipulating item) in slot (Integer A))) + (Charges remaining in (Item being manipulated)))
• Item - Remove (Item being manipulated)
• Else - Actions
Split:
• Events
• Unit - A unit Is issued an order targeting an object
• Conditions
• Actions
• Custom script: set udg_order = GetIssuedOrderId()
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• order Greater than or equal to 852002
• order Less than or equal to 852007
• (Target item of issued order) Equal to (Item carried by (Ordered unit) in slot (order - 852001))
• (Charges remaining in (Target item of issued order)) Greater than 1
• Then - Actions
• Item - Set charges remaining in (Target item of issued order) to ((Charges remaining in (Target item of issued order)) - 1)
• Set Variable = (Position of (Ordered unit))
• Item - Create (Item-type of (Target item of issued order)) at Point
• Custom script: call RemoveLocation(udg_L)
• Item - Set charges remaining in (Last created item) to 1
• Else - Actions

Level 4

#### deathismyfriend

Level 29
For the aquifer loop try changing it to a custom variable for the loop integer a tends to have some odd bugs at times. And for the split trigger u should look at what location ur usi g and wat ur removing. U set the position to a variable tht u created but u don't use tht variable instead u use a different variable called point and then remove a different variable completely. This does not make sense

#### SpirulinaN

Level 4
Could this, modify the map main loot? I mean if the trigger is disabled. Can be still a problem with looting if i dont change that?

#### deathismyfriend

Level 29
Sry I'm not really sure wat ur asking for ?

#### SpirulinaN

Level 4
Sry I'm not really sure wat ur asking for ?

I wanna kill that trigger, delete it, but when i do that, problem is still there, I dont know what happened to the map when I activated that trigger....

#### SpirulinaN

Level 4
item loot was working well, before ...

#### deathismyfriend

Level 29
if the problem is still there then ur problem is not in this trigger it is in another trigger

Level 4

#### SpirulinaN

Level 4
Problem Solved, was something wrong on gameplay constants.

Status
Not open for further replies.

### Similar threads

Replies
1
Views
709
[Solved] Looting System
Replies
14
Views
923
Replies
2
Views
799
Replies
3
Views
592
[Unsolved] Loot and Validators
Replies
0
Views
727