ZooeyBot
ZooeyBot copied to clipboard
[Informational] Perform actions based on party member status effects
This is something you can from now on do by accessing active party member status effects.
To prevent using skills if character_1 is affected by a skill sealing debuff, you can use:
booleans["can use skills"] = true
for index, buff in pairs(character_1.buffs) do
if buff.id == <ID of the skill sealing debuff> then
booleans["can use skills"] = false
end
end
if booleans["can use skills"] then
character_1:UseSkill(X)
...
end
The list of effect IDs and their name is updated in a file named status_effects.txt
which will be created in the same folder as ZooeyBot.exe
so you can figure out which ID to use for <ID of the skill sealing debuff>
.
Other useful use cases would be to perform specific actions based on the number of stacks on some buffs, for characters such as Korwa or Izmir to name a few.