Flamestrike
Events Unit - A unit Recives an Item
Conditions (Item-type of (Item being manipulated)) Equal to |cffFF4500Fire|r
and here i need some condition that checks number of items of type |cffFF4500Fire|r
because an Action needs 3 the same items
Actions
a unit receives an item
set INTEGERX = 0
for each integer A from 1 to 6
-if item in slot integer A is equal to orb
-then set INTEGERX = INTEGERX +1
-else do nothing
set level of ability for triggering unit to INTEGERX
INTEGERX is a variable of type "integer"
Flamestrike
Events Unit - A unit Recives an item
Conditions (Item-type of (Item being manipulated)) equal to |cffFF4500Fire|r
Actions Set Orb = 0
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 |cffFF4500Fire|r
Then - Actions Set Orb = (Orb + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions (Level of Flamestrike (Neutral Hostile) for (Triggering unit)) equal to 0
Then - Actions Unit - Add Flamestrike (Neutral Hostile) to (Triggering unit)
Else - Actions Unit - Increase level of Flamestrike (Neutral Hostile) for (Triggering unit)
Else - Actions
Flamestrike
Events
Unit - A unit Recives an item
Conditions
Or - Any (Conditions) are true
Conditions
(Item-type of (Item being manipulated)) equal to |cffFF4500Fire|r
(Item-type of (Item being manipulated)) equal to |cffFFFF66Light|r
(Item-type of (Item being manipulated)) equal to |cff0000FFWater|r
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) has an item of type |cffFF4500Fire|r) equal to True
((Triggering unit) has an item of type |cffFFFF66Light|r) equal to True
((Triggering unit) has an item of type |cff0000FFWater|r) equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Flamestrike (Neutral Hostile) for (Triggering unit)) equal to 0
Then - Actions
Unit - Add Flamestrike (Neutral Hostile) to (Triggering unit)
Item - Remove (Item carried by (Triggering unit) of type |cffFF4500Fire|r)
Item - Remove (Item carried by (Triggering unit) of type |cffFFFF66Light|r)
Item - Remove (Item carried by (Triggering unit) of type |cff0000FFWater|r)
Else - Actions
Unit - Increase level of Flamestrike (Neutral Hostile) for (Triggering unit)
Item - Remove (Item carried by (Triggering unit) of type |cffFF4500Fire|r)
Item - Remove (Item carried by (Triggering unit) of type |cffFFFF66Light|r)
Item - Remove (Item carried by (Triggering unit) of type |cff0000FFWater|r)
Else - Actions
nono...
I think you just said that without actually understanding what my code did, because technically it would have potentially solved your problem already :/
Copy my code, and remove the first If-Then-Else (the one with the condition - Orbs is Greater than or equal to 2), change Volcano to Flame Strike, and remove the Increase level.
Fire, Water, Earth, Storm, Energy, Light, Darkinteresting. should have said so earlier.
it's definitely doable.
write down each and every orb, and spells with their corresponding orb combination.
please note that you can have only 2 abilities max if you choose to use the inventory as a reference.
Flamestrike
Events
Unit - A unit Recives an item
Conditions
(Item-type of (Item being manipulated)) equal to |cffFF4500Fire|r
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 (Triggering unit) in slot (Integer A))) equal to |cffFF4500Fire|r
Then - Actions
Set Orb = (Orb + 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Orb equal to 3
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Flamestrike (Neutral Hostile) for (Triggering unit)) equa; to Then - Actions
Unit - Add Flamestrike (Neutral Hostile) to (Triggering unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Codnitions
(Level of Flamestrike (Neutral Hostile) for (Triggering unit)) less than 5
Then - Actions
Unit - Increase level of Flamestrike (Neutral Hostile) for (Triggering unit)
Else - Actions
Set Orb = 0
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 |cffFF4500Fire|r
Then - Actions
Set Orb = (Orb + 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Orb equal to 3
Then - Actions
......