Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Informational] Perform actions based on party member status effects #220

Open
Masuzu opened this issue Aug 20, 2017 · 0 comments
Open

[Informational] Perform actions based on party member status effects #220

Masuzu opened this issue Aug 20, 2017 · 0 comments

Comments

@Masuzu
Copy link
Owner

Masuzu commented Aug 20, 2017

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.

Repository owner locked and limited conversation to collaborators Aug 20, 2017
@Masuzu Masuzu changed the title [Informational] Conditions based on character status effects [Informational] Perform actions based on party member status effects Aug 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant