• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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: 118
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