• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Set research level to zero

Status
Not open for further replies.

Ben

Ben

Level 2
Joined
Sep 19, 2006
Messages
11
Hi guys, i want to reset a researched technology if the map restarts. my reset-trigger has the action :
  • Player - Set the current research level of Weapon Upgrade to 0 for (Player(((Integer A) + 1)))
But it doesnt work. Anyone can give me a hint ??
 
  • reset
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 0 to 5, do (Actions)
        • Loop - Actions
          • Player - Set the current research level of Weapon Upgrade to 0 for (Player(((Integer A) + 1)))
          • Player - Set the current research level of Attackspeed to 0 for (Player(((Integer A) + 1)))
          • If (((Player(((Integer A) + 1))) slot status) Equal to Is playing) then do (Set plays[(Integer A)] = True) else do (Set plays[(Integer A)] = False)
The loop works, but i cant reset Attackspeed and Weaponupgrade to level 0. (The variable plays is initialized correctly)
 
Damn ... ... is there no solution at all ? or something like a workaround ??
 
Status
Not open for further replies.
Back
Top