| 04-21-2004, 02:53 AM | #1 |
I don't seem to be able to use any function that uses unit custom value in 1.15, i then searched the common.j and blizzard.j and couldn't find them referenced any where. Are they gone? This the function that i am using it in with no prevail =( (gl trying to figure it out, but it puts units in an array inorder of how much life they have) Code:
function Order takes nothing returns nothing
local integer p = 1
local integer g = 1
local integer s = 1
local integer b = 1
local integer a = 1
local integer f = 1
local integer v = 1
local integer j = 1
local integer z = 1
local boolean done
loop
exitwhen f>12
set udg_LifeTargets[f] = R2I(GetUnitStateSwap(UNIT_STATE_LIFE, udg_Hero[f]))
call SetUnitUserData( udg_Hero[f], udg_LifeTargets[f] )
set f = f+1
endloop
loop
exitwhen b>udg_Pnumber*3
loop
exitwhen p > udg_Pnumber*3
loop
exitwhen g > udg_Pnumber*3
set udg_TargetsLife[b] = RMinBJ(I2R(udg_LifeTargets[g]), I2R(udg_LifeTargets[p]))
set g = g+1
endloop
set p = p + 1
endloop
loop
exitwhen a>udg_Pnumber*3
if udg_TargetsLife[b] == udg_LifeTargets[a] then
set udg_LifeTargets[a] = 20000
set s = s+1
exitwhen true
endif
set a = a+1
endloop
set b = b+1
endloop
loop
exitwhen j>12
loop
exitwhen v>12
loop
exitwhen done
if GetUnitUserData(udg_Hero[v]) = udg_TargetsLife[z] then
set udg_Hero[v] = udg_Target[j]
set done = true
else
set z = z + 1
endloop
set v = v + 1
endloop
set j = j + 1
endloop
endfunction |
| 04-21-2004, 03:07 AM | #2 |
you sure they dident just rename it? i dont see any reason why they would removed custom unit values (or rename them) but if they did i have a _lot_ of trigs to redo.. :( |
| 04-21-2004, 03:37 AM | #3 |
they work fine last I checked... |
| 04-21-2004, 03:50 AM | #4 |
I don't see why blizzard would remove since they would have to edit a few of their own functions in the blizzard.j, so... |
| 04-21-2004, 02:17 PM | #5 |
Does ANY of that code run? Have you tried using debug messages? |
| 04-22-2004, 03:36 AM | #6 |
yes it does run, and WE brings up errors saying that they don't exist |
| 04-22-2004, 05:19 AM | #7 |
if GetUnitUserData(udg_Hero[v]) = udg_TargetsLife[z] then = instead of == |
