Champion mod question

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
davehca
Posts: 21
Joined: Sat Sep 15, 2012 6:09 pm

Champion mod question

Post 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?
User avatar
antti
Posts: 688
Joined: Thu Feb 23, 2012 1:43 pm
Location: Espoo, Finland
Contact:

Re: Champion mod question

Post by antti »

The correct syntax is:

Code: Select all

party:getChampion(2):getSkillLevel("air_magic")
Steven Seagal of gaming industry
davehca
Posts: 21
Joined: Sat Sep 15, 2012 6:09 pm

Re: Champion mod question

Post by davehca »

Ah.. I was close :D

thanks!
Post Reply