-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add Effect Filter #810
Add Effect Filter #810
Conversation
Signed-off-by: alexsosnovsky <60436249+alexsosnovsky@users.noreply.github.com>
I do not see the point in having a filter with effects as children, i think no other filter does this, instead, it's the filter itself that has the properties. <filters>
<effect id="filter1" duration="0s" amplifier="4">saturation</effect>
<effect id="filter2" duration="30s" amplifier="1">water breathing</effect>
<effect id="filter3" duration="0s" amplifier="2">night vision</effect>
</filters> Regarding duration, a filter with a specific duration is of little use, it should probably be a range: |
Not sure if these exists in this version of PGM but it looks like ranges and comparisons were implemented like so https://pgm.dev/docs/modules/mechanics/filters/#random-filter which may be worth replicating as the syntax used in the comment above. |
Signed-off-by: alexsosnovsky <60436249+alexsosnovsky@users.noreply.github.com>
I've updated it to simply use the
This looks interesting but I felt it was simpler and more intuitive to just have |
Signed-off-by: alexsosnovsky <60436249+alexsosnovsky@users.noreply.github.com>
The new
effect
filter returnsALLOW
if the player has an effect of the same type as the filter. If a mapmaker wants to be more selective, there are three optional attributes:min-duration
,max-duration
, andamplifier
.Syntax example: