Way to store custom values ?

Farban

New Member
Reaction score
0
Hi

I have custom values such as toughness, weapon skill that I need to store for each unit. The unit health and energy vitals are already used so I cant use them. What can I use to store custom values and attach them to a unit? So similar to a multidimensional array

eg

array(unit => Marine001, weapon skill => 80, toughness => 40)

is this possible?
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
You should be able to use the standard custom values. You can use the "Set Unit Custom Value" action to save a value in the specified index on the unit. You can then use the "Custom Value of Unit" function to retrieve a unit's custom value on a specific index.
 

Dave312

Censored for your safe viewing
Reaction score
269
You could also look into creating Attributes (a type of behaviour) and giving these to your units. From there it would be easy to make the attributes actually mean something (e.g. you could make a toughness attribute and make each point increase the units armor by 1)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top