| 07-24-2004, 06:15 PM | #1 |
Is it possible for a unit to have an array in its custom value? Like Footman's Custom Value = 387 (1) Footman's Custom Value = 471 (2) etc. It would be nice if it could. I could set 1 to Bloodlust Aura 2 to Invisibility Aura 3 to On Fire and etc. But if it isn't possible, i would have to combine them and its a pain in the ass. Unless i use the unlimited WE to do the Unit's custom string. xxxxx 41233 1 is Bloodlust Aura 2 is Invisibility Aura 3 is On Fire 4 is player number |
| 07-24-2004, 06:26 PM | #2 |
Can't this be done with buffs? |
| 07-24-2004, 06:27 PM | #3 |
No, arrays are for variables, not for custom values. EDIT:Really, it probably can be done with buffs ![]() |
| 07-24-2004, 08:31 PM | #4 | |
Quote:
the custom value works like a unit's own integer variable... Was wondering if u can make it so it has arrays... |
| 07-25-2004, 01:55 AM | #5 |
If you only have a few values (like 4) then it can be done with this neat trick use 1,2,4,8 as your numbers if you add these up you will find that each number has only one combination. 1+2+4=7 there is no other way to get 7. so: 1 is Bloodlust Aura 2 is Invisibility Aura 4 is On Fire then if a units custom value is 1,3 or 7 it has bloodlust aura. and if it gains bloodlust aura you add 1 to its value and take 1 away when it loses it. This will only work nicely for a small number of values cause after a while you end up with 1,2,4,8,16,32,64... as you can see you have too many combinations Buffs may be a better idea if you have more then 4 numbers |
