simple LevelUp() party script

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

simple LevelUp() party script

Post 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
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: simple LevelUp() party script

Post by Drakkan »

I know this ;) :p
Breath from the unpromising waters.
Eye of the Atlantis
GoldenShadowGS
Posts: 168
Joined: Thu Oct 30, 2014 1:56 am

Re: simple LevelUp() party script

Post 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
Post Reply