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

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 ??
 

Ben

Ben

Level 2
Joined
Sep 19, 2006
Messages
11
  • 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)
 

Ben

Ben

Level 2
Joined
Sep 19, 2006
Messages
11
Damn ... ... is there no solution at all ? or something like a workaround ??
 
Status
Not open for further replies.
Top