Page 1 of 1

Champion mod question

Posted: Mon Sep 17, 2012 11:54 pm
by davehca
After reviewing the Scripting Reference and reading many of the posts here, I am still not clear how does one get and alter the stats of a Champion of a particular slot.

For example, if I wanted to get the "air" level of a Champion, I see I would need to use the function.

Champion:getSkillLevel("air_magic")

The reference to a Champion in a particular slot, say Slot 2, I see would be by the function:

party:getChampion(2)

So to get the skill level of the second Champion, would the script be:

party:getChampion(2):Champion:getSkillLevel("air_magic")

Or what would be the correct syntax?

Re: Champion mod question

Posted: Tue Sep 18, 2012 4:25 am
by antti
The correct syntax is:

Code: Select all

party:getChampion(2):getSkillLevel("air_magic")

Re: Champion mod question

Posted: Tue Sep 18, 2012 6:03 am
by davehca
Ah.. I was close :D

thanks!