addeownage
New Member
- Reaction score
- 3
Im trying to make a trigger that respawns a "picker" 20 seconds after death along with some texts n stuff.
What doesnt work is simply that the picker does not respawns. it seems that only the first trigger works, cuz the sound plays and the first text shows.
This is how the trigger now works:
AND
What doesnt work is simply that the picker does not respawns. it seems that only the first trigger works, cuz the sound plays and the first text shows.
This is how the trigger now works:
Trigger:
- JewDeath
- Events
- Unit - A unit Dies
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Unit-type of (Dying unit)) Equal to |c00700708Panic Jew|r
- (Unit-type of (Dying unit)) Equal to |c00700708Sneaky Jew|r
- (Unit-type of (Dying unit)) Equal to |c00700708Toxic Jew|r
- (Unit-type of (Dying unit)) Equal to |c00700708Fat Jew|r
- Conditions
- Or - Any (Conditions) are true
- Actions
- Set Owner = (Owner of (Dying unit))
- Sound - Play ISPITHIGH <gen> at 100.00% volume, located at (Position of (Dying unit)) with Z offset 0.00
- Player Group - Pick every player in Nazis and do (Player - Add 1 to (Picked player) Current lumber)
- Game - Display to (All players matching ((Owner of (Dying unit)) Equal to (Matching player))) for 20.00 seconds the text: |c00700708Your pick...
- Leaderboard - Change the value for Player 11 (Dark Green) in (Last created leaderboard) to ((Player 1 (Red) Units Killed) + ((Player 2 (Blue) Units Killed) + ((Player 3 (Teal) Units Killed) + ((Player 4 (Purple) Units Killed) + (Player 5 (Yellow) Units Killed)))))
- Countdown Timer - Start JewTimer[(Player number of Owner)] as a One-shot timer that will expire in 20.00 seconds
- Trigger - Add to JewDeath2 <gen> the event (Time - JewTimer[(Player number of Owner)] expires)
- Events
AND
Trigger:
- JewDeath2
- Events
- Conditions
- Actions
- Set JewPick = (Center of JewPick <gen>)
- Unit - Create 1 Shade for Owner at JewPick facing Default building facing degrees
- Game - Display to (All players matching ((Owner of (Dying unit)) Equal to (Matching player))) for 10.00 seconds the text: |c00700708Your pick...
- Camera - Pan camera for Owner to (Center of JewPick <gen>) over 0.00 seconds
- Custom script: call RemoveLocation (udg_JewPick)