- Joined
- Nov 19, 2011
- Messages
- 516
function Trig_QBenefit_Actions takes nothing returns nothing
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 4
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddHeroXPSwapped( udg_exp, udg_Hero[GetForLoopIndexA()], true )
call AdjustPlayerStateBJ( udg_gold, ConvertedPlayer(GetForLoopIndexA()), PLAYER_STATE_RESOURCE_GOLD )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
RemoveInt(exp)
RemoveInt(gold)
endfunction
'endloop expected'. But where?
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 4
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
call AddHeroXPSwapped( udg_exp, udg_Hero[GetForLoopIndexA()], true )
call AdjustPlayerStateBJ( udg_gold, ConvertedPlayer(GetForLoopIndexA()), PLAYER_STATE_RESOURCE_GOLD )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
RemoveInt(exp)
RemoveInt(gold)
endfunction
'endloop expected'. But where?