- Joined
- Dec 28, 2009
- Messages
- 257
Heya folks, another question of mine
Basically, i want my Heroes in map carry up to 1 Healing and Mana potion (1 of each), (youll buy those potions, and when you buy 2nd it should be removed or something) but i kinda cant figure it out, how to do it (cant find Integer condition "amount of items of type X carried by unit Y >1 etc), and id prefer doing it easiest way possible (its too simple, i think it should be possible with very complex trigger with many variables etc, but why make it complicated when it might work with one simple condition im missing?)
Current trigger
just removes bought potion just after you got it...
So, any help? thanks!
Basically, i want my Heroes in map carry up to 1 Healing and Mana potion (1 of each), (youll buy those potions, and when you buy 2nd it should be removed or something) but i kinda cant figure it out, how to do it (cant find Integer condition "amount of items of type X carried by unit Y >1 etc), and id prefer doing it easiest way possible (its too simple, i think it should be possible with very complex trigger with many variables etc, but why make it complicated when it might work with one simple condition im missing?)
Current trigger
- Unit - A unit Acquires an item
-
Or - Any (Conditions) are true
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Potion of Greater Healing
- (Item-type of (Item being manipulated)) Equal to Potion of Greater Mana
-
Conditions
- Set Game_Hero_Buying_Potion = (Hero manipulating item)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- (Item carried by Game_Hero_Buying_Potion in slot 2) Equal to (Item carried by Game_Hero_Buying_Potion of type Potion of Greater Healing)
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Item - Remove (Item being manipulated)
- Game - Display to (Player group((Owner of Game_Hero_Buying_Potion))) the text: You cant carry more...
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Game_Hero_Buying_Potion has an item of type Potion of Greater Mana) Equal to True
-
Then - Actions
- Item - Remove (Item being manipulated)
- Game - Display to (Player group((Owner of Game_Hero_Buying_Potion))) the text: You cant carry more...
- Else - Actions
-
If - Conditions
So, any help? thanks!