Well my problem is that the death timer doesn't start and no numbers appear in it (as if the value enterred for will inspire in is not real/integer).
Here are the triggers:
Here are the triggers:
-
Select Heroes
-
Events
- Unit - A unit Sells an item (from shop)
-
Conditions
- (Item-type of (Sold Item)) Equal to Select Hero
-
Actions
- Set Selector = (Buying unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Selling unit)) Equal to Random Hero
-
Then - Actions
- -------- -------------------- --------
- Floating Text - Create floating text that reads Random! above (Selling unit) with Z offset 7.00, using font size 11.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 1.80 seconds
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- -------- -------------------- --------
- Unit - Create 1 Hero_Types[(Random integer number between 1 and 7)] for (Owner of Selector) at (Center of CreateHeroes <gen>) facing Default building facing degrees
- Hero - Create Start Bonus and give it to (Last created unit)
- Selection - Select (Last created unit) for (Owner of Selector)
- Set Selected_Hero[(Player number of (Owner of Selector))] = (Last created unit)
- Unit Group - Add (Last created unit) to Selected_Heroes
- Camera - Pan camera for (Owner of Selector) to (Center of CreateHeroes <gen>) over 0.50 seconds
- Unit - Remove Selector from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Selling unit)) Equal to Fireworker
-
Then - Actions
- -------- -------------------- --------
- Floating Text - Create floating text that reads +1 above (Selling unit) with Z offset 7.00, using font size 11.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 1.80 seconds
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- -------- -------------------- --------
- Unit - Create 1 Fireworker for (Owner of Selector) at (Center of CreateHeroes <gen>) facing Default building facing degrees
- Selection - Select (Last created unit) for (Owner of Selector)
- Set Selected_Hero[(Player number of (Owner of Selector))] = (Last created unit)
- Unit Group - Add (Last created unit) to Selected_Heroes
- Camera - Pan camera for (Owner of Selector) to (Center of CreateHeroes <gen>) over 0.50 seconds
- Unit - Remove Selector from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Selling unit)) Equal to Inventor
-
Then - Actions
- -------- -------------------- --------
- Floating Text - Create floating text that reads +1 above (Selling unit) with Z offset 7.00, using font size 11.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 1.80 seconds
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- -------- -------------------- --------
- Unit - Create 1 Inventor for (Owner of Selector) at (Center of CreateHeroes <gen>) facing Default building facing degrees
- Selection - Select (Last created unit) for (Owner of Selector)
- Set Selected_Hero[(Player number of (Owner of Selector))] = (Last created unit)
- Unit Group - Add (Last created unit) to Selected_Heroes
- Camera - Pan camera for (Owner of Selector) to (Center of CreateHeroes <gen>) over 0.50 seconds
- Unit - Remove Selector from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Selling unit)) Equal to Chemist
-
Then - Actions
- -------- -------------------- --------
- Floating Text - Create floating text that reads +1 above (Selling unit) with Z offset 7.00, using font size 11.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 1.80 seconds
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- -------- -------------------- --------
- Unit - Create 1 Chemist for (Owner of Selector) at (Center of CreateHeroes <gen>) facing Default building facing degrees
- Selection - Select (Last created unit) for (Owner of Selector)
- Set Selected_Hero[(Player number of (Owner of Selector))] = (Last created unit)
- Unit Group - Add (Last created unit) to Selected_Heroes
- Camera - Pan camera for (Owner of Selector) to (Center of CreateHeroes <gen>) over 0.50 seconds
- Unit - Remove Selector from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Selling unit)) Equal to Vagabond
-
Then - Actions
- -------- -------------------- --------
- Floating Text - Create floating text that reads +1 above (Selling unit) with Z offset 7.00, using font size 11.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 1.80 seconds
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- -------- -------------------- --------
- Unit - Create 1 Vagabond for (Owner of Selector) at (Center of CreateHeroes <gen>) facing Default building facing degrees
- Selection - Select (Last created unit) for (Owner of Selector)
- Set Selected_Hero[(Player number of (Owner of Selector))] = (Last created unit)
- Unit Group - Add (Last created unit) to Selected_Heroes
- Camera - Pan camera for (Owner of Selector) to (Center of CreateHeroes <gen>) over 0.50 seconds
- Unit - Remove Selector from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Selling unit)) Equal to Technocrat
-
Then - Actions
- -------- -------------------- --------
- Floating Text - Create floating text that reads +1 above (Selling unit) with Z offset 7.00, using font size 11.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 1.80 seconds
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- -------- -------------------- --------
- Unit - Create 1 Technocrat for (Owner of Selector) at (Center of CreateHeroes <gen>) facing Default building facing degrees
- Selection - Select (Last created unit) for (Owner of Selector)
- Set Selected_Hero[(Player number of (Owner of Selector))] = (Last created unit)
- Unit Group - Add (Last created unit) to Selected_Heroes
- Camera - Pan camera for (Owner of Selector) to (Center of CreateHeroes <gen>) over 0.50 seconds
- Unit - Remove Selector from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Selling unit)) Equal to Swordmaster
-
Then - Actions
- -------- -------------------- --------
- Floating Text - Create floating text that reads +1 above (Selling unit) with Z offset 7.00, using font size 11.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 1.80 seconds
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- -------- -------------------- --------
- Unit - Create 1 Swordmaster for (Owner of Selector) at (Center of CreateHeroes <gen>) facing Default building facing degrees
- Selection - Select (Last created unit) for (Owner of Selector)
- Set Selected_Hero[(Player number of (Owner of Selector))] = (Last created unit)
- Unit Group - Add (Last created unit) to Selected_Heroes
- Camera - Pan camera for (Owner of Selector) to (Center of CreateHeroes <gen>) over 0.50 seconds
- Unit - Remove Selector from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Selling unit)) Equal to Technomage
-
Then - Actions
- -------- -------------------- --------
- Floating Text - Create floating text that reads +1 above (Selling unit) with Z offset 7.00, using font size 11.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 1.80 seconds
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- -------- -------------------- --------
- Unit - Create 1 Technomage for (Owner of Selector) at (Center of CreateHeroes <gen>) facing Default building facing degrees
- Selection - Select (Last created unit) for (Owner of Selector)
- Set Selected_Hero[(Player number of (Owner of Selector))] = (Last created unit)
- Unit Group - Add (Last created unit) to Selected_Heroes
- Camera - Pan camera for (Owner of Selector) to (Center of CreateHeroes <gen>) over 0.50 seconds
- Unit - Remove Selector from the game
- Else - Actions
-
If - Conditions
-
Events
-
Death
-
Events
- Unit - A unit Dies
-
Conditions
- ((Dying unit) is in Selected_Heroes) Equal to True
-
Actions
- Countdown Timer - Start Hero_Respawn_Timer[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in (25.00 + (Real((Level of (Dying unit))))) seconds
- Countdown Timer - Create a timer window for (Last started timer) with title ((Name of (Owner of (Dying unit))) + 's hero will revive after: )
- Set Revival_Timer_Window[(Player number of (Owner of (Dying unit)))] = (Last created timer window)
-
Events