• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

A strange problem

Status
Not open for further replies.
Level 15
Joined
Nov 26, 2005
Messages
1,151
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:


  • 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 (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 (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 (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 (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 (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 (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 (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




  • 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)
 
Status
Not open for further replies.
Top