- Joined
- Nov 18, 2012
- Messages
- 272
[Solved] Trigger Causes Crash
What's wrong with it?
-
Backpacks and Pouches
-
Events
- Unit - A unit Acquires an item
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Backpack
- (Item-type of (Item being manipulated)) Equal to Pouch
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to Pouch
- (Level of Inventory (Simple) for (Hero manipulating item)) Equal to 1
-
Then - Actions
-
For each (Integer Inventory) from 1 to 2, do (Actions)
-
Loop - Actions
- Set Item[Inventory] = (Item carried by (Hero manipulating item) in slot Inventory)
- Hero - Drop Item[Inventory] from (Hero manipulating item)
-
Loop - Actions
- Unit - Remove Inventory (Simple) from (Hero manipulating item)
- Unit - Add Inventory (BackPack 1) to (Hero manipulating item)
-
For each (Integer Inventory) from 1 to 2, do (Actions)
-
Loop - Actions
- Hero - Give Item[Inventory] to (Hero manipulating item)
- Set Item[Inventory] = No item
-
Loop - Actions
-
For each (Integer Inventory) from 1 to 2, do (Actions)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to Backpack
- (Level of Inventory (Simple) for (Hero manipulating item)) Equal to 1
-
Then - Actions
-
For each (Integer Inventory) from 1 to 4, do (Actions)
-
Loop - Actions
- Set Item[Inventory] = (Item carried by (Hero manipulating item) in slot Inventory)
- Hero - Drop Item[Inventory] from (Hero manipulating item)
-
Loop - Actions
- Unit - Remove Inventory (Simple) from (Hero manipulating item)
- Unit - Add Inventory (BackPack 2) to (Hero manipulating item)
-
For each (Integer Inventory) from 1 to 4, do (Actions)
-
Loop - Actions
- Hero - Give Item[Inventory] to (Hero manipulating item)
- Set Item[Inventory] = No item
-
Loop - Actions
-
For each (Integer Inventory) from 1 to 4, do (Actions)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-type of (Item being manipulated)) Equal to Backpack
- (Level of Inventory (BackPack 1) for (Hero manipulating item)) Equal to 1
-
Then - Actions
-
For each (Integer Inventory) from 1 to 4, do (Actions)
-
Loop - Actions
- Set Item[Inventory] = (Item carried by (Hero manipulating item) in slot Inventory)
- Hero - Drop Item[Inventory] from (Hero manipulating item)
-
Loop - Actions
- Unit - Remove Inventory (BackPack 1) from (Hero manipulating item)
- Unit - Add Inventory (BackPack 2) to (Hero manipulating item)
-
For each (Integer Inventory) from 1 to 4, do (Actions)
-
Loop - Actions
- Hero - Give Item[Inventory] to (Hero manipulating item)
- Set Item[Inventory] = No item
-
Loop - Actions
-
For each (Integer Inventory) from 1 to 4, do (Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
What's wrong with it?
Last edited: