• 🏆 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!

Return Expired Timer Array Number

Status
Not open for further replies.
Level 10
Joined
Aug 25, 2004
Messages
473
Using Taur's help i have written a trigger that allows me to return the aray number of the expired time. but fow some reason, when i save the map, WE gives me Jass Error masseges. Here is a trigger
  • release
    • Events
      • Time - TimerPlayerJail[1] expires
      • Time - TimerPlayerJail[2] expires
      • Time - TimerPlayerJail[3] expires
      • Time - TimerPlayerJail[5] expires
      • Time - TimerPlayerJail[6] expires
      • Time - TimerPlayerJail[7] expires
      • Time - TimerPlayerJail[8] expires
      • Time - TimerPlayerJail[9] expires
      • Time - TimerPlayerJail[10] expires
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Custom script: if GetExpiredTimer() == udg_TimerPlayerJail[bj_forLoopAIndex]) then
          • Set TempInteger = (Integer A)
          • Custom script: endif
      • Countdown Timer - Destroy TWindowJail[TempInteger]
      • Set TempPoint = (Random point in Released From Jail <gen>)
      • Unit - Move HeroUnit[TempInteger] instantly to TempPoint
      • Unit - Set life of HeroUnit[TempInteger] to 100.00%
      • Unit - Set mana of HeroUnit[TempInteger] to 100.00%
      • Camera - Pan camera for (Player(TempInteger)) to TempPoint over 1.00 seconds
      • Custom script: call RemoveLocation (udg_TempPoint)
Maybe its possible to replace loop with just: Set tempinteger to getTimerArray ?

After saving the map, i get folowing error (see attached screenshot)
 

Attachments

  • Return Integer Value.JPG
    Return Integer Value.JPG
    45 KB · Views: 110
Level 2
Joined
Sep 21, 2007
Messages
26
don't think scrip's can rever to other actions. convert it to jazz and fix it there maybe?
 
Status
Not open for further replies.
Top