How do I store these?

chadpiety123

New Member
Reaction score
0
So, How do I the mana of each and every unit in a group? Do note that these information will be used for a timer callback. Any help will be appreciated.
 

Exide

I am amazingly focused right now!
Reaction score
448
Mana and hp are real.
Use a real array variable and store away.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Trigger:
  • Store Mana
    • Events
    • Conditions
    • Actions
      • Set Temp_Int = 0
      • Set Temp_Group = (Units in (Playable map area))
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Set Temp_Int = (Temp_Int + 1)
          • Set TempReal[Temp_Int] = (Mana of (Picked unit))
      • Custom script: call DestroyGroup(udg_Temp_Group)


Something like that maybe :D

Then maybe set another integer to Temp_Int, so it can't be used in another trigger...
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top