Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #690

Closed
Open
Created Jan 29, 2022 by LcorpOfficial@LcorpOfficial🔨Reporter

Add Worldguard Flags to conditions

Summary

A regionflag condition would use worldguard flags as conditions directly, rather than needing to make long-winded and messy server-specific skills when it comes to side-effects of AOE skills.

Usage

Normally, a complex skill would have some side effects, via potion effects or otherwise. Having an ability to prevent those side effects as damage already is done would be stellar.

Value

Currently, to prevent effects from super fancy skills from hitting pvp-deny region players (lets say a boss region where there are raids and a lot of AOE abilities popping off) you would have to make an array of regions the skill doesn't work. Which works, but is horrendously messy. Damage is already handled well in this manner, and side effects are def not.

The main skill (already a mouthful of code, and probably a bit messy as is but that's my fault): https://pastebin.com/WNg75A7W

the Metaskill needed currently to prevent potion effects from killing players in non pvp zones:

demonrot:
  Conditions:
  - region{r=clubemerald,demonrealm,dragon,blackjack,casinofloor,casinohall,switch,bigbrainstage,catacombs,leet,mondstadt,stage} false
  Skills:
  - potion{type=SLOW;duration=120;lvl=4} 
  - potion{type=WEAKNESS;duration=120;lvl=8}
  - potion{type=WITHER;duration=120;lvl=2}

Priority

Medium-Priority, not game-breaking but makes a huge difference to those who could use it and save some headaches for skill-makers.

Implementation

Describe how you think your suggestion should be implemented.

The ideal concept would be:

  • skill{s=demonrot} @EntitiesInRadius{r=10;ignore=armorstands,villagers}
demonrot:
  Conditions:
  - regionflag{f=pvp-deny} false
  Skills:
  - potion{type=SLOW;duration=120;lvl=4} 
  - potion{type=WEAKNESS;duration=120;lvl=8}
  - potion{type=WITHER;duration=120;lvl=2}
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking