Page 1 of 1
i want write all skill help me pls
Posted: Sat Mar 04, 2017 1:16 pm
by ll8082
Code: Select all
function ListIterator(o)
local e = o:GetEnumerator();
return function()
if e:MoveNext() then
return e.Current;
end
end
end
for Skill in ListIterator( SkillList:GetList()) do
Write(Skill:GetName());
end
cant run help me pls
Re: i want write all skill help me pls
Posted: Sat Mar 04, 2017 3:00 pm
by agonic
Maybe You should use "Ability". to list all skills etc ?
Re: i want write all skill help me pls
Posted: Sat Mar 04, 2017 7:43 pm
by nucular
ll8082 wrote: ↑Sat Mar 04, 2017 1:16 pm
Code: Select all
function ListIterator(o)
local e = o:GetEnumerator();
return function()
if e:MoveNext() then
return e.Current;
end
end
end
for Skill in ListIterator( SkillList:GetList()) do
Write(Skill:GetName());
end
cant run help me pls
Just look here what i posted.
viewtopic.php?f=7&t=9
Code: Select all
function OnLoad
for ID, Skill in DictionaryOperator ( AbilityList:GetList() ) do
Write (ID .. " " .. Skill:GetName() .. " Cooldown " .. Skill:GetCooldown() );
end
end
Re: i want write all skill help me pls
Posted: Sun Mar 05, 2017 5:18 am
by ll8082
thank you very much ,
where can find DictionaryOperator ( ) function ?
Re: i want write all skill help me pls
Posted: Sun Mar 05, 2017 7:01 am
by nucular
ll8082 wrote: ↑Sun Mar 05, 2017 5:18 am
thank you very much ,
where can find DictionaryOperator ( ) function ?
It's defined in AionScript.lua on the top folder.
Re: i want write all skill help me pls
Posted: Sun Mar 05, 2017 7:14 am
by ll8082
i just test done DictionaryIterator() == DictionaryOperator(). thank for help .