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

Passive skills triggers #151

Open
NeumimTo opened this issue Jun 6, 2020 · 0 comments
Open

Passive skills triggers #151

NeumimTo opened this issue Jun 6, 2020 · 0 comments
Labels

Comments

@NeumimTo
Copy link
Member

NeumimTo commented Jun 6, 2020

  • Add new option Trigger to active skills
  • The option turns the skill into passive that triggers automatically when condition is met

For example:

SkillTree.conf

  {
  SkillId: "some_skill"
  Trigger {
     Id: "damage_taken"     
     Settings {
         DamageMin: $damage_received
         DamageType: "minecraft:physical"
     }
  } 
  Settings {
        cooldown: 10000
        cooldown_levelbonus: 10000
        damage_received: 50
        damage_received_levelbonus: -2
  } 
  ...
  }

Useful triggers that i could implement by default:

entity_kill
level_up
damage_taken
health_below_treshold
mana_below_treshold
teleport
heal

@NeumimTo NeumimTo added the Common label Jun 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant