Need help with class based state reaction

● ARCHIVED · READ-ONLY
Started by zarroc407 3 posts View original ↗
  1. So I'm working on a skill that depending on the type of enemy it hits will add a different state to the user however I want these states to do something different based on the user's class. So it goes something like this

    use skill add state 100
    then state 100 on apply checks to see if the user's class id is equal to 1 if so it does an action if not it checks if the class idea is equal to 2 and so on.

    The problem is every time I try to use a skill or state to check class id i get the error require(...).Window.get(...).isDevToolsOpen is not a function. Does anyone have any ideas that could help me?
  2. wrong syntax?
  3. @Isabella Ava not sure what it was but the problem seems to be fixed now I'm guessing there was misplaced symbol somewhere because once I grabbed some old code that was similar and subbed in target.isClass($dataClasses[classid]) it worked