Ah great question, I'm using Visual Studio Code (with the Beautify extension to making the code more readable). This VS Code extension isn't always perfect though. There still are many lines of code where I've had to manually place newlines as they're still too long for good readability.
Yeah thanks for sharing anyway, though I have an even simpler methodDevilisious wrote: ↑Sun May 23, 2021 1:56 amIf u haven't figured it out ur self here is the code ur looking for
To start things off I've literally replaced the entire if statement with this, so that any class qualifies for that item:
Code: Select all
if(1==1)
Code: Select all
0 == b.engine.getGameAttribute("CharacterClass") % 2 ? (A = b.engine, t = Math.round(b.engine.getGameAttribute("CharacterClass") + 1)) : (A = b.engine, t = Math.round(b.engine.getGameAttribute("CharacterClass") - 1)),
Code: Select all
A = b.engine, t = 37, //t = the class id
Edit: Ah yeah true! Your class cycling idea is also cool though. That way you don't have to edit, start and stop the game N times to picking different classes for your N characters xD