Adding skill points
Posted: Thu Jan 15, 2015 6:35 am
I want to add 2 skill points to every champion and to my farmer 2 extra. I also try to make it shorter
If a condition is true does it get the value 1? If so I could use:
Code: Select all
for i = 1, 4 do
party.party:getChampion( i ):addSkillPoints( 2 )
end
for i = 1, 4 do
if party.party:getChampion( i ):getClass == “farmer” then party.party:getChampion( i ):addSkillPoints( 2 )
endCode: Select all
for i = 1, 4 do
party.party:getChampion( i ):addSkillPoints( 2 + ( party.party:getChampion( i ):getClass == “farmer” ) * 2 )
end