skript-mirror icon indicating copy to clipboard operation
skript-mirror copied to clipboard

Support more than one changer in a section

Open Snow-Pyon opened this issue 6 years ago • 0 comments

Is your feature request related to a problem? Please describe. I've happened to have this issue many times, where I have a handler for a change mode that doesn't change that much for the others, but I have to reuse that code regardless due to skript-mirror being unable to handle more than one change mode per section.

Describe the solution you'd like Being able to have a section for more than one changer like this:

expression test:
  get:
    return "something"
  add, remove strings:
    if change mode is add:
      # do stuff
  delete, reset:
    # do more stuff

Describe alternatives you've considered I've also considered a fall through behaviour like switches in Java but I'd say the above approach looks better and is less problematic to implement.

Snow-Pyon avatar Dec 13 '18 17:12 Snow-Pyon