- Joined
- Jun 20, 2017
- Messages
- 380
I have these triggers that crashes!
It basically splits and combines items!
And I have a toggle ability that can split or combine them!
Which I think it is because of Tasyen system that I messed up somewhere! not sure!
Combining Items of the same type.
It basically splits and combines items!
And I have a toggle ability that can split or combine them!
Which I think it is because of Tasyen system that I messed up somewhere! not sure!
Combining Items of the same type.
-
Crown of Kings
-

Events
-


Unit - A unit Acquires an item
-
-

Conditions
-


(Item-type of (Item being manipulated)) Equal to Mask of Death
-
-

Actions
-


-------- Loop inventory of Hero --------
-


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



Loop - Actions
-




-------- Is the ItemType at Slot 1/2/3/4/5/6 =the same as the gained? --------
-




-------- But not the gained --------
-




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





If - Conditions
-






(Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Mask of Death
-






(Item carried by (Triggering unit) in slot (Integer A)) Not equal to (Item being manipulated)
-
-





Then - Actions
-






Item - Remove (Item carried by (Triggering unit) of type Mask of Death)
-






Hero - Create Crown of Kings +5 and give it to (Triggering unit)
-






Hero - Create Crown of Kings +5 and give it to (Triggering unit)
-






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






Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Items\AIem\AIemTarget.mdl
-






Special Effect - Destroy (Last created special effect)
-






-------- End THis Trigger --------
-






Skip remaining actions
-
-





Else - Actions
-
-
-
-
-
-
Mask of Death
-

Events
-


Unit - A unit Acquires an item
-
-

Conditions
-


(Item-type of (Item being manipulated)) Equal to Crown of Kings +5
-
-

Actions
-


-------- Loop inventory of Hero --------
-


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



Loop - Actions
-




-------- Is the ItemType at Slot 1/2/3/4/5/6 =the same as the gained? --------
-




-------- But not the gained --------
-




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





If - Conditions
-






(Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Crown of Kings +5
-






(Item carried by (Triggering unit) in slot (Integer A)) Not equal to (Item being manipulated)
-
-





Then - Actions
-






Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
-






Item - Remove (Item carried by (Triggering unit) of type Crown of Kings +5)
-






Hero - Create Mask of Death and give it to (Triggering unit)
-






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






Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Items\AIem\AIemTarget.mdl
-






Special Effect - Destroy (Last created special effect)
-






-------- End THis Trigger --------
-






Skip remaining actions
-
-





Else - Actions
-
-
-
-
-
-
Fuse Same Items init
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Set VariableSet FSI_Index = -1
-


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


-------- Ring of the Hell Lords --------
-


Set VariableSet FSI_Index = (FSI_Index + 1)
-


Set VariableSet FSI_Amount[FSI_Index] = 2
-


Set VariableSet FSI_Material[FSI_Index] = Ring of the Hell Lords
-


Set VariableSet FSI_Target[FSI_Index] = Vampiric Ring
-


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


-------- Next item --------
-


-------- Demonic Remains --------
-


Set VariableSet FSI_Index = (FSI_Index + 1)
-


Set VariableSet FSI_Amount[FSI_Index] = 2
-


Set VariableSet FSI_Material[FSI_Index] = Demonic Remains1
-


Set VariableSet FSI_Target[FSI_Index] = Vladimir's Remains
-


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


Set VariableSet FSI_Index = (FSI_Index + 1)
-


Set VariableSet FSI_Amount[FSI_Index] = 2
-


Set VariableSet FSI_Material[FSI_Index] = Demonic Remains2
-


Set VariableSet FSI_Target[FSI_Index] = Vladimir's Remains
-


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


Set VariableSet FSI_Index = (FSI_Index + 1)
-


Set VariableSet FSI_Amount[FSI_Index] = 2
-


Set VariableSet FSI_Material[FSI_Index] = Demonic Remains3
-


Set VariableSet FSI_Target[FSI_Index] = Vladimir's Remains
-
-
-
Fuse Same Items
-

Events
-


Unit - A unit Acquires an item
-


Unit - A unit Uses an item
-
-

Conditions
-


Or - Any (Conditions) are true
-



Conditions
-




(Item-type of (Item being manipulated)) Equal to Ring of the Hell Lords
-




(Item-type of (Item being manipulated)) Equal to Demonic Remains1
-




(Item-type of (Item being manipulated)) Equal to Demonic Remains2
-




(Item-type of (Item being manipulated)) Equal to Demonic Remains3
-
-
-
-

Actions
-


Set VariableSet FSI_ItemType = (Item-type of (Item being manipulated))
-


Set VariableSet FSI_Counter = 0
-


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


-------- Loop inventory of Hero --------
-


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



Loop - Actions
-




-------- Is the ItemType at Slot 1/2/3/4/5/6 = the same as the gained? --------
-




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





If - Conditions
-






(Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to FSI_ItemType
-
-





Then - Actions
-






-------- Yes increase Counter for each found type --------
-






Set VariableSet FSI_Counter = (FSI_Counter + 1)
-
-





Else - Actions
-
-
-
-


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


For each (Integer B) from 0 to FSI_Index, do (Actions)
-



Loop - Actions
-




-------- Find the Right Fusion and check if needed amount of Mats is available --------
-




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





If - Conditions
-






FSI_ItemType Equal to FSI_Material[(Integer B)]
-






FSI_Counter Greater than or equal to FSI_Amount[(Integer B)]
-
-





Then - Actions
-






-------- Fuse --------
-






-------- Amount of items to destroy --------
-






Set VariableSet FSI_Counter = FSI_Amount[(Integer B)]
-






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






-------- Destroy and Count down --------
-






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 (Triggering unit) in slot (Integer A))) Equal to FSI_ItemType
-










FSI_Counter Greater than 0
-
-









Then - Actions
-










Set VariableSet FSI_Counter = (FSI_Counter - 1)
-










Item - Remove (Item carried by (Triggering unit) in slot (Integer A))
-
-









Else - Actions
-
-
-
-






Hero - Create FSI_Target[(Integer B)] and give it to (Triggering unit)
-






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






Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Items\AIem\AIemTarget.mdl
-






Set VariableSet LastCreatedSpecialEffect = (Last created special effect)
-






Special Effect - Destroy LastCreatedSpecialEffect
-
-





Else - Actions
-
-
-
-
-
Last edited:

