Little issue with For each integer

FannyShaver

Well-Known Member
Reaction score
31
Trigger:
  • Set Moti = (Current research level of Builder Motivation 1 for (Owner of (Casting unit)))
    • For each (Integer Moti) from 1 to 15, do (Actions)
      • Loop - Actions
        • Set Temp_UnitGroup = (Units owned by (Owner of (Casting unit)) of type Builder)
        • Unit - Add +200 hp for builder to (Picked unit)
        • Unit - Set level of +200 hp for builder for (Picked unit) to 2
        • Unit - Remove +200 hp for builder from (Picked unit)
        • Custom script: call DestroyGroup(udg_Temp_UnitGroup)


What is the right way to do it? Of course I need to do this action for the same number of times the research level is. Thanks.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top