Git Product home page Git Product logo

Comments (9)

TheComputerGeek2 avatar TheComputerGeek2 commented on August 11, 2024 1

@mikassio this is actually more about the nature of the modifier action you used. the modifier action called required will cancel the spell event itself since I allow the checks to run fully. What you would do instead would be something like the following

modifiers:
    name:
        checks:
            - !hasitem 373 stop
            - !inblock 9 stop
        pass-condition: ANY

and then in your spell, you could use this

modifiers:
    - collection name required

The reason why this should work differently is that the require action actually does does something other than just discontinuing the processing of further modifiers which is to cancel the event. the stop action on the other hand, only stops the processing of further modifiers but won't cancel the event. A similar situation exists with the denied action in which it will cancel the event when processing.

from magicspells.

mikassio avatar mikassio commented on August 11, 2024

Thank you.

I've got one more is not clear bug. Above the blocks from nova effect floating blocks of stone.
Screenshot can be viewed here http://nisovin.com/forums/index.php?threads/help-with-nova-effect-please.2210/.

from magicspells.

mikassio avatar mikassio commented on August 11, 2024

Oh, no, it does not work.

modifiers:
    name:
        checks:
            - !hasitem 373 stop
            - !inblock 9 stop
        pass-condition: ANY

Screenshot - http://rgho.st/8hj8tVDJt/image.png

from magicspells.

maitmd avatar maitmd commented on August 11, 2024

Try removing the ! and when you put the collection on your spell deny it.

from magicspells.

TheComputerGeek2 avatar TheComputerGeek2 commented on August 11, 2024

@mikassio @MidnightChipmunk just quote the checks, like this

modifiers:
    name:
        checks:
            - "!hasitem 373 stop"
            - "!inblock 9 stop"
        pass-condition: ANY

The reason that was causing an error is because yaml was treating it like a tag rather than a normal string.

from magicspells.

mikassio avatar mikassio commented on August 11, 2024

Thaaank you :)

from magicspells.

mikassio avatar mikassio commented on August 11, 2024

What about flying over the block of stone blocks in the nova effect, about which I wrote above?

from magicspells.

TheComputerGeek2 avatar TheComputerGeek2 commented on August 11, 2024

@mikassio I'm afraid I don't understand what the issue with that spell is. Perhaps you could elaborate as to what it is supposed to do and what it is doing that is incorrect.

Also, am I correct in thinking that the collection modifier is working for you now?

from magicspells.

mikassio avatar mikassio commented on August 11, 2024

@TheComputerGeek2 yes, is working.

from magicspells.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.