Page 1 of 1

permanently boost a stat

Posted: Sat Dec 29, 2012 10:02 pm
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

Re: permanently boost a stat

Posted: Sun Dec 30, 2012 12:16 am
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