penumbra 4 Posted January 6, 2018 Share Posted January 6, 2018 Hello I have been searching the forums but not been able to find a solution that works I am trying to have a fight class select the appropriate spell based on the ranks that are known, a dream scenario would be: public Spell Frostbolt = new Spell("Frostbolt"); public Spell Firebolt = new Spell("Firebolt"); if(Frostbolt.KnownRank > 4){ Frostbolt.Launch(); } else { Firebolt.Launch(); } Does any one know how this would be possible to do given the functionality that is available? Thanks in advance! Link to comment Share on other sites More sharing options...
eeny 522 Posted January 6, 2018 Share Posted January 6, 2018 (edited) would you not be best in just putting a level on it, assuming you train frostbolt rank 4 at lvl 20? 22?.. why not just: if (ObjectMager.Me.level > 20 && Frostbolt.Knownspell) Frostbolt.launch; ... not exactly what your asking, but would work for the scenario you gave above. Edited January 6, 2018 by eeny Link to comment Share on other sites More sharing options...
penumbra 4 Posted January 6, 2018 Author Share Posted January 6, 2018 Hi Eeny! Thanks for replying Great suggestion, and actaully what I am doing atm. I was hoping there was a better solution though :) Best regards Link to comment Share on other sites More sharing options...
Matenia 625 Posted January 6, 2018 Share Posted January 6, 2018 You can find some inspiration here: https://github.com/Schaka/VanillaFightclassFramework/commit/11db781db73cfa1cda5b43ea6ac034f616d8eab0 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now