Page 1 of 1

simple LevelUp() party script

Posted: Tue Nov 25, 2014 6:40 pm
by msyblade
I know most know how to do this, but for anyone who doesn't and wants a simple solution, here you go.

This is a very simple levelUp() function for mod testing. It doesnt have any safeguards for the event of less than 4 party members, but can be easily adjusted by removing the lines of champions not present. Just set up a wall button near the party and click away.

Code: Select all

function levelUp()
 party.party:getChampion(1):levelUp()
 party.party:getChampion(2):levelUp()
 party.party:getChampion(3):levelUp()
 party.party:getChampion(4):levelUp()
end

Re: simple LevelUp() party script

Posted: Tue Nov 25, 2014 7:51 pm
by Drakkan
I know this ;) :p

Re: simple LevelUp() party script

Posted: Tue Nov 25, 2014 10:02 pm
by GoldenShadowGS

Code: Select all

function level()
	--level up 20 times
	for n = 1,20 do
		for i = 1,4 do
			party.party:getChampion(i):levelUp()
		end
	end
end