R
Rikkator
Guest
Greetings once again! >_<
Heptameron wrote a trigger a few days ago that does the following:
Create seperate groups of items and limits the hero to carrying 1(or more, depends) of each item... HOWEVER! it doesn't seem to work right!
seeing as Heptameron is busy, he agreed for me to post it here for help(Didn't want to publish it without his approvel, of course.)
It doesnt seem to have any effect >.<.....
I might have copied it wrong though, but ive looked through the trigger a few times and it all seems fine to me(Though im a moron so I probbably got it wrong
)
So here it is!....
Heptameron wrote a trigger a few days ago that does the following:
Create seperate groups of items and limits the hero to carrying 1(or more, depends) of each item... HOWEVER! it doesn't seem to work right!
seeing as Heptameron is busy, he agreed for me to post it here for help(Didn't want to publish it without his approvel, of course.)
It doesnt seem to have any effect >.<.....
I might have copied it wrong though, but ive looked through the trigger a few times and it all seems fine to me(Though im a moron so I probbably got it wrong
So here it is!....
Item Exclusion By Heptameron
Events
Unit - A unit Acquires an item
Conditions
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
Set IE_CurrentItemType = (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A)))
-------- Helms --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
IE_CurrentItemType Equal to Crown of Kings +5
IE_CurrentItemType Equal to Mask of Death
Then - Actions
Set IE_TypeCount[1] = (IE_TypeCount[1] + 1)
Else - Actions
-------- Weapons --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
IE_CurrentItemType Equal to Maul of Strength
IE_CurrentItemType Equal to Searing Blade
Then - Actions
Set IE_TypeCount[2] = (IE_TypeCount[2] + 1)
Else - Actions
-------- Orbs --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
IE_CurrentItemType Equal to Orb of Fire
IE_CurrentItemType Equal to Orb of Corruption
Then - Actions
Set IE_TypeCount[3] = (IE_TypeCount[3] + 1)
Else - Actions
If (IE_TypeCount[1] Greater than 1) then do (Hero - Drop (Item being manipulated) from (Hero manipulating item)) else do (Do nothing)
If (IE_TypeCount[2] Greater than 1) then do (Hero - Drop (Item being manipulated) from (Hero manipulating item)) else do (Do nothing)
If (IE_TypeCount[3] Greater than 1) then do (Hero - Drop (Item being manipulated) from (Hero manipulating item)) else do (Do nothing)
For each (Integer A) from 1 to 3, do (Actions)
Loop - Actions
Set IE_TypeCount[(Integer A)] = 0


