Amn
Member
- Reaction score
- 18
hi, i want to have an array of codes to combine items, it uses the item's custom value to determine what function to run
having this two functions declared:
can i use an array like this ?
so later i can refer to them using:
call CombineFunctions[ 1 ]
thank u
having this two functions declared:
Code:
function [COLOR="#FF8C00"]CombineItemA [/COLOR]takes nothing returns nothing
endfunction
function [COLOR="#FF8C00"]CombineItemB [/COLOR]takes nothing returns nothing
endfunction
can i use an array like this ?
Code:
code array [COLOR="#0000FF"]CombineFunctions[/COLOR]
set [COLOR="#0000FF"]CombineFunctions[/COLOR][0] = function [COLOR="#FF8C00"]CombineItemsA[/COLOR]
set [COLOR="#0000FF"]CombineFunctions[/COLOR][1] = function [COLOR="#FF8C00"]CombineItemsB[/COLOR]
so later i can refer to them using:
call CombineFunctions[ 1 ]
thank u