- Joined
- Jun 22, 2012
- Messages
- 472
Hey there!
I'm making a trigger to unlock/lock the training of a unit. The availability of the training depends on the owner of an unique item. But when I pick the item on my hero inventory, the training button doesn't appear... It seems that the condition "(Owner of Ring) Egal to (Picked player) doesn't work well...
If someone has an idea to help me I'll give him +rep! Thanks in advance!
I'm making a trigger to unlock/lock the training of a unit. The availability of the training depends on the owner of an unique item. But when I pick the item on my hero inventory, the training button doesn't appear... It seems that the condition "(Owner of Ring) Egal to (Picked player) doesn't work well...
-
Ring
-
Events
- Units - A unit Meurt
-
Conditions
- (Triggering unit) Egal to Gollum
-
Actions
- Item - Create One ring at (Position of (Triggering unit))
- Set Ring = (Last created item)
- Game - Display to (All players) the text: Gollum has been killed!
- Sound - Play Hint <gen>
- Kinematic - Ping minimap for (All players) at (Position of Gollum) for 3.00 seconds
- Trigger - Turn off Walk <gen>
-
Events
-
Summon
-
Events
- Time - Every 2.00 seconds of game time
- Conditions
-
Actions
-
Player group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of Ring) Egal to(Picked player)
-
Then - Actions
- Game - Display to (All players) the text: cas 1
- Player - Make Sauron Disponible for training/construction by (Owner of Ring)
- Player - Make Galadriel Disponible for training/construction by (Owner of Ring)
-
Else - Actions
- Game - Display to (All players) the text: cas 2
- Player - Make Galadriel Indisponible for training/construction by (Picked player)
- Player - Make Sauron Indisponible for training/construction by (Picked player)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Player group - Pick every player in (All players) and do (Actions)
-
Events
If someone has an idea to help me I'll give him +rep! Thanks in advance!