Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
what does this mean?An array is already filled up with values AFAIK
any howGod, I'm having trouble with linked list, it's been so long since I've used one that I forgot how to, LAWL, I'm going back to arrays lol.
really? i don't think so.. if you mean values at variable editor, i don't think soAn array is already filled up with values AFAIK
globals
integer ListLast = 8190
integer array List
integer InstanceCount = 0
endglobals
function List_add takes integer index returns boolean
set List[index]=ListLast
set ListLast=index
set InstanceCount=InstanceCount+1
return (InstanceCount<8190)
endfunction
function List_delete takes integer index returns nothing
set ListLast = List[index]
set InstanceCount=InstanceCount-1
endfunction
function List_iterate takes nothing returns nothing
local integer i
local integer last = ListLast
loop
set i = last
exitwhen i==8190
call BJDebugMsg(I2S(i))
set last=List[i]
endloop
endfunction
function InitTrig_List takes nothing returns nothing
call List_add(9)
call List_add(8)
call List_add(7)
call List_add(6)
call List_add(5)
call List_add(4)
call List_add(3)
call List_add(2)
call List_add(1)
call List_add(0)
call TimerStart(CreateTimer(),1.00,false,function List_iterate)
endfunction
///////////////////////////////////////////////////////////////////////////////////
// //
// Credits: //
// //
// *Chobibo for helping in Script Fixes //
// *Malhorne for helping in Script Fixes //
// //
function List_iterate takes nothing returns nothing
local integer i
local integer last = ListLast
local integer p = (-1)
loop
set i = last
exitwhen i==8190
if (i==5) then
set List=List[i] @<-- This one removes the current link@
endif
call BJDebugMsg(I2S(i))
set p=last
set last=List[i]
endloop
call TimerStart(GetExpiredTimer(),1.00,false, function List_iterate)
endfunction
it is?I though it was a group project xD!
Anyway did you correct in the main post ?
set udg_CP_HiddenItemsIndex = 0
set udg_CP_HiddenItems[0] = null
set udg_CP_Point = GetSpellTargetLoc()
set udg_CP_PointIsWalkable = false
Time = ( Accel * Range ) / ( BaseSpeed + FinalSpeed )
