BlackRabbit
New Member
- Reaction score
- 3
I'm trying to make an upgrade that, when completed, gives the player another life [adds 1 to int_lives] and resets so I can research it again and again.
Can anyone tell me why this trigger doesn't function?
Code:
Add Life
Events
Unit - A unit owned by Player 1 (Red) Finishes an upgrade
Unit - A unit owned by Player 2 (Blue) Finishes an upgrade
Conditions
(Researched tech-type) Equal to Essence of Life
Actions
Set int_lives = (int_lives + 1)
Sound - Play SoulPreservation <gen>
Game - Display to (All players) the text: ((Name of (Triggering player)) + ((has bought prezzies! + (String(int_lives))) + remain!))
Player - Set the current research level of Essence of Life to 0 for (Triggering player)
Can anyone tell me why this trigger doesn't function?