Jump to content
Ind

Skill Tree DB Redesign

Recommended Posts

Skill Tree DB Redesign
Hello~! - What?!

  • The file has been completely overwritten, the redesign achieves 2 goals: make it easier for us to update the file and for our users to customise it.

skill_db.conf format : sample

Swordsman: {
	inherit: ( "Novice" );
	skills: { 
		SM_SWORD: 10
		SM_TWOHAND: {
			MaxLevel: 10
			SM_SWORD: 1
		}
		SM_RECOVERY: 10
		SM_BASH: 10
		SM_PROVOKE: 10
		SM_MAGNUM: {
			MaxLevel: 10
			SM_BASH: 5
		}
		SM_ENDURE: {
			MaxLevel: 10
			SM_PROVOKE: 5
		}
		SM_MOVINGRECOVERY: 1
		SM_FATALBLOW: 1
		SM_AUTOBERSERK: 1
	}
}
Knight: {
	inherit: ( "Swordsman" );
	skills: { 
		KN_SPEARMASTERY: 10
		KN_PIERCE: {
			MaxLevel: 10
			KN_SPEARMASTERY: 1
		}
		KN_BRANDISHSPEAR: {
			MaxLevel: 10
			KN_RIDING: 1
			KN_SPEARSTAB: 3
		}
		KN_SPEARSTAB: {
			MaxLevel: 10
			KN_PIERCE: 5
		}
		KN_SPEARBOOMERANG: {
			MaxLevel: 5
			KN_PIERCE: 3
		}
		KN_TWOHANDQUICKEN: {
			MaxLevel: 10
			SM_TWOHAND: 1
		}
		KN_AUTOCOUNTER: {
			MaxLevel: 5
			SM_TWOHAND: 1
		}
		KN_BOWLINGBASH: {
			MaxLevel: 10
			SM_BASH: 10
			SM_MAGNUM: 3
			SM_TWOHAND: 5
			KN_TWOHANDQUICKEN: 10
			KN_AUTOCOUNTER: 5
		}
		KN_RIDING: {
			MaxLevel: 1
			SM_ENDURE: 1
		}
		KN_CAVALIERMASTERY: {
			MaxLevel: 5
			KN_RIDING: 1
		}
		KN_CHARGEATK: 1
		KN_ONEHAND: {
			MaxLevel: 1
			KN_TWOHANDQUICKEN: 10
		}
	}
}

Main Design Benefit

  • Skills and its requirements are now per job instead of per class id, so there are no duplicates -- for example in the previous format if wanted to modify, say, the max level of SM_MAGNUM you'd need to edit its 31 entries, in the new format there are only 2 entries (one in swordsman, other in super novice)

Credits

  • Designed/Proposed by malufett

Links~!

Edited by Ridley

Share this post


Link to post
Share on other sites

Sorry, but I don't understand the benefit behind this modification..

for me this can make me productive specially making new skills...:D

 

:meow:

Share this post


Link to post
Share on other sites

Hmm okay, I can see that the skill tree could be modified faster thanks to the 'inheritance' feature.

It's like the skilltreeview.lua on kRO client.

Share this post


Link to post
Share on other sites

 

Sorry, but I don't understand the benefit behind this modification..

for me this can make me productive specially making new skills... :D

 

:meow:

 

Absolutely! This is really intended for you haha also for other people who wants to add custom skills

 

@Ind still awesome! :meow:

Edited by cJei

Share this post


Link to post
Share on other sites

Someone please add some documentation to this file format. I know it's pretty straightforward, but at the moment it has no documentation whatsoever.

Share this post


Link to post
Share on other sites

I've added that documentation myself. Thanks!

 

Sorry for having to split that into 2 commits, but I haven't git tools atm.

 

P.S.: Ind, if you see anything wrong, please edit me!

Share this post


Link to post
Share on other sites

Whops, my bad. I tried to nest some block comments and the first /* was gone with the very first */, so there was a lot of place for syntax errors on those lines.

 

This, ladies and gentlemen, is what happens when you spend some years without using pure C and you haven't available any validating tool on reach.

 

I'm so sorry about this.

 

Edit: This has recently been fixed by a dev, so sorry again.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.