Maat's Cap
Posted: Sat Apr 27, 2013 8:16 pm
This should add in obtaining Maat's Cap somewhat smoothly.
I've commented everything I've added/changed.
Few notes in addition to the comments:
Whenever Maat is defeated, it adds a character variable based on the job you're on.
Variable is: MaatJob + jobIndex = jobIndex
(I apologize for this, but it was either this or write a bajillion lines of code for each job instead due to my limited LUA knowledge)
Let's say you beat Maat as WAR. WAR is indexed as 1.
Your character now has the variable MaatJob1 with the value of 1, indicating you've beaten Maat as a WAR.
Let's say you beat Maat as BRD. BRD is indexed as 10.
Your character now has the variable MaatJob10 with the value of 10, indicated you've beaten Maat as a BRD.
Then it takes all MaatJob variables and adds them together, and that's the value of MaatCap.
So beating Maat as BRD and WAR would net you a MaatCap value of 11.
Basically, the quest requires a MaatCap value of 120, which is the 15 job's indexes added together.
Also to note is that I have another variable called UpdatedMaatCapValue, just so I don't end up making people having to defeat Maat on the same job twice for cap.
---
Happy testing, I hope this doesn't glitch out anything.
Please let me know if I can do something better.
I've commented everything I've added/changed.
Few notes in addition to the comments:
Whenever Maat is defeated, it adds a character variable based on the job you're on.
Variable is: MaatJob + jobIndex = jobIndex
(I apologize for this, but it was either this or write a bajillion lines of code for each job instead due to my limited LUA knowledge)
Let's say you beat Maat as WAR. WAR is indexed as 1.
Your character now has the variable MaatJob1 with the value of 1, indicating you've beaten Maat as a WAR.
Let's say you beat Maat as BRD. BRD is indexed as 10.
Your character now has the variable MaatJob10 with the value of 10, indicated you've beaten Maat as a BRD.
Then it takes all MaatJob variables and adds them together, and that's the value of MaatCap.
So beating Maat as BRD and WAR would net you a MaatCap value of 11.
Basically, the quest requires a MaatCap value of 120, which is the 15 job's indexes added together.
Also to note is that I have another variable called UpdatedMaatCapValue, just so I don't end up making people having to defeat Maat on the same job twice for cap.
---
Happy testing, I hope this doesn't glitch out anything.
Please let me know if I can do something better.