Thanks for the great assistance guys.
I have your grimq Xanathar, but haven't implemented it in my dungeon, since I want to learn how to lua script normally and your great work sortta makes things too easy for us beginners. My next dungeon will definitely be using it however, since I see how it can speed scripting up.
And your explanation would be great in the editing superthread Komag.
It's because I didn't see it there that I asked this question (I knew it had to do with that pesky i however).
Now, I might as well ask another question while I'm here instead of cluttering up the boards with another thread.
I know I can modify the attack power of a party with a script. I just need to know what it would look like. Would it be something like this:
Code: Select all
for i = 1,4 do
party:getChampion(i):modifyAttackPower(20)
or something like this:
Code: Select all
for i = 1,4 do
party:getChampion(i):modifystat("attack power", 20)
or something else entirely (I don't know if it's even called attack power actually)?
Also, how can I make it so a change only lasts a certain number of minutes? Would it be better with a timer connected to the script or just a hidden pressure plate?
EDIT1: Well, it's definitely not called attack power or attackPower.
EDIT2: Okay, so it's not even a stat that can be modified according to the modding guide. Mmm...
EDIT3: Okay, so how can I make the character temporarily deal more damage (trainSkill or modifyStat strength seems the only obvious options).