• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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