i want write all skill help me pls

Post Reply
ll8082
Posts: 14
Joined: Tue Feb 28, 2017 2:40 pm

i want write all skill help me pls

Post by ll8082 » 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

agonic
VIP
Posts: 159
Joined: Tue Jan 10, 2017 6:39 pm
Has thanked: 34 times
Been thanked: 112 times

Re: i want write all skill help me pls

Post by agonic » Sat Mar 04, 2017 3:00 pm

Maybe You should use "Ability". to list all skills etc ?

User avatar
nucular
Site Admin
Posts: 260
Joined: Sat Jan 07, 2017 9:08 pm
Has thanked: 27 times
Been thanked: 388 times

Re: i want write all skill help me pls

Post by nucular » Sat Mar 04, 2017 7:43 pm

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

ll8082
Posts: 14
Joined: Tue Feb 28, 2017 2:40 pm

Re: i want write all skill help me pls

Post by ll8082 » Sun Mar 05, 2017 5:18 am

thank you very much ,
where can find DictionaryOperator ( ) function ?

User avatar
nucular
Site Admin
Posts: 260
Joined: Sat Jan 07, 2017 9:08 pm
Has thanked: 27 times
Been thanked: 388 times

Re: i want write all skill help me pls

Post by nucular » Sun Mar 05, 2017 7:01 am

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.

ll8082
Posts: 14
Joined: Tue Feb 28, 2017 2:40 pm

Re: i want write all skill help me pls

Post by ll8082 » Sun Mar 05, 2017 7:14 am

i just test done DictionaryIterator() == DictionaryOperator(). thank for help .

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest