- Joined
- Aug 18, 2007
- Messages
- 1,390
Now, im making on my map, and wanted to add items that gave abillities aslong they stay in your inventory. It all works fine with the adding/removing spells, but then...
I only want players to be able to have one of theese Power Ups at once, if you buy a Power up, while allready having the other one, it should give an error message. Now, the problem is, that the text is shown when you buy anything else, or just buy the Power up, without having the other one. I can see the error is there, but i dont know how i can fix it, so the text only shows when you can't buy.
Thanks in advance.
Btw, heres my Trigger :
I only want players to be able to have one of theese Power Ups at once, if you buy a Power up, while allready having the other one, it should give an error message. Now, the problem is, that the text is shown when you buy anything else, or just buy the Power up, without having the other one. I can see the error is there, but i dont know how i can fix it, so the text only shows when you can't buy.
Thanks in advance.
Btw, heres my Trigger :
-
Events
- Unit - Aquires an Item
- Conditions
-
Actions
-
If (All conditions are true) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item type of (Item bieng manipullated)) Equal to (Power Up: Blink)
- (Hero manipullating Item) has (Item of Item-type (Power up: Windwalk) Equal to (False)
-
Then - Actions
- Add (Blink to (Hero manipulating item)
-
Else - Actions
- Game - Display to (all players) the Text (Blah blah .....)
-
If - Conditions
-
If (All conditions are true) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item type of (Item bieng manipullated)) Equal to (Power Up: Windwalk)
- (Hero manipullating Item) has (Item of Item-type (Power up: Blink) Equal to (False)
-
Then - Actions
- Add (Wind Walk to (Hero manipulating item)
-
Else - Actions
- Game - Display to (all players) the Text (Blah blah BLAH.....)
-
If - Conditions
-
If (All conditions are true) then do (Then Actions) else do (Else Actions)