Sorry just started back map making after a long break and i have alot of questions going around me. Will give rep to those that help clarify in my map [:
Here are the questions:
1. What is custom value of a unit? What does it do in specific?
2. Can i set custom value of a unit in the data editor?
3. Can i do anything with it?
4. How big is it? (It says "custom value 0 of trigger unit", can i set 0 to 10000? is there a cap?)
Its a value used by triggers to store data in a unit. A unit uses 16 different custom values (1 - 16, 0 stores unique id for each unit). Since its a value only used by triggers, it cannot be modified using the data editor (at least from my knowledge).
Sorry just started back map making after a long break and i have alot of questions going around me. Will give rep to those that help clarify in my map [:
Here are the questions:
1. What is custom value of a unit? What does it do in specific?
2. Can i set custom value of a unit in the data editor?
3. Can i do anything with it?
4. How big is it? (It says "custom value 0 of trigger unit", can i set 0 to 10000? is there a cap?)
Thanks in advance!
You can't set it in data, it's just a custom value for scripting purposes. The max range of the array is unknown.
Its a value used by triggers to store data in a unit. A unit uses 16 different custom values (1 - 16, 0 stores unique id for each unit). Since its a value only used by triggers, it cannot be modified using the data editor (at least from my knowledge).
€
Are you sure? I was told it is capped at 16 slots.
Each slot can store 1 usual signed integer variable (can store a number from −2.147.483.648 to 2.147.483.647).
This is useful to store some data in a specific unit. As soon as you have access to this unit again, you can also access the data stored in this unit.
Apparently the range is 0-64, but it never throws any errors if you go beyond that.
@caspersc: Go
Thanks guys! This sure sounds useful [: