- Joined
- Jul 20, 2011
- Messages
- 1,273
Solved: by Dooomlord, Link to post
I am Making a Item crafting system compatible with item stacking system for my project, Jungle trolls Dynasty that am planning to share, and I need help making it work.
I couldn't mange to find what's wrong, please Help asap, +rep for any help
---System Download link: Here
I am Making a Item crafting system compatible with item stacking system for my project, Jungle trolls Dynasty that am planning to share, and I need help making it work.
I couldn't mange to find what's wrong, please Help asap, +rep for any help
-
ICS Setup
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


-------- Setting amount of crafting abilities\craftables --------
-


Set ICS_crafting_craftables_count = 5
-


-------- Setting the Message the shows if crafting fails --------
-


Set ICS_item_craft_failure_string = Failed to craft item.
-


-------- Setting if whether there is an Item Stacking system included --------
-


-------- There is an item stacking system included by Dangerb0y set --------
-


-------- to true if you will have item stacking system in your map, set --------
-


-------- to false if not --------
-


Set ICS_ItemStackingSystemIncluded = True
-


-------- -------- -------- -------- --------
-


-------- Settings recipe details #1 --------
-


-------- -------- -------- -------- --------
-


Set ICS_crafting_ability[1] = Craft ABL 1
-


Set ICS_req_item_A[1] = Claws of Attack +15
-


Set ICS_req_item_B[1] = Gem Fragment
-


Set ICS_item_result[1] = Blood Key
-


Set ICS_item_result_string[1] = Item, Blood Key
-


-------- -------- -------- -------- --------
-


-------- Settings recipe details #2 --------
-


-------- -------- -------- -------- --------
-


Set ICS_crafting_ability[2] = Craft ABL 2
-


Set ICS_req_item_A[2] = Crown of Kings +5
-


Set ICS_req_item_B[2] = Gerard's Lost Ledger
-


Set ICS_item_result[2] = Ghost Key
-


Set ICS_item_result_string[2] = Item, Ghost Key
-


-------- -------- -------- -------- --------
-


-------- Settings recipe details #3 --------
-


-------- -------- -------- -------- --------
-


Set ICS_crafting_ability[3] = Craft ABL 3
-


Set ICS_req_item_A[3] = Kelen's Dagger of Escape
-


Set ICS_req_item_B[3] = Heart of Aszune
-


Set ICS_item_result[3] = Moon Key
-


Set ICS_item_result_string[3] = Item, Moon Key
-


-------- -------- -------- -------- --------
-


-------- Settings recipe details #4 --------
-


-------- -------- -------- -------- --------
-


Set ICS_crafting_ability[4] = Craft ABL 4
-


Set ICS_req_item_A[4] = Mask of Death
-


Set ICS_req_item_B[4] = Horn of Cenarius
-


Set ICS_item_result[4] = Sun Key
-


Set ICS_item_result_string[4] = Item, Sun Key
-


-------- -------- -------- -------- --------
-


-------- Settings recipe details #5 --------
-


-------- -------- -------- -------- --------
-


Set ICS_crafting_ability[5] = Craft ABL 5
-


Set ICS_req_item_A[5] = Orb of Frost
-


Set ICS_req_item_B[5] = Keg of Thunderwater
-


Set ICS_item_result[5] = Magic Key Chain
-


Set ICS_item_result_string[5] = Item, Magic Key Chain
-
-
-
ICS Run
-

Events
-


Unit - A unit Begins casting an ability
-
-

Conditions
-

Actions
-


For each (Integer A) from 1 to ICS_crafting_craftables_count, do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Ability being cast) Equal to ICS_crafting_ability[(Integer A)]
-
-





Then - Actions
-






Set ICS_Unit = (Triggering unit)
-






Set ICS_item_int = (Integer A)
-






Trigger - Run ICS <gen> (checking conditions)
-






Skip remaining actions
-
-





Else - Actions
-
-
-
-
-
-
ICS
-

Events
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(ICS_Unit has an item of type ICS_req_item_A[ICS_item_int]) Equal to True
-




(ICS_Unit has an item of type ICS_req_item_B[ICS_item_int]) Equal to True
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






ICS_ItemStackingSystemIncluded Equal to True
-
-





Then - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Charges remaining in (Item carried by ICS_Unit of type ICS_req_item_A[ICS_item_int])) Greater than or equal to 2
-
-







Then - Actions
-








Item - Set charges remaining in (Item carried by ICS_Unit of type ICS_req_item_A[ICS_item_int]) to ((Charges remaining in (Item carried by ICS_Unit of type ICS_req_item_A[ICS_item_int])) - 1)
-
-







Else - Actions
-








Item - Remove (Item carried by ICS_Unit of type ICS_req_item_A[ICS_item_int])
-
-
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Charges remaining in (Item carried by ICS_Unit of type ICS_req_item_B[ICS_item_int])) Greater than or equal to 2
-
-







Then - Actions
-








Item - Set charges remaining in (Item carried by ICS_Unit of type ICS_req_item_B[ICS_item_int]) to ((Charges remaining in (Item carried by ICS_Unit of type ICS_req_item_B[ICS_item_int])) - 1)
-
-







Else - Actions
-








Item - Remove (Item carried by ICS_Unit of type ICS_req_item_B[ICS_item_int])
-
-
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








ICS_ItemStackingSystemIncluded Equal to False
-
-







Then - Actions
-








Item - Remove (Item carried by ICS_Unit of type ICS_req_item_A[ICS_item_int])
-








Item - Remove (Item carried by ICS_Unit of type ICS_req_item_B[ICS_item_int])
-
-







Else - Actions
-
-
-
-




Hero - Create ICS_item_result[ICS_item_int] and give it to ICS_Unit
-
-



Else - Actions
-
-
-
Attachments
Last edited:




