permanently boost a stat

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
Hariolor
Posts: 42
Joined: Sun Apr 15, 2012 5:59 am

permanently boost a stat

Post by Hariolor »

Thought I'd throw this one out there - it's similar to some of the "pit immunity" approaches, but is a permanent boost to a party stat. In my case, it's a 'blessing' of permanent +20 HP the party can earn at one point. Simple, but thought someone might find it useful. Change the [ for x = 1, 4, 1 ] piece to change which party members are affected.

Code: Select all

function blessing1()
	 for x = 1, 4, 1 do
	 local maxHealth = party:getChampion(x):getStatMax("health")
         party:getChampion(x):setStatMax("health",maxHealth + 20)
	 end
end
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: permanently boost a stat

Post by Komag »

nice little snippet, I assume the extra 1 indicates to count by integers, but it's not needed, you can just have 1,4

you could add this to the script repository
Finished Dungeons - complete mods to play
Post Reply