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

Create Toggleable skills #139

Open
NeumimTo opened this issue Apr 15, 2020 · 0 comments
Open

Create Toggleable skills #139

NeumimTo opened this issue Apr 15, 2020 · 0 comments
Assignees
Labels

Comments

@NeumimTo
Copy link
Member

  • In skilltree config only
  • option which makes the skill toggleable
   id: "ntrpg:toggleable_thunderbolt"
   parent: "ntrpg:thunderbolt"
   Settings {
      blablabla
   }
   Toggleable {
      period: 10000
      max_duration: 100000
   }

What will actually happen on the backend during skilltree initialization:

  1. create a bytecode for a skill via asm (similar principe as skill with type of "item-access", "command" etc),
  2. When the skill is casted it places a buff (effect) to the caster which executes the "parent" skill every X ms
  • In toggleable block only period is mandatory.
    Another possible options:
    max_duration - if not specified skill will run as long as character has enough mana
@NeumimTo NeumimTo self-assigned this Apr 15, 2020
NeumimTo added a commit that referenced this issue Apr 26, 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