The search keyword must be a single word (no spaces).

Function SetSkillArray

Line
2478
Location
common.ai
Constant?
no
Type
function
Arguments
integer index, integer id
Returns
nothing
2478
function SetSkillArray takes integer index, integer id returns nothing
2479
    local integer i = 1
2480
2481
    if index == 1 then
2482
        if hero_id != id then
2483
            return
2484
        endif
2485
        loop
2486
            set skills1[i] = skill[i]
2487
            exitwhen i == 10
2488
            set i = i + 1
2489
        endloop
2490
    elseif index == 2 then
2491
        if hero_id2 != id then
2492
            return
2493
        endif
2494
        loop
2495
            set skills2[i] = skill[i]
2496
            exitwhen i == 10
2497
            set i = i + 1
2498
        endloop
2499
    else
2500
        if hero_id3 != id then
2501
            return
2502
        endif
2503
        loop
2504
            set skills3[i] = skill[i]
2505
            exitwhen i == 10
2506
            set i = i + 1
2507
        endloop
2508
    endif
2509
endfunction