- Joined
- Sep 12, 2008
- Messages
- 657
Okay, so i made this code.. its suposed to cheak if you have all 6 items.. and i want it in 1 trigger :/ and quick..
if you have all items, its suposed to give a spell,
i made an extra trigger, that each 1 second, it clears screen, and write the "solarian set amount" value.. it allways showed 0.. and each time you wore 4 items out of the 5, it gave the ability.. instead of 5 items out of 5..
Hope you can help :/
if you have all items, its suposed to give a spell,
i made an extra trigger, that each 1 second, it clears screen, and write the "solarian set amount" value.. it allways showed 0.. and each time you wore 4 items out of the 5, it gave the ability.. instead of 5 items out of 5..
-
Solarian set Aquire
-

Events
-


Unit - A unit Acquires an item
-
-

Conditions
-

Actions
-


Set SolarianSetAquirer = (Hero manipulating item)
-


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
-






Or - Any (Conditions) are true
-







Conditions
-








(Item-type of (Item carried by SolarianSetAquirer in slot (Integer A))) Equal to Solarian Hood
-








(Item-type of (Item carried by SolarianSetAquirer in slot (Integer A))) Equal to Solarian Pants
-








(Item-type of (Item carried by SolarianSetAquirer in slot (Integer A))) Equal to Solarian Ring 2
-








(Item-type of (Item carried by SolarianSetAquirer in slot (Integer A))) Equal to Solarian Ring 1
-








(Item-type of (Item carried by SolarianSetAquirer in slot (Integer A))) Equal to Solarian Amulet
-
-
-
-





Then - Actions
-






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







If - Conditions
-








SolarianSetAmount[(Player number of (Owner of SolarianSetAquirer))] Greater than or equal to 9
-
-







Then - Actions
-








Unit - Add Solarian Set Abilities to SolarianSetAquirer
-
-







Else - Actions
-








Set SolarianSetAmount[(Player number of (Owner of SolarianSetAquirer))] = (SolarianSetAmount[(Player number of (Owner of SolarianSetAquirer))] + 1)
-
-
-
-





Else - Actions
-
-
-
-
-
Hope you can help :/









