In another topic the use of 'local' is used to create flintlocks with unlimited ammo:
I wondered if I can use the syntax for a throw weapon with a higher attack power, but I didn't get it to have a stack:Code: Select all
do local f = spawn(“flintlock”).firearmattack f:setClipSize(math.huge) f:setLoadedCount(math.huge) end
Code: Select all
do local f = spawn(“shuriken”).throwattack f:setAttackPower(50) f:setStackSize(999) endCode: Select all
spawn("shuriken").item:setStackSize(999)Code: Select all
for i = 1,999 do local f = spawn(“shuriken”).throwattack f:setAttackPower(50) end endCode: Select all
do local f = spawn("shuriken") f.throwattack:setAttackPower( 50 ) f.item:setWeight( 0.01 ) f.item:setStackSize(999) endCode: Select all
for i = 1, 4 do if party.party:getChampion( i ):getClass == “farmer” then party.party:getChampion( i ):addSkillPoints( 10 ) else party.party:getChampion( i ):addSkillPoints( 8 ) endCode: Select all
for i = 1, 4 do party.party:getChampion( i ):addSkillPoints( 8 + ( party.party:getChampion( i ):getClass == “farmer” ) *2 ) endCode: Select all
for i = 1, 4 do local ch = party.party:getChampion( i ) if ch:getClass == “farmer” then ch:addSkillPoints( 10 ) else ch:addSkillPoints( 8 ) endCode: Select all
for i = 1,4 do local ch = party.party:getChampion( i ) ch:addSkillPoints( 78 + ( ch:getClass() == "farmer" and 2 or 0 ) ) end end